Soporte de The Movie Database

Is there any way to retrieve a list of movies by genre alone and if not, is creating your own database using parsed api data allowed or is it against the terms of use?

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

Jump to last post

You can use discover method of our API. E.g. to get a list of English action movies sorted by popularity:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_genres=28&with_original_language=en

Notes:

  1. Discover methods return only first 10 000 matches. If you need more movies, you must split your discover query into smaller batches, e.g. by years.
  2. You can get the list of all valid genre ids by using genre API method.
  3. "&with_genres=" parameter supports more genre ids being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.

Amazing! This is exactly what I was looking for. Thanks for your help!

I also want to send search word with genre just like you send in search api https://developers.themoviedb.org/3/search/search-movies E.g q="War" and with_genre=12

You can't limit search to specific genres, "&with_genres=" works only with TV and movie discover methods.

All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

@andricperez said:
All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

Making API Requests is usually done by code programmers, developing APPs and data query tools.
An API Request where there is a small typing error, a comma or space more or less, does not usually work.
But it is not an impossible subject to understand.
I, for one, don't program code.
I'm just a curious 71 year old.
Who for strange reasons decided to have fun with this subject.
If you found any non-answers and want some clarification, feel free to ask. :-)

¿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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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