Soporte de The Movie Database

I'm new to programming, so I don't really know how to formulate this question, thanks

4 respuestas (en la página 1 de 1)

Jump to last post

@biel37 said:
How do I get movie data through genres
I'm new to programming, so I don't really know how to formulate this question, thanks

Making a Discover API Request.
https://developers.themoviedb.org/3/discover/movie-discover
Numerous filters are available and among them filter by Genre.

Discover - Filter by Genre

Tip: For TV Show the procedure is similar.

First you need to have the list of Genres with their IDs.

The list of Genre IDs, for Movies and TV, can be found here:
get/genre/movie/list - https://developers.themoviedb.org/3/genres/get-movie-list
get/genre/tv/list - https://developers.themoviedb.org/3/genres/get-tv-list

For example, the Comedy Genre ID for movies is 35.

Knowing the Genre ID you want, make an API Request of type get / discover / movie
https://developers.themoviedb.org/3/discover/movie-discover
And use the with_genres and/or without_genres parameter.
More than one genre can be searched using the comma or pipe feature

Also note that a number of filters support being comma (,) or pipe (|) separated.
Comma's are treated like an AND and query while Pipe's are an OR.

AND (with Comma) &with_genres=35.53,27
OR (with Pipe) &with_genres=35|53|27
You can use any other filter simultaneously. &year=, &sort_by=, &with_cast= etc...

Example

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=release_date.desc&page=1&with_genres=35,53,27

tysm this really helped my project. Btw what do the last 2 numbers mean seperated by commas. Thank you in advance

Hi @ultraCodingNoob456, read the previous post:

@ticao2 said:

More than one genre can be searched using the comma or pipe feature

Also note that a number of filters support being comma (,) or pipe (|) separated.
Comma's are treated like an AND and query while Pipe's are an OR.

AND (with Comma) &with_genres=35,53,27
OR (with Pipe) &with_genres=35|53|27

Oh I'm blind thanks

¿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