Open Government Canada
App · 3 actions
Find Canadian public datasets, look up download links and publishing departments, and monitor catalogue changes.
Actions
| Action | What it does |
|---|---|
| Get an Open Government Canada dataset | Read dataset metadata, licence details and links to published resources. |
| Get an Open Government Canada publisher | Read a publishing department's name and catalogue metadata. |
| Search Open Government Canada datasets | Find published datasets and download resources. |
Get an Open Government Canada dataset
Read dataset metadata, licence details and links to published resources.
Inputs
- Dataset ID
dataset_idtextRequired - Dataset ID or slug from a search result.
Outputs
dataobject- The response from Open Government Canada.
Example output
{
"data": {
"result": {
"id": "example",
"license_title": "example",
"metadata_modified": "example",
"name": "example",
"organization": {
"id": "example",
"name": "example",
"package_count": 1,
"title": "example",
"title_translated": {}
},
"resources": [
{
"format": "example",
"id": "example",
"name": "example",
"url": "example"
}
],
"title": "example",
"title_translated": {}
},
"success": true
}
}Get an Open Government Canada publisher
Read a publishing department's name and catalogue metadata.
Inputs
- Publisher ID
publisher_idtextRequired - Publisher ID or slug from the dataset's organization, such as ec.
Outputs
dataobject- The response from Open Government Canada.
Example output
{
"data": {
"result": {
"id": "example",
"name": "example",
"package_count": 1,
"title": "example",
"title_translated": {}
},
"success": true
}
}Search Open Government Canada datasets
Find published datasets and download resources. Recently updated catalogue entries appear first.
Inputs
- Search query
querytextRequired - Words to look for in the portal catalogue.
- Limit
limitnumber - Number of datasets to return (1 to 100).From 1 to 100.
- Offset
offsetnumber - Number of matching datasets to skip.At least 0.
Outputs
dataobject- The response from Open Government Canada.
Example output
{
"data": {
"result": {
"count": 1,
"results": [
{
"id": "example",
"license_title": "example",
"metadata_modified": "example",
"name": "example",
"organization": {
"id": "example",
"name": "example",
"package_count": 1,
"title": "example",
"title_translated": {}
},
"resources": [
{
"format": "example",
"id": "example",
"name": "example",
"url": "example"
}
],
"title": "example",
"title_translated": {}
}
]
},
"success": true
}
}