Forum Settings
Forums
New
Apr 21, 2024 5:37 PM
#1
Offline
Sep 2020
5
Is there a way to tell which endpoints exactly support the nsfw query param?

I am aware that it describes the nsfw query param at the top under common parameters, but the description is very vague;

Under this description, I still don't know which apis return nsfw and which don't, and which support the parameter.
"By default, some APIs (which ones?) don’t return nsfw content.

You can control this behavior with the nsfw parameter."

I'm writing a fully featured api client, so I need to get this correct. It would feel odd to spam this query param everywhere in my api (even in places it doesn't apply) just in hopes I can support it properly

(I guess from what I know currently it's probably useranimelist and usermangalist?)
crimson-meguminApr 22, 2024 8:16 AM
Reply Disabled for Non-Club Members
Apr 23, 2024 4:59 AM
#2
四十二

Offline
Mar 2016
488
@crimson-megumin: The NSFW parameter is supported by almost all endpoints returning lists of entries:
  • anime/manga search;
  • seasonal anime;
  • suggested anime;
  • user's anime/manga list.

On the other hand, it is ignored in anime/manga rankings and when requesting an anime/manga by ID.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Apr 23, 2024 2:29 PM
#3
Offline
Sep 2020
5
Reply to ZeroCrystal
@crimson-megumin: The NSFW parameter is supported by almost all endpoints returning lists of entries:
  • anime/manga search;
  • seasonal anime;
  • suggested anime;
  • user's anime/manga list.

On the other hand, it is ignored in anime/manga rankings and when requesting an anime/manga by ID.
@ZeroCrystal Thank you for your reply, that helps a lot!
Reply Disabled for Non-Club Members

More topics from this board

» I built a spotify-styled 'MyAnimeList Wrapped' for a yearly review of your anime and manga

XAvishkar - Dec 14

1 by Joeliazeers »»
Dec 17, 1:01 PM

» [Repost] list of all relation_type and media_type.

Mr_UnknownOtaku - Dec 8

4 by -DxP- »»
Dec 12, 8:43 AM

» How to get author name?

EdibleMuffin - Feb 12

4 by XAvishkar »»
Dec 8, 9:52 AM

» 401 Unauthorized when doing authorization flow

Konng_ - Nov 16

2 by Konng_ »»
Nov 28, 3:24 PM

» [discontinued] I made a webapp to compare plan-to-watch lists

daux - Apr 16, 2022

33 by daux »»
Oct 2, 4:17 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login