I am getting data from /movie/movie_id/videos, it returns a bunch of data Now i want to get a youtube url Is it possible?
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von Travis Bell
am 7. Dezember 2016 um 14:20
The videos call returns an array of video that have been added to the media item. If you take an example response:
You can iterate over the results array and build the YouTube URL by using the
key
field. An example of the first item in the response above has the key ofqvCogW-N-HE
so you can then build a standard YouTube URL: