Open.canada.ca uses a feature-rich registry system called CKAN. CKAN can be accessed by users through browsing and searching the data through the site or from machine-to-machine through the Application Programming Interface (API). CKAN has extensive instructions on using the API here but for starters, here are some examples of using the API:
- You can also download an activity stream of recently updated datasets using: https://open.canada.ca/data/en/api/3/action/recently_changed_packages_activity_list
- And you can use the API to automate search results. Trying this one: https://open.canada.ca/data/en/api/3/action/package_search?q=spending will return all the results with the search term “spending”
These are just a few of the ways you can use our API which can can be accessed using the domain name https://open.canada.ca/data/en/ or https://ouvert.canada.ca/data/fr/dataset. As we implement more features, the possibilities of using the API will increase.
Please Note: The CKAN API on open.canada.ca only supports GET requests. Please pass parameters as part of the request url, not as JSON in the body of a POST request.