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?
Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.
Хотите поставить оценку или добавить в список?
Нет аккаунта?
Ответ от Travis Bell
, 7 декабря 2016 в 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: