The Movie Database Support

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.

6 replies (on page 1 of 1)

• Jump to last post

@Matelgato said:
Get only "Anime" from results of search for TV Shows
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.

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:

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=16&with_keywords=210024|287501&with_text_query=death
https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=en-US&page=1&with_genres=16&with_keywords=210024|287501&with_text_query=death

@ticao2 said:

@Matelgato said:
Get only "Anime" from results of search for TV Shows
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.

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:

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=16&with_keywords=210024|287501&with_text_query=death
https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=en-US&page=1&with_genres=16&with_keywords=210024|287501&with_text_query=death

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 ?

@Matelgato said:
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 ?

I believe it works. In your case maybe &include_adult=true .
By the way, all documented filters should work.

@ticao2 said:

@Matelgato said:
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 ?

I believe it works. In your case maybe &include_adult=true .

Perfect, all my questions are now answered thank you very much !!

So what can we do for random?

@ebuword said:
So what can we do for random?

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.

Can't find a movie or TV show? Login to create it.

Want to rate or add this item to a list?

Login