2

I want to see the duration of my videos but that value is not returned in my request to the contentDetails YouTube API endpoint.

Request:

https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&playlistId=PLzL9qQsHp57p-ncZezwjNIEe8fHS6Orkg&maxResults=1&key=[API_KEY]

Response:

"contentDetails": 
{

"videoId": "wZpteNGOoXs" -> where is the duration?

}
JAL
  • 41,701
  • 23
  • 172
  • 300
Jess Verduzco
  • 25
  • 1
  • 1
  • 4
  • What if i told you to use ressource video and not playlistItems... – mpgn Mar 30 '15 at 18:57
  • 1
    possible duplicate of [Youtube API v3 , how to get video durations?](http://stackoverflow.com/questions/15596753/youtube-api-v3-how-to-get-video-durations) – mpgn Mar 30 '15 at 18:58
  • playlistitems do not include duration as well as a few other important data items for whatever reason. You'll have to make a call for video details if you want them. – johnh10 Mar 31 '15 at 13:10

0 Answers0