Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube Api v3: calculate youtube playlist length

$
0
0

How can i get a youtube playlist duration (the sum of all it's videos durations).

I used this endpoint to get the playlist videos :

https://youtube.googleapis.com/youtube/v3/videos?playlistId

and it's return the videos object with all videos ids, in this case i need to make an api call to get each video length with separate api call to :

https://youtube.googleapis.com/youtube/v3/videos

I searched for a solution for this and found that we can make a call to previous api with all ids each id with a query param ex. id=aaaaa&id=bbbbb, but i need to be the owner of these videos to make the request.

Is there any way to get all videos with one call and without being the owner of the videos ?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>