Soporte de The Movie Database

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 respuestas (en la página 1 de 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.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión