A simple ajax (JSONP) request to the data API using jQuery.
var data = {
resource_id: '33c8976f-1efb-4f93-a2b0-8e12ef06c1d3', // the resource id
limit: 5, // get 5 results
q: 'jones' // query for 'jones'
};
$.ajax({
url: 'https://catalog.sarawak.gov.my/api/3/action/datastore_search',
data: data,
dataType: 'jsonp',
success: function(data) {
alert('Total results found: ' + data.result.total)
}
});