JSFiddle - React, Tailwind, and code Playground

by jamesinealing

HTML

<div id="content"></div>

JavaScript

var apiCall = 'http://www.europeana.eu/api/v2/search.json?wskey=api2demo&query=europeana_collectionName%3A9200434*&start=1&rows=24&profile=rich';
$.getJSON(apiCall, function (json) {
// here we will do something with the response
    var totalcount = json.totalResults;
    var counthtml = '<h2>Total results: ' + totalcount + '</h2>';
    $('#content').append(counthtml);
});