Stream/summary

From Justin.tv API Wiki

Revision as of 22:22, 23 January 2012 by Ossareh (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Returns aggregate stream information for all live channels (possibly scoped by category).

Interface

URL: http://api.justin.tv/api/streams/summary.format
Formats: xml, json
Methods: GET
Params: Can include:

  • channel, which will limit to those streams
  • category (Justin.tv Categories), which would be the same as the name appearing in the URL of its corresponding directory page on justin.tv (http://www.justin.tv/directory/science_tech, http://www.justin.tv/directory/featured, etc.)
  • language, which will select only channels in that language. Language is specified as the language code: nl, fr, zh-cn, etc.


Cache: This response is cached for 60 seconds; polling faster than that will yield no new results.

Examples

 <hash>
   <viewers_count>65418</viewers_count>
   <streams_count>1569</streams_count>
 </hash>


 <hash>
   <viewers_count>2393</viewers_count>
   <streams_count>141</streams_count>
 </hash>
Client Libraries