The ID of the stream does not correspond to the ID of the

I am getting the stream ID but it is not compatible with the VOD ID and in the API documentation they reference that it can be used to go to the VOD but it is not the same. Do you have a solution?

A given VOD will have a key in the payload of stream_id which is the ID you obtained from the streams endpoint whilst the stream was running

{
  "data": [
    {
      "created_at": "2023-11-02T11:57:08Z",
      "description": "",
      "duration": "2h45m46s",
      "id": "1966541363",
      "language": "en",
      "muted_segments": null,
      "published_at": "2023-11-02T11:57:08Z",
      "stream_id": "41992682489",
      "thumbnail_url": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/4a50854feb68a79f67e7_cohhcarnage_41992682489_1698926222//thumb/thumb0-%{width}x%{height}.jpg",
      "title": "[!AW2onYT] ALAN WAKE 2! - Cozy Spiderman 2 tonight! Dead Island 2 DLC this afternoon! - !Emberville / !Invest / !PowerGPU / !MobileApp",
      "type": "archive",
      "url": "https://www.twitch.tv/videos/1966541363",
      "user_id": "26610234",
      "user_login": "cohhcarnage",
      "user_name": "CohhCarnage",
      "view_count": 124086,
      "viewable": "public"
    }
  ],
  "pagination": {
    "cursor": "eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MX19"
  }
}

So this VOD of ID 1966541363 is from stream of ID 41992682489

Ok, the stream ID is only useful to watch the recorded videos of that Stream, right? Or I can use it to get a VOD that is being broadcasted.

The VOD’s api doesn’t support a “get videon by stream ID filter”

StreamID only appears in one other place and thats the VOD’s API, for VOD’s of type Archive.

In theory, if you have the StreamID on file it’s relatively useless. Theres a handful of maybe uses cases. But it’s not a item of data I retain or utilise myself

Is there any way to get the VOD ID?
Which endpoint corresponds to this answer?

{
  "data": [
    {
      "created_at": "2023-11-02T11:57:08Z",
      "description": "",
      "duration": "2h45m46s",
      "id": "1966541363",

1966541363 is the VOD ID that I showed in my previous post

Which endpoint corresponds to this response data?

Get Videos - Reference | Twitch Developers

1 Like

How can I get the Video ID?

It’s returned in the api response

You want videos from streamer goo well you put in streamer food user id. Then the response contains the video id and other information about the video

I am trying that, but it returns a 404 not found, even though I have videos.
I’m trying this fetch
this example
https://api.twitch.tv/helix/streams/videos?user_id=123&game_id=4568

Now is there another way to get the VOD ID?

It’s helix/videos not helix/streams/videos

1 Like

A post was split to a new topic: I’m getting a 404 error

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