justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

Api v2 problem #585

Open mca64 opened 7 years ago

mca64 commented 7 years ago

"broadcaster" returns wrong value.

romanzipp commented 7 years ago

Version 2 is deprecated. Please use v3

mca64 commented 7 years ago

I Would, but there is no broadcaster info in v3. Please add this to v3 or fix v2

brentlapierre commented 7 years ago

What data are you trying to retrieve from the API? The /streams endpoint in v3 should contain every bit of information you need about a broadcaster.

mca64 commented 7 years ago

v2 /streams has this:

"broadcaster": "xsplit"

v3 never had it

brentlapierre commented 7 years ago

You should pull "display_name" from the channel object instead, which is included in the /streams endpoint when the channel is live.

freaktechnik commented 7 years ago

I think "broadcaster" is the broadcast software. Well, it's supposed to be.

brentlapierre commented 7 years ago

I think "broadcaster" is the broadcast software. Well, it's supposed to be.

That would make sense actually. I'm assuming Twitch figured it was unnecessary information and thus removed it with the release of v3.

There is an alternative method to retrieving information about the broadcaster software a stream is using, but it appears to be returning "unknown_rtmp" for all streams that I've tested.

To retrieve that information, you can pull "broadcaster_software" from the undocumented API. Use https://api.twitch.tv/api/channels/test_channel

mca64 commented 7 years ago

unfortunately, recently almost all streams has "unknown_rtmp", some of them has fmle (Adobe). For 3 years it worked well