Based on this code:
function baixarCapa(capa, item) {
$.getJSON("https://ajax.googleapis.com/ajax/services/search/images?callback=?", {
q: '"' + capa + '"',
v: '1.0'
}, function(data) {
var url = data.responseData.results[0].url;
$('[data-capa=' + item + ']').html('<img src="' + url + '">');
});
}
I can download artist images using the Google Images API, but the results are wrong in 50% of cases and are different from when I access the Google website and search for the same term.
$ .getJSON Behavior http://img.somdomato.com/imagens/top10.jpg
Why does this happen? How can I correct this behavior? Thank you.