This code is crap, however, it works. I did it quickly because I saw that no one answered your question.. About the Google API, you will make some requests and have some errors, this API is paid for, the API you sent up is obsolete, now it is the Custom Search that is in use. So if after a few attempts you fail it may be due to this charge.
Code:
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<script>
//Usando jQuery
a = $.getJSON( "http://ajax.googleapis.com/ajax/services/search/images?v=2.0&hl=pt-br&cr=countryBR&q=carros")
.done(function( json ) {
b = jQuery.parseJSON(a.responseText)
for ( var i = 0; i < b.responseData.results.length; i++ ) {
document.write("<img src='"+b.responseData.results[i].unescapedUrl+"' />");
}
})
.fail(function( jqxhr, textStatus, error ) {
document.write("Erro ao capturar JSON");
});
</script>
</body>
</html>
I can post with jQuery?
– Ronny Amarante
You can! @Ronnyamarante
– Alexandre Lopes