request stream list with particular parameters?

180 views
Skip to first unread message

Mathias Schmedeshagen

unread,
Feb 8, 2014, 2:01:46 PM2/8/14
to twitc...@googlegroups.com
sorry if this is trivia, but is it possible to request data from the twitch with parameters like:

'game=dota2' AND 'status=live' AND 'viewers>=100'

Ideally twitch would respond a list like it normally does, but narrowed down already.
we got more than 1000 streams in our list and its kinda messy trying to keep the stats updated in a neutral and timely manner.

thx a lot!

Andrew Bashore

unread,
Feb 10, 2014, 5:28:30 PM2/10/14
to twitc...@googlegroups.com
The game param is already supported. Ex: https://api.twitch.tv/kraken/streams?game=Minecraft

Streams are by definition live so a param for that would not be needed.

As for only querying for a specific number of viewers, results are sorted by viewer count so you would need to increment your offsets until you get down to the number of viewers you are looking for.



--
You received this message because you are subscribed to the Google Groups "Twitch API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twitch-api+...@googlegroups.com.
To post to this group, send email to twitc...@googlegroups.com.
Visit this group at http://groups.google.com/group/twitch-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages