اختصارات لوحة المفاتيح
البحث المتقدم
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?
The videos call returns an array of video that have been added to the media item. If you take an example response:
https://api.themoviedb.org/3/movie/550/videos?api_key=###
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 of qvCogW-N-HE so you can then build a standard YouTube URL:
key
qvCogW-N-HE
https://www.youtube.com/watch?v=qvCogW-N-HE
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
تسجيل الدخول
التسجيل
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
سجل و انضم الى المجتمع
رد بواسطة Travis Bell
بتاريخ ديسمبر 7, 2016 في 2: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: