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?
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 7 de diciembre de 2016 a las 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: