Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API how to get video info

Tags:

youtube

video

When you right click on the video and say "show video info", there is popup that shows fps, frames dropped etc in real time with a timestamp.

I tried to look in the API documentation but couldn't find how this data could be retrieved.

I would like to store this realtime video info data in a file and do post analysis based on time to understand video streaming quality.

Thanks in advance.

like image 896
user1935230 Avatar asked Oct 19 '25 15:10

user1935230


1 Answers

You're going to have to use the new v3 API. You can sign up for a YouTube key here: https://console.developers.google.com/apis/api/youtube.googleapis.com

Documentation: https://developers.google.com/youtube/v3/docs/videos/list

To get the actual video info you can then use this URL:

https://www.googleapis.com/youtube/v3/videos?id={VIDEO_ID}&part=snippet%2CcontentDetails%2Cstatistics &key={YOUR_API_KEY}
like image 58
Dex Avatar answered Oct 21 '25 18:10

Dex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!