Ett enkelt anrop via ajax (JSONP) till data-API:et via jQuery.
var data = {
resource_id: '94989db9-7272-464e-81b5-c3d9c99c998b', // 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)
}
});