Clips occasionally have wrong vod timestamp

Sometimes the timestamp query string for a clip is wrong. For example, CourageousHappyGazelleKevinTurtle . In the API (JSON at end of the post) the vod url for the clip is https://www.twitch.tv/videos/130198111?t=4h22m1s. That url takes you to the last 5 seconds of the clip in the original vod.

The clip page shows a different url. The “Watch Full Video” button url is https://www.twitch.tv/videos/130198111?t=4h21m36s&tt_medium=clips_web&tt_content=full_vod_button which is the correct timestamp.

###Watch Full Video button from clip’s page (correct)

###Clips API JSON Response (incorrect)
{
“id”: “CourageousHappyGazelleKevinTurtle”,
“tracking_id”: “60182553”,
“url”: “Twitch”,
“embed_url”: “https://clips.twitch.tv/embed?clip=CourageousHappyGazelleKevinTurtle&tt_medium=clips_api&tt_content=embed”,
“embed_html”: “”,
“broadcaster”: {
“id”: “40980097”,
“name”: “faux”,
“display_name”: “Faux”,
“channel_url”: “Twitch”,
“logo”: “https://static-cdn.jtvnw.net/jtv_user_pictures/faux-profile_image-3f9cf32ba99f2cf7-300x300.png
},
“curator”: {
“id”: “85684543”,
“name”: “commack”,
“display_name”: “Commack”,
“channel_url”: “Twitch”,
“logo”: “https://static-cdn.jtvnw.net/jtv_user_pictures/commack-profile_image-3f9b755ad6d60728-300x300.png
},
“vod”: {
“id”: “130198111”,
“url”: “Twitch
},
“game”: “RuneScape”,
“language”: “en”,
“title”: “Entrana is MINE | Faux Merch: https://www.teepublic.com/user/faux_freedom”,
“views”: 148,
“duration”: 29.999333,
“created_at”: “2017-03-21T18:04:44Z”,
“thumbnails”: {
“medium”: “https://clips-media-assets.twitch.tv/24846582544-offset-15720-preview-480x272.jpg”,
“small”: “https://clips-media-assets.twitch.tv/24846582544-offset-15720-preview-260x147.jpg”,
“tiny”: “https://clips-media-assets.twitch.tv/24846582544-offset-15720-preview-86x45.jpg
}
}

I’m not seeing the same JSON response as you. I think this has to do with how Clips are created. When a Clip isn’t finished creating, we don’t know the true VOD offset, so we use the offset of when the user clipped. The value would be adjusted later, which could cause this to be inconsistent for some amount of time.

Is it because you don’t not know the true VOD offset until the stream is over? The clip in the example had 148 views at the time of the API call, so it certainly seems like the clip must be finished being created.

The example was one from a call to the Get Top Clips api. I see the same thing as you (the offset timestamp is correct) if I call the Get Clip api with the slug now.

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