Soporte de The Movie Database

Can endpoints be filtered by Genre?

For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing) or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.

In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.

Thanks.

1 respuesta (en la página 1 de 1)

Jump to last post

@gabrielizalo said:
Can endpoints be filtered by Genre?
Can endpoints be filtered by Genre?
For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing)
or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.
In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.
Thanks.

Using Search Movies is not possible.
In the case of Now Playing it is possible.
https://developer.themoviedb.org/reference/movie-now-playing-list
As the text on the page states, it is based on Discover.

Note
This call is really just a discover call behind the scenes. If you would like to tweak any of the default filters head over and read about discover.

https://developer.themoviedb.org/reference/discover-movie
Just specify the release_date values.
For example:

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30

And you can specify one or more genre IDs, separated by commas.

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30&with_genres=35,16

¿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