Ett enkelt anrop via ajax (JSONP) till data-API:et via jQuery.
var data = {
resource_id: '2ebf3bf9-e144-435a-a31f-e6e79a75e6e5', // the resource id
limit: 5, // get 5 results
q: 'jones' // query for 'jones'
};
$.ajax({
url: 'https://data.deliserdangkab.go.id/sv/api/3/action/datastore_search',
data: data,
dataType: 'jsonp',
success: function(data) {
alert('Total results found: ' + data.result.total)
}
});