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.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por ticao2 🇧🇷 pt-BR
el 23 de mayo de 2022 a las 10:47
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:
Contestado por Matelgato
el 23 de mayo de 2022 a las 12:04
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 ?
Contestado por ticao2 🇧🇷 pt-BR
el 23 de mayo de 2022 a las 12:07
I believe it works. In your case maybe &include_adult=true .
By the way, all documented filters should work.
Contestado por Matelgato
el 23 de mayo de 2022 a las 12:09
Perfect, all my questions are now answered thank you very much !!
Contestado por ebuword
el 7 de junio de 2023 a las 12:11
So what can we do for random?
Contestado por ticao2 🇧🇷 pt-BR
el 11 de junio de 2023 a las 16:39
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.