Soporte de The Movie Database

Hey,

Since the v3 api has a different endpoint for movie vs collection, is it possible to figure out if an ID is for a movie vs a collection? Do movie id's overlap with collection ids or will that never be the case?

Also, would it be possible to automatically redirect and return json results for a collection instead of movie based on the ID we pass you (assuming the ids do not overlap for movies and collection).

The above would be for both info and images...b/c right now the only way to tell the difference would be to hit the movie api with the id and if I get a 404 hit the collection api and see if I get a result.

Take Care

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

Jump to last post

is it possible to figure out if an ID is for a movie vs a collection?

Only by detecting a 404 on movie and then trying a collection.

Do movie id's overlap with collection ids or will that never be the case?

They currently share the same numeric space so they would never overlap.

Also, would it be possible to automatically redirect and return json results for a collection instead of movie based on the ID we pass you (assuming the ids do not overlap for movies and collection).

It's unlikely we would do this. If you request a movie ID that doesn't exist, it should always 404.

¿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