גשו למשאב מידע דרך API מקוון עם תמיכה בשאילתות מורכבות. Further information in the main CKAN Data API and DataStore documentation.
ה-API של המידע יכול להתקבל באמצעות הפעולות הבאות של API פעולות של CKAN.
צרו | https://data.nativeland.info/he/api/3/action/datastore_create |
---|---|
הוסיפו/עדכנו | https://data.nativeland.info/he/api/3/action/datastore_upsert |
שאילתה | https://data.nativeland.info/he/api/3/action/datastore_search |
שאילתה (באמצעות SQL) | https://data.nativeland.info/he/api/3/action/datastore_search_sql |
![]() |
https://data.nativeland.info/he/datastore/odata3.0/f32f8166-81b1-4a01-826d-5f7ca1468aab |
https://data.nativeland.info/he/api/3/action/datastore_search?resource_id=f32f8166-81b1-4a01-826d-5f7ca1468aab&limit=5
https://data.nativeland.info/he/api/3/action/datastore_search?q=jones&resource_id=f32f8166-81b1-4a01-826d-5f7ca1468aab
https://data.nativeland.info/he/api/3/action/datastore_search_sql?sql=SELECT * from "f32f8166-81b1-4a01-826d-5f7ca1468aab" WHERE title LIKE 'jones'
בקשת ajax (JSONP) ל-API מידע באמצעות jQuery.
var data = { resource_id: 'f32f8166-81b1-4a01-826d-5f7ca1468aab', // the resource id limit: 5, // get 5 results q: 'jones' // query for 'jones' }; $.ajax({ url: 'https://data.nativeland.info/he/api/3/action/datastore_search', data: data, dataType: 'jsonp', success: function(data) { alert('Total results found: ' + data.result.total) } });
import urllib url = 'https://data.nativeland.info/he/api/3/action/datastore_search?resource_id=f32f8166-81b1-4a01-826d-5f7ca1468aab&limit=5&q=title:jones' fileobj = urllib.urlopen(url) print fileobj.read()