Twitch oEmbed data always returns clips as having 30s video length, even when edited to be shorter/longer

Trying to write a script for a subreddit that enforces a 30s video policy for link posts. But it’s useless if the API doesn’t give me the proper duration of the video.

Not sure if there is another way to get the metadata of a clip (I haven’t been able to find one), but the oEmbed method should be fixed either way.

Examples:

(28s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fipav999%2FLongOwlVolcania
(24s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fdoublelift%2FFaithfulHerringPazPazowitz
(40s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fdoublelift%2FWildFrogTriHard

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