Soporte de The Movie Database

I have written a bot for Wikidata that links the page IDs of TMDb to the respective elements of Wikidata, looping through all existing pages. I was now dealing with collections but I noticed that as long as a collection exists (.../collection/119) then there is no problem but if the collection does not exist (.../collection/120) then the URL redirects to the same movie ID (.../movie/120). Is there a URL that specifically shows only collections without redirects?

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

Jump to last post

This sounds like a use case where you would be better off using the daily ID exports. These will only list the valid IDs for each data type. https://developer.themoviedb.org/docs/daily-id-exports

Thank you for your valuable reply, @Sheigutn. Is there any example of use in the API Reference section? I couldn't find it and I'm not understanding how to use the exported file.

Once you have uncompressed the file (.gz is a standard compress file format), each line of the file will be a JSON object which include the most important informations about each movie, as explained in the link provided above by @Sheigutn .

So, to access all the movies, you will just have to browse the file, one line at a time.

¿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