# Maxwell x402 – Canada Federal Open Data Search

> Maxwell x402 – Canada Federal Open Data Search is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Search Canada's federal open data portal (open.canada.ca) by keyword or fetch a specific dataset by ID, returning English/French titles, publishing organization, last modified date, resource count, and total match count.

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/gov/ca/open-data?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-x402-canada-federal-open-data-search-de4d005c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Oo9TJi3UF8PWxsk8Y_Mr

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 maxwell-x402-canada-federal-open-data-search-de4d005c
```

Example prompt: Search Canada's federal open data portal for datasets about climate change and tell me how many results there are, along with the titles and publishing organizations of the top matches.

## When to prefer this

Choose this endpoint when you need to discover or retrieve metadata about Canadian federal government datasets from open.canada.ca, especially when bilingual (English/French) metadata is needed or when you want to identify how many federal datasets exist on a given topic. Prefer this over general web search when structured, machine-readable dataset metadata is required for downstream processing or research workflows.

## Known failure modes

- No results found for obscure or misspelled keywords — returns empty items array with count 0
- Invalid dataset ID returns an error or empty result
- Rate limiting or payment failure returns 402 Payment Required
- Upstream open.canada.ca portal unavailability causes fetch failure
- Query parameters missing or malformed return validation errors

## How this service works

Search Canada's federal open data portal (open.canada.ca) by keyword, or fetch one dataset by id: English and French titles, publishing organization, last modified date, number of resources and the total match count.

## Output

Returns a JSON object with: ok status, cache hit/miss indicator, total match count, query echo, source URL, country, fetch timestamp, and an array of dataset items each containing a UUID name, English title, French title, last modified datetime, package ID, publishing organization name, and resource count.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "sku": "gov.ca.open_data",
  "cache": "search-hit",
  "count": 5,
  "items": [
   {
    "name": "0032ce54-c5dd-4b66-99a0-320a7b5e99f2",
    "titleEn": "Federal Corporations",
    "titleFr": "Societes de regime federal",
    "modified": "2026-09-29T12:31:43.041317",
    "packageId": "0032ce54-c5dd-4b66-99a0-320a7b5e99f2",
    "organization": "Innovation, Science and Economic Development Canada | Innovation, Sciences et...",
    "resourceCount": 10
   }
  ],
  "query": "corporations",
  "source": "open.canada.ca",
  "country": "Canada",
  "fetchedAt": "2026-09-29T12:34:50.539Z",
  "totalCount": 1072
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-canada-federal-open-data-search-de4d005c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maxwellinternational.ai](https://www.zero.xyz/host/api.maxwellinternational.ai/llms.txt)
