stream/list API broken

88 views
Skip to first unread message

Mike Ossareh

unread,
Aug 29, 2012, 3:53:32 PM8/29/12
to justintv-ap...@googlegroups.com
Hi,

Some code just hit production which breaks the way that the old API returns streams. This may have broken other parts of the API as well. We're working to fix this and will update this thread when it is rectified.

Cheers,

mike




Mike Ossareh

unread,
Aug 29, 2012, 4:02:20 PM8/29/12
to justintv-ap...@googlegroups.com
Turns out it is stream summary, sorry. 

It also seems to work, so this is likely to be a case of a value coming back with an incorrect type, i.e. we're getting a number now when we may have been getting a string - something like that.

Mike Ossareh

unread,
Aug 29, 2012, 5:02:14 PM8/29/12
to justintv-ap...@googlegroups.com
Hey,

This is fixed now. It turns out that the old API has some logic in it which treats values differently based on whether the channel is online or offline (in the later case you get a viewer_count of 0 as an integer, in the former case you get viewer_count of n as a string).  We'll not be fixing this.

If you were impacted by this, and you use the API for gaming related queries - you should really use our new Twitch-specific API - https://github.com/justintv/Twitch-API/wiki/API. I've recently thrown together the start of a migration guide:  https://github.com/justintv/Twitch-API/wiki/Migrating-from-the-old-api

Cheers,

mike

Kim

unread,
Aug 30, 2012, 4:30:42 AM8/30/12
to justintv-ap...@googlegroups.com
I use this call a lot, but I can't migrate over to the new API as it does not have an equivalent. With the old API you can give the call a channel parameter, which can be a list of channels. Using this I'm making growth statistics for just the set of channels I want.

--
You received this message because you are subscribed to the Google Groups "Justin.tv API Developers" group.
To post to this group, send email to justintv-ap...@googlegroups.com.
To unsubscribe from this group, send email to justintv-api-deve...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mike Ossareh

unread,
Aug 30, 2012, 2:25:50 PM8/30/12
to justintv-ap...@googlegroups.com
Just to be clear: you're asking for it to support a list as opposed to just one element?

Kim

unread,
Aug 30, 2012, 4:01:33 PM8/30/12
to justintv-ap...@googlegroups.com
As far as I can see the new API's equivalent, /streams/summary, only supports the param "game". The channel param would be channels separated by a commas (list) 

Mike Ossareh

unread,
Aug 30, 2012, 4:13:58 PM8/30/12
to justintv-ap...@googlegroups.com
On Thu, Aug 30, 2012 at 1:01 PM, Kim <moo...@gmail.com> wrote:
As far as I can see the new API's equivalent, /streams/summary, only supports the param "game". The channel param would be channels separated by a commas (list) 

This process isn't working :) I still don't know what you're asking for. Can you give me a concrete example of what you're trying to do please? Why do you want to get the summary of a list of channels? Why not just fetch the channels and build your own summary?

Kim

unread,
Aug 30, 2012, 5:24:18 PM8/30/12
to justintv-ap...@googlegroups.com
I need to pass n channels in a param and get the amount of viewers these channels currently have in return. (only counting live viewers of course)
Currently I'm passing around 3000 channels using the old api call (split up in 500 channel chunks) If I were to get the viewer count for each channel individually you can imagine all the requests that would take, and it would only continue to grow and grow as more channels are added.

Mike Ossareh

unread,
Aug 31, 2012, 3:24:23 PM8/31/12
to justintv-ap...@googlegroups.com
kk, can you open an issue on https://github.com/justintv/Twitch-API/issues , we'll think about it and post updates there.
Reply all
Reply to author
Forward
0 new messages