# Getting the VOD timestamp from a clip

**URL:** <https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769>\
**Category:** API\
**Created:** [July 10, 2019, 4:32am UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769 "2019-07-10T04:32:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdooley98](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mdooley98](https://discuss.dev.twitch.com/u/mdooley98)\
**Post date:** [July 10, 2019, 4:32am UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769/1 "2019-07-10T04:32:01Z")

</div>

Is it possible to get the timestamp of the VOD from a clip?

There was a solution on a previous discussion but it no longer seems to work. [Clip Event Timestamp](https://discuss.dev.twitch.com/t/clip-event-timestamp/19441/4)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 10, 2019, 9:49am UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769/2 "2019-07-10T09:49:54Z")

</div>

Works fine for me.

And I wrote what you linked to

Both the `created_at` timestamp is present as is the `vod.offset` keys (in the v5 output)

---

<div class="post-metadata">

**Author:** ![mdooley98](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mdooley98](https://discuss.dev.twitch.com/u/mdooley98)\
**Post date:** [July 10, 2019, 10:23pm UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769/3 "2019-07-10T22:23:57Z")

</div>

It didn’t work for me when I tried, unless I’m making a mistake somewhere

```
def clip(self):
    url = 'https://clips.twitch.tv/SpikyDelightfulDiscSSSsss'
    clip_id = re.sub(r'https://clips.twitch.tv/', '', url)
    clip_data = requests.get('https://api.twitch.tv/helix/clips?id=' + clip_id, headers=self.headers).json()
    clip_data2 = requests.get('https://api.twitch.tv/kraken/clips/' + clip_id, headers=self.headers).json()
    print(clip_data, '\n')
    print(clip_data2)

```

returns

```
{'data': [{'id': 'SpikyDelightfulDiscSSSsss', 'url': 'https://clips.twitch.tv/SpikyDelightfulDiscSSSsss', 'embed_url': 'https://clips.twitch.tv/embed?clip=SpikyDelightfulDiscSSSsss', 'broadcaster_id': '136765278', 'broadcaster_name': 'buddha', 'creator_id': '140875512', 'creator_name': 'yumbananas', 'video_id': '450418682', 'game_id': '32982', 'language': 'en', 'title': 'Curtis Hotmic', 'view_count': 6279, 'created_at': '2019-07-09T21:54:17Z', 'thumbnail_url': 'https://clips-media-assets2.twitch.tv/AT-cm%7C491840151-preview-480x272.jpg'}], 'pagination': {}} 

```

`{'error': 'Not Found', 'status': 404, 'message': ''}`

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [July 11, 2019, 12:44am UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769/4 "2019-07-11T00:44:08Z")

</div>

The 404 from the kraken endpoint is likely because you’re not specifying v5 when making the request, and so your request is defaulting to v3 (which doesn’t have that clips endpoint, hence the 404).

Add the `Accept: application/vnd.twitchtv.v5+json` header for that kraken request you’re making so that it’ll use v5 and correctly return data for the clip.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 10, 2019, 12:44am UTC](https://discuss.dev.twitch.com/t/getting-the-vod-timestamp-from-a-clip/21769/5 "2019-08-10T00:44:10Z")

</div>

Closed on August 10, 2019, 12:44am UTC

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