# Canada Open Data Catalogue Search

> Canada Open Data Catalogue Search is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Searches the Canadian federal open data catalogue (open.canada.ca) for datasets matching a keyword, returning catalogue metadata such as title, publisher, licence, last modified date, resource count, and dataset link.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/canada-open-data?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canada-open-data-catalogue-search-5e3b145c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nKvARh1MCQuszLnm4RBA5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability canada-open-data-catalogue-search-5e3b145c
```

Example prompt: Search the Canadian federal open data catalogue for up to 8 datasets about 'climate change' and give me their titles, publishers, licences, and links.

## When to prefer this

Choose this endpoint when you need to discover or enumerate Canadian federal government datasets by topic, and only need catalogue-level metadata (title, publisher, licence, freshness, link) rather than the actual dataset contents. Prefer this over general web search when you specifically want open.canada.ca datasets with structured, machine-readable metadata. Not suitable for retrieving the underlying data files or for searching provincial/municipal Canadian datasets.

## Known failure modes

- Query string shorter than 2 or longer than 80 characters returns a validation error
- No matching datasets found returns an empty results list
- CKAN API upstream outage may cause timeout or 5xx error
- Rows parameter outside 1–10 range may be rejected or clamped
- Non-English or non-French search terms may yield fewer results

## How this service works

Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

Returns a list of up to 10 (default 5) dataset catalogue entries from the Canadian federal open data portal, each including: dataset title, publisher name, licence type, last modified date, number of resources, and a direct link to the dataset page on open.canada.ca. This is catalogue metadata only — not the actual data files themselves.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search text, 2 to 80 characters"
      },
      "rows": {
       "type": "string",
       "description": "Datasets to return, 1 to 10 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/canada-open-data-catalogue-search-5e3b145c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
