ጠንካራ የጠያቂ ድጋፍ ባለው የድር ኤፒአይ በመጠቀም መረጃ ያግኙ።. ለበለጠ መረጃ የ CKAN የመረጃ ኤፒአይ እና የመረጃ ማከማቻ መግለጫ ሰነድ.
የመረጃው ኤፒአይ በሚከተሉት የ CKAN ኤፒአይ ድርጊት ሂደቶች ማግኝት ይችላሉ።
ፍጠር | https://katalog.satudata.go.id/am/api/3/action/datastore_create |
---|---|
አሻሽል / አስገባ | https://katalog.satudata.go.id/am/api/3/action/datastore_upsert |
መጠይቅ | https://katalog.satudata.go.id/am/api/3/action/datastore_search |
መጠይቅ (በ SQL) | https://katalog.satudata.go.id/am/api/3/action/datastore_search_sql |
jQuery በመጠቀም ወደ መረጃ ኤፒአይ ቀላል የአጃክስ (JSONP) ጥያቄ
var data = { resource_id: 'e7e06bd2-11c6-4923-8779-112a42a5a25a', // the resource id limit: 5, // get 5 results q: 'jones' // query for 'jones' }; $.ajax({ url: 'https://katalog.satudata.go.id/am/api/3/action/datastore_search', data: data, dataType: 'jsonp', success: function(data) { alert('Total results found: ' + data.result.total) } });
import urllib url = 'https://katalog.satudata.go.id/am/api/3/action/datastore_search?resource_id=e7e06bd2-11c6-4923-8779-112a42a5a25a&limit=5&q=title:jones' fileobj = urllib.urlopen(url) print fileobj.read()