Changelog for December 13th, 2024
YouTube
The "Latest video" endpoint has received some improvements:
- You can use the
shorts_url
parameter to get a URL that goes to the "Shorts layout" of YouTube, if your video is a "Shorts" video - Feature request on GitHub (issue #113)- Example:
https://decapi.me/youtube/latest_video?shorts_url=1&handle=@NileRedExtra
- Regular videos will still give you a URL that looks like:
https://youtu.be/VIDEO_ID_HERE
. - However, "Shorts" (videos under 1 minute) will give you a URL that looks like:
https://youtube.com/shorts/VIDEO_ID_HERE
.
- Example:
- You can now pass your YouTube
@
'handle' instead of channel ID or legacy username. This was previously not supported.- Simply pass it with the
@
prefix, like so:https://decapi.me/youtube/latest_video?handle=@NileRed
- Note that while the example above uses the
handle
parameter, as long as you put@
before the actual handle, you can use theid
oruser
parameter as well.
- Simply pass it with the