Getting list of streams based on Platform (PS4/Xbox Only)

Hi everyone,

I’m able to get a list of all games for 7 Days to Die, but I’d like to filter out the pc streams if possible, I know the game only runs and streams at 720p on consoles, but are there any other identifying factors?

Here’s everything I seem to get:

“streams”: [
{
“_id”: 22321991568,
“game”: “7 Days to Die”,
“viewers”: 2550,
“created_at”: “2016-07-13T15:41:42Z”,
“video_height”: 1080,
“average_fps”: 60.2868012877,
“delay”: 0,
“is_playlist”: false,
“_links”: {
“self”: “https://api.twitch.tv/kraken/streams/ogsmokz
},
“preview”: {
“small”: “https://static-cdn.jtvnw.net/previews-ttv/live_user_ogsmokz-80x45.jpg”,
“medium”: “https://static-cdn.jtvnw.net/previews-ttv/live_user_ogsmokz-320x180.jpg”,
“large”: “https://static-cdn.jtvnw.net/previews-ttv/live_user_ogsmokz-640x360.jpg”,
“template”: “https://static-cdn.jtvnw.net/previews-ttv/live_user_ogsmokz-{width}x{height}.jpg
},
“channel”: {
“mature”: false,
“status”: “7 dayz to die with OGsmokz”,
“broadcaster_language”: “en”,
“display_name”: “ogsmokz”,
“game”: “7 Days to Die”,
“language”: “en”,
“_id”: 123591740,
“name”: “ogsmokz”,
“created_at”: “2016-05-06T14:38:16Z”,
“updated_at”: “2016-07-13T18:34:36Z”,
“delay”: null,
“logo”: “https://static-cdn.jtvnw.net/jtv_user_pictures/ogsmokz-profile_image-df66274084f1883c-300x300.jpeg”,
“banner”: null,
“video_banner”: “https://static-cdn.jtvnw.net/jtv_user_pictures/ogsmokz-channel_offline_image-be34be9d542c13ae-1920x1080.jpeg”,
“background”: null,
“profile_banner”: “https://static-cdn.jtvnw.net/jtv_user_pictures/ogsmokz-profile_banner-73777c8cc6b237ee-480.png”,
“profile_banner_background_color”: null,
“partner”: false,
“url”: “https://www.twitch.tv/ogsmokz”,
“views”: 122252,
“followers”: 10418,
“_links”: {
“self”: “http://api.twitch.tv/kraken/channels/ogsmokz”,
“follows”: “http://api.twitch.tv/kraken/channels/ogsmokz/follows”,
“commercial”: “http://api.twitch.tv/kraken/channels/ogsmokz/commercial”,
“stream_key”: “http://api.twitch.tv/kraken/channels/ogsmokz/stream_key”,
“chat”: “http://api.twitch.tv/kraken/chat/ogsmokz”,
“features”: “http://api.twitch.tv/kraken/channels/ogsmokz/features”,
“subscriptions”: “http://api.twitch.tv/kraken/channels/ogsmokz/subscriptions”,
“editors”: “http://api.twitch.tv/kraken/channels/ogsmokz/editors”,
“teams”: “http://api.twitch.tv/kraken/channels/ogsmokz/teams”,
“videos”: “http://api.twitch.tv/kraken/channels/ogsmokz/videos
}
}
}
]

How do the consoles know which platform the streams are coming from?

Thanks,
Shane

I think you asked this on Twitter, too. Unfortunately, there isn’t a supported public way to filter currently.

No worries, thanks for the reply =)

My reply on twitter:

“I can hazard a guess by average framerate, resolution and what they choose to title/describe the broadcast =D”

Not perfect, but better than nothing =D

for xbox I think https://api.twitch.tv/kraken/streams?limit=10&broadcaster_software=candybox does the work

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