Copy the following HTML and paste into your webpage to embed this view.
<iframe src='https://catalog.sarawak.gov.my/dataset/sarawak_export-by-commodity-sections/resource/8b8ef84c-d32b-44cd-a759-3b9a1e63f2f1/view/afca6222-6228-40ca-9869-182fd2dda08e' frameBorder="0"></iframe>
The Data API can be accessed via the following actions of the CKAN action API.
https://catalog.sarawak.gov.my/api/3/action/datastore_search
https://catalog.sarawak.gov.my/api/3/action/datastore_search?resource_id=8b8ef84c-d32b-44cd-a759-3b9a1e63f2f1&limit=5
https://catalog.sarawak.gov.my/api/3/action/datastore_search?resource_id=8b8ef84c-d32b-44cd-a759-3b9a1e63f2f1&q=jones
A simple ajax (JSONP) request to the data API using jQuery.
var data = { resource_id: '8b8ef84c-d32b-44cd-a759-3b9a1e63f2f1', // 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) } });
import urllib url = 'https://catalog.sarawak.gov.my/api/3/action/datastore_search?resource_id=8b8ef84c-d32b-44cd-a759-3b9a1e63f2f1&limit=5&q=title:jones' fileobj = urllib.urlopen(url) print fileobj.read()