Open Government Canada

App · 3 actions

Find Canadian public datasets, look up download links and publishing departments, and monitor catalogue changes.

Actions

ActionWhat it does
Get an Open Government Canada datasetRead dataset metadata, licence details and links to published resources.
Get an Open Government Canada publisherRead a publishing department's name and catalogue metadata.
Search Open Government Canada datasetsFind published datasets and download resources.

Get an Open Government Canada dataset

Read dataset metadata, licence details and links to published resources.

Inputs

Dataset IDdataset_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 IDpublisher_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 queryquerytextRequired
Words to look for in the portal catalogue.
Limitlimitnumber
Number of datasets to return (1 to 100).From 1 to 100.
Offsetoffsetnumber
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
  }
}

On this page