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

How can I retrieve Youtube Clip info from the Youtube API?

$
0
0

I'm trying to get a similar response to Videos: list endpoint of the Youtube API, but for youtube clips instead of videos. The data I'm looking for specifically is title, views, uploader, thumbnail, duration, embed url. A Youtube video has a URL like this: https://www.youtube.com/watch?v=2Q_ZzBGPdqE, while a youtube clip has a URL like this: https://youtube.com/clip/UgkxJKmfKeQYLM9ex5qrU-W2wkwLCfRvlgYU

The string after /clip/ seems to be an ID, similar to how the string after v= is the video ID for youtube videos. However there seems to be no clip specific API, and the videos API does not accept the clip ID. Is there some dedicated clips API or support for clips in one of the APIs that I'm missing?

I've tried using this API with any of the seemingly relevant Youtube API endpoints, but they just return empty responses.

There are also methods to get the parent video ID of the clip (such as the API provided in this answer). I could then use that parent video id to call the youtube videos API. This would give some useful information as it would be the same between the parent video and the clip (uploader, thumbnail). But other information that I'm looking for is clip specific and would not be provided in that response (title, views, duration, embed url)


Viewing all articles
Browse latest Browse all 3642

Trending Articles



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