Hey I was wondering if it was possible to get only anime tv shows in the returned JSON, when I'm doing a search with a string query.
For example when I do : https://api.themoviedb.org/3/search/tv?api_key=<>&language=en-US&page=1&query=death&include_adult=false
When I do this request I would like to have only the anime TV shows, so "Death Note" would work but not "Death in Paradise" would not be a tv show I would want.
If it's possible to get something like this I would like to know how to do it, thanks in advance.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on May 23, 2022 at 10:47 AM
The API Search Request I don't think is possible.
It doesn't have a filter for that.
What you can try is to make a Discover API Request.
It has several filters.
There is no Anime genre on TMDb. But you can use the Animation Genre ID. 16 .
https://api.themoviedb.org/3/genre/movie/list?api_key=THE_KEY
https://api.themoviedb.org/3/genre/tv/list?api_key=THE_KEY
And can also use Anime Keyword ID.
https://api.themoviedb.org/3/search/keyword?api_key=THE_KEY&query=anime
Also, there is an undocumented filter that MAYBE works.
With the word death using &with_text_query=
Example:
Reply by Matelgato
on May 23, 2022 at 12:04 PM
This is exactly what I wanted thanks !
btw will the '&include_adult=false' work with the discovery API requests ? or is there some other way to set this variable ?
Reply by ticao2 š§š· pt-BR
on May 23, 2022 at 12:07 PM
I believe it works. In your case maybe &include_adult=true .
By the way, all documented filters should work.
Reply by Matelgato
on May 23, 2022 at 12:09 PM
Perfect, all my questions are now answered thank you very much !!
Reply by ebuword
on June 7, 2023 at 12:11 PM
So what can we do for random?
Reply by ticao2 š§š· pt-BR
on June 11, 2023 at 4:39 PM
Using Discover API Request, if one of the parameters/filters is not specified,
in principle the response will be random for that unspecified parameter/filter.
Except in the case of the &sort_by= filter.
If nothing is specified the default response will be &sort_by=popularity.desc.