Soporte de The Movie Database

Hi all, I'm currently building out an application that iterates over and sequentially pulls 1000 movies and tv shows per day from the following end points (api_key is my own personal key and movie_page_number/show_page_number are read in/updated after each run:)

However, it seems the number of pages for both movies and tv shows is capped at 500. Is this true, and if so, are there any other movie/show databases that don't face this issue. If it isn't the case and we can extract more data, how can we do so? The goal of this project is to continually pull in new titles with the associated genre and ratings for recommendation model purposes.

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

Jump to last post

If you're trying to bring that much data in house your best option is to restrict your searches. I would think dates are you best friend here, so something like:

https://api.themoviedb.org/3/discover/movie?api_key=###&page=N&primary_release_date.gte=2010-01-01&primary_release_date.lte=2010-12-31
https://api.themoviedb.org/3/discover/movie?api_key=###&page=N&primary_release_date.gte=2011-01-01&primary_release_date.lte=2011-12-31
https://api.themoviedb.org/3/discover/movie?api_key=###&page=N&primary_release_date.gte=2012-01-01&primary_release_date.lte=2012-12-31
https://api.themoviedb.org/3/discover/movie?api_key=###&page=N&primary_release_date.gte=2013-01-01&primary_release_date.lte=2013-12-31

As an example/

Thanks for the quick response - do you happen to know what's the complete lookback window movies/tv shows? Also will rate limits apply when extracting data for eg a year period at once?

Each response will contain the total results. If you are curious about the DB as a whole, you can look at the daily ID exports.

¿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