You need JSONP for cross-browser requests. The link you gave me works fine with getJSON jquery function.
for streams: http://jsfiddle.net/82wNq/27/
for games: http://jsfiddle.net/82wNq/25/
$.getJSON("https://api.twitch.tv/kraken/search/games?q=star&type=suggest&callback=?", function (data) {
$.each(data.games, function (index, item) {
$("<div>").html(item.name).appendTo("#content");
$("<img>").attr("src", item.box.medium).appendTo("#content");
});
});
1
solved Cross-Domain AJAX Call [duplicate]