The Movie Database Support Forum

How to get top 10 popular movies along with the trailer information in one query using tmdb api

2 Antworten (Seite 1 von 1)

Jump to last post

I am currently using http://api.themoviedb.org/3/movie/popular?api_key=### but its returning more pages

Hi jasonbourne1224,

You can't in 1 query, you would have to do it in 11 (popular call + the first 10 ids). Once you have the /movie/popular results, you can iterate over the first 10 items in the results array and call the /movie/{id} method. You can use append_to_response to call the videos method at the same time like so:

http://api.themoviedb.org/3/movie/550?api_key=###&append_to_response=videos

The ID in this case as an example is 550.

Hope that helps.

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