# Open Government Canada

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

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/open-government-canada

## Actions

### Get an Open Government Canada dataset

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

**Inputs**

- Dataset ID (`dataset_id`, text, required): Dataset ID or slug from a search result.

**Outputs**

- `data` (object): The response from Open Government Canada.

**Example output**

```json
{
  "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_id`, text, required): Publisher ID or slug from the dataset's organization, such as ec.

**Outputs**

- `data` (object): The response from Open Government Canada.

**Example output**

```json
{
  "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 (`query`, text, required): Words to look for in the portal catalogue.
- Limit (`limit`, number): Number of datasets to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching datasets to skip. At least 0.

**Outputs**

- `data` (object): The response from Open Government Canada.

**Example output**

```json
{
  "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
  }
}
```
