I'm having some troubleS with the iTunes Search API. I can see the data when I access it directly via URL (i.e. http://itunes.apple.com/search?term=Reeder&country=fr&entity=software), but when I try it via a simple script, the data won't load.
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://itunes.apple.com/search?term=Reeder&country=fr&entity=software');
xhr.send();
xhr.addEventListener('readystatechange', function () {
if (xhr.readyState === xhr.DONE && xhr.status === 200) {
alert(xhr.responseText);
}
}, false);
Does anybody know what's going on?