How to get thumbnail from vod URL?

Is there a way to get the thumbnail of a video by its id, without querying the API for the video metadata?

For example, the following video https://www.twitch.tv/ogre2/v/73021329
Has the thumbnail

https://static-cdn.jtvnw.net/v1/AUTH_system/vods_ef6e/ogre2_21894199200_471034537//thumb/thumb73021329-320x240.jpg

You would need to grab the ID and the character from the URL in this case v and 73021329 and look it up on the API as per https://github.com/justintv/Twitch-API/blob/master/v3_resources/videos.md#get-videosid

Which results in: https://api.twitch.tv/kraken/videos/v73021329

And you can use the thumbnails from the response

2 Likes

I was trying to avoid having to use the API, but it’ll have to do.

Everything about everything is in a API somewhere. :stuck_out_tongue:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.