# Canada Open Data Search API (`osmateus/canada-open-data-catalog-api`) Actor

Search Canada's open data catalog with dataset titles, notes, organizations, licenses, tags, resources, update dates, and URLs.

- **URL**: https://apify.com/osmateus/canada-open-data-catalog-api.md
- **Developed by:** [Mateo Tejeda](https://apify.com/osmateus) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Canada Open Data Search API

Canada Open Data Search API helps teams collect Canada open data, CKAN search, government datasets as clean JSON on Apify.
It uses Open Canada CKAN API, so the listing matches the real data source used by the Actor.
Search Canada's open data catalog with dataset titles, notes, organizations, licenses, tags, resources, update dates, and URLs.
The Actor uses the real public source validated during development:

- Source: Open Canada CKAN API
- Region: Canada
- Start URL/API: `https://open.canada.ca/data/api/action/package_search?q=health&rows=10`
- Output: normalized JSON records pushed to the default Apify dataset

### What You Can Extract

Use this Actor to collect structured government open data catalog records for enrichment, monitoring, market research, dashboards, AI agents, and scheduled data pipelines. The output keeps the useful source fields while adding rank, source, region, source URL, and fetch timestamp fields, so every row can be traced back to its origin.

Typical use cases include international market intelligence, public-sector data discovery, local SEO research, data enrichment, academic research, travel and transport monitoring, risk monitoring, and automated reporting. The Actor intentionally avoids brittle browser scraping and heavy bot-protected websites. It calls a public JSON endpoint and exits after pushing data, keeping maintenance low and runs fast.

### Input

Most users only need to adjust `maxResults`. Some sources also support a search query, country code, station code, city code, area code, indicator code, Formula 1 season, or CNPJ list depending on the underlying API.

### Example Output

```json
{
  "rank": 1,
  "actor": "canada-open-data-catalog-api",
  "source": "Open Canada CKAN API",
  "region": "Canada",
  "fetchedAt": "2026-07-06T00:00:00.000Z",
  "datasetId": "21d8ef00-a5e3-4e49-ae96-2b61b90a4dda",
  "title": "Preconception health",
  "organization": "Government of Canada",
  "resourceCount": 3
}
```

### SEO Keywords

Canada Open Data Catalog API, Canada data API, government open data catalog scraper, public data extractor, Apify Canada Actor, Open Canada CKAN API API, no login data API, structured JSON dataset.

# Actor input Schema

## `maxResults` (type: `integer`):

Maximum number of dataset items to return.

## `query` (type: `string`):

Optional keyword or entity search query supported by this source.

## Actor input object example

```json
{
  "maxResults": 20,
  "query": "health"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("osmateus/canada-open-data-catalog-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("osmateus/canada-open-data-catalog-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call osmateus/canada-open-data-catalog-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,osmateus/canada-open-data-catalog-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fHHUeeabZDvfl5wfO/builds/J34gcNlMoYohY7w8y/openapi.json
