title: Justin TV API - Jquery / JSON
body: <p>I was wondering if somebody could show me an example of how to use the Justin TV API. They have this <a href="http://apiwiki.justin.tv/mediawiki/index.php/REST_API_Documentation" rel="nofollow">documentation</a> and an 'example' on there along with <a href="http://apiwiki.justin.tv/mediawiki/index.php/Returned_Objects" rel="nofollow">return values</a> (Here's the <a href="http://api.justin.tv/api/stream/list.xml?channel=dreamhacksc2" rel="nofollow">xml file</a>) but when I try to use it I don't under stand where it defines what channel it's pulling from. If I want to pull a channels summary - I tried this:</p>
  
  <pre><code>$.getJSON("http://api.justin.tv/stream/summary?channel=dreamhacksc2", function(a){alert(a.summary);});
  </code></pre>
  
  <p>but I keep getting Bad Origin errors. I've been trying to find examples online but haven't found anything solid. Can somebody work up an example of pulling something from a certain channel? I could probably work off it from there.</p>