JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
</div>
JavaScript
$.ajax({
url:"https://cors-anywhere.herokuapp.com/https://api.qwant.com/api/search/images?count=10&offset=1&q=cars",
success: function(json) {
if (json.data && json.data.result && json.data.result.items) {
json.data.result.items.forEach(function (item) {
var img = $('<img>'), title = $('<div>' + item.title + '</div>');
img.attr('src', item.media);
img.appendTo(title);
title.appendTo('#container');
})
}
},
error: function(e) {
console.log(e);
}
});