Extend Clips API to provide the MP4 url so editors can automate downloads
If I have an oAuth that represents a User, where the User is either
- the broadcaster the clip is of
- an editor of the channel that the clip is of
- the user is the owner of the clip
And I make a request for a Clip as documented: https://dev.twitch.tv/docs/api/reference#get-clips
(but with the bearer naturally)
The JSON Response should include the direct link to the MP4 or an ability to download the Clip.
This is off the back of the removal/deprecation of some undocumented API's that I was using to get the MP4 URL for automated download for creation of clip reels and similar.
I would also like to see the option to indicate how long of a clip you would like to create.. 15 seconds, 30 seconds, 45 seconds, or 1 minute would be great to have
Thanks for sharing this! All the best!
Feel free to visit: https://codeberg.org/
Just wanted to link this for getting direct URLs for VODs, since it might be of interest to people who are also interested in getting direct clip download links. :) https://twitch.uservoice.com/forums/310213-developers/suggestions/41560489-extend-videos-api-to-allow-editors-and-above-to
Although an MP4 link would be handy, you can generate it yourself by taking the clip thumbnail and adding mp4 to it. Like so:
I have the same issues, my old integration is not working anymore.
Can you please release the mp4 links for clips?
ironically youtube-dl got removed from github due to the DMCA.
edit: and they're back
Also there are alot of other fields in terms of clips that could be added to make sure clips obey DMCA.
As a workaround, you can use youtube-dl. Example command-line to download a clip:
> .\youtube-dl.exe https://www.twitch.tv/zfg1/clip/StylishTallYogurtYee
Or to just get the mp4 link, use the -g flag:
> .\youtube-dl.exe -g https://www.twitch.tv/zfg1/clip/StylishTallYogurtYee
To my recollection the clip manager page has always allowed to download clips you have made, but it is hidden a bit.
Click on clip
Click the shear button
Then among the social links there is download button
The current Twitch UI doesn't allow "the user is the owner of the clip" to download a Clip. So I'm not bothered if this part of the request is ignore.
But the API should match the UI for what is allowed.