The Movie Database Support Forum

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 Antwort (Seite 1 von 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.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden