Access resource data via a web API with powerful query support
The Data API can be accessed via the following actions of the Bayanat action API.
Query | https://admin.bayanat.ae/api/opendata/GetDatasetResourceData |
---|
A simple ajax (JSONP) request to the data API using jQuery.
var data = { resourceID: 4hYeNGy6TYMeQwfOoAHT3jbzMhYFIwyZ3LtXL8WICtE, // the resource id limit: 5, // get 5 results query: 'united' // query for 'united' }; $.ajax({ url: 'https://admin.bayanat.ae/api/opendata/GetDatasetResourceData', data: data, dataType: 'jsonp', success: function(data) { console.log('Total results found: ' + data) } });
import urllib url = 'https://admin.bayanat.ae/api/opendata/GetDatasetResourceData? resourceID=4hYeNGy6TYMeQwfOoAHT3jbzMhYFIwyZ3LtXL8WICtE &query=united&limit=5' fileobj = urllib.urlopen(url) print fileobj.read()