Hello!
Wondering if there is an easy way to pull in a specific Youtube video’s duration from it’s link?
Cheers!
Hello!
Wondering if there is an easy way to pull in a specific Youtube video’s duration from it’s link?
Cheers!
nope
the only info from a link is https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=6OKVj1A9OcY&format=json
which yields {"width":480,"thumbnail_url":"https:\/\/i.ytimg.com\/vi\/6OKVj1A9OcY\/hqdefault.jpg","thumbnail_height":360,"author_url":"https:\/\/www.youtube.com\/channel\/UCTL_mXO3qsgFc_3s2T5wlWg","html":"\u003ciframe width=\"480\" height=\"270\" src=\"https:\/\/www.youtube.com\/embed\/6OKVj1A9OcY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003e\u003c\/iframe\u003e","height":270,"author_name":"Coaching No Code Apps","provider_url":"https:\/\/www.youtube.com\/","version":"1.0","title":"In-Depth Bubble.is Tutorial: How to Build ANY Type of App Without Code on Bubble","provider_name":"YouTube","type":"video","thumbnail_width":480}
you’ll need to use the api
https://www.googleapis.com/youtube/v3/videos?id=abc123&part=contentDetails&key={YOUR_API_KEY}