How to get muted segments?

https://api.twitch.tv/helix/videos?user_id=29334085&first=20
Why the muted_segments field is always equals to null?

I can’t reproduce your issue. When I use that exact same request, all the VoDs that don’t have muted segments have muted_segments: null, and all the VoDs that do have muted sections appropriately return the muted sections in that request, such as

			"id": "1262329755",
			"stream_id": "44370393884",
			"user_id": "29334085",
			"user_login": "frozzyaka",
			"user_name": "frozzyaka",
			"title": "А вокруг ранкеды, ранкеды.... ранкеды ху.....",
			"description": "",
			"created_at": "2022-01-13T16:58:39Z",
			"published_at": "2022-01-13T16:58:39Z",
			"url": "https://www.twitch.tv/videos/1262329755",
			"thumbnail_url": "https://static-cdn.jtvnw.net/cf_vods/dgeft87wbj63p/f36dd4db6175b7fdab0c_frozzyaka_44370393884_1642093111//thumb/thumb0-%{width}x%{height}.jpg",
			"viewable": "public",
			"view_count": 1810,
			"language": "ru",
			"type": "archive",
			"duration": "6h43m31s",
			"muted_segments": [
				{
					"duration": 360,
					"offset": 0
				},
				{
					"duration": 360,
					"offset": 7200
				},
				{
					"duration": 360,
					"offset": 7920
				},
				{
					"duration": 360,
					"offset": 10080
				}
			]
		}```

https://www.twitch.tv/videos/1286667913
This video containing muted segments, but https://api.twitch.tv/helix/videos?id=1286667913 returning "muted_segments": null.

{
    "data": [
        {
            "id": "1286667913",
            "stream_id": "44599392892",
            "user_id": "29334085",
            "user_login": "frozzyaka",
            "user_name": "frozzyaka",
            "title": "Что-то совместное, фановое....",
            "description": "",
            "created_at": "2022-02-04T15:18:56Z",
            "published_at": "2022-02-04T15:18:56Z",
            "url": "https://www.twitch.tv/videos/1286667913",
            "thumbnail_url": "https://static-cdn.jtvnw.net/cf_vods/dgeft87wbj63p/4433e309c21fa5821481_frozzyaka_44599392892_1643987931//thumb/thumb0-%{width}x%{height}.jpg",
            "viewable": "public",
            "view_count": 1775,
            "language": "ru",
            "type": "archive",
            "duration": "7h10m35s",
            "muted_segments": null
        }
    ],
    "pagination": {}
}

VoD 1286667913 has 1 muted segment.

	"data": [
		{
			"id": "1286667913",
			"stream_id": "44599392892",
			"user_id": "29334085",
			"user_login": "frozzyaka",
			"user_name": "frozzyaka",
			"title": "Что-то совместное, фановое....",
			"description": "",
			"created_at": "2022-02-04T15:18:56Z",
			"published_at": "2022-02-04T15:18:56Z",
			"url": "https://www.twitch.tv/videos/1286667913",
			"thumbnail_url": "https://static-cdn.jtvnw.net/cf_vods/dgeft87wbj63p/4433e309c21fa5821481_frozzyaka_44599392892_1643987931//thumb/thumb0-%{width}x%{height}.jpg",
			"viewable": "public",
			"view_count": 1777,
			"language": "ru",
			"type": "archive",
			"duration": "7h10m35s",
			"muted_segments": [
				{
					"duration": 360,
					"offset": 1440
				}
			]
		}
	],
	"pagination": {}
}

Why we have different responses?

Caching maybe? ¯\_(ツ)_/¯

Caching in Postman?

Caching your side, on Twitch’s side, or anywhere in between. Could be caching as the request as a whole, or potentially on some internal service that deals with muted segments. Regardless, it’s not some I’ve been able to replicate so if you are sure you’re doing everything right and it’s still returning null for all videos, file an issue on GitHub https://github.com/twitchdev/issues/issues

I’m not sure. What’s can be wrong? Maybe i’m missed some header(s)?

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