This page reviews the Data Portal's common endpoints for programmatically retrieving data in JSON format.
Note: The current API endpoints are under heavy development and are subject to change.
Endpoints are available in two main formats for raw data extraction: JSON and CSV. If you wish to query your data in CSV or downloadable JSON-file format, these requests may hit our CDN and may take longer to retrieve.
To retrieve a summary list of all datasets, access the following endpoint: /api.
This endpoint contains the metadata for each table, and includes some of the following key information:
To access the CSV endpoint, you can target a dataset (who's ID is in /api), at /csv/[[Dataset ID]].
Queries and query structures that apply to JSON endpoints also apply to CSV endpoints.
To access a JSON endpoint, you can target a dataset (who's ID is in /api), at /api/[[Dataset ID]].
For both JSON and CSV endpoints, contents include:
Currently unavailable, but you will be able to conduct the following queries on any given dataset: