# Maxwell x402 — Canadian Federal Legislation Lookup

> Maxwell x402 — Canadian Federal Legislation Lookup is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-30).

Returns metadata and optionally full section text for a single Canadian federal act from the Justice Laws consolidated statutes, identified by its act code.

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/gov/ca/legislation?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-x402-canadian-federal-legislation-lookup-bc922859
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wvByankqUxno4d7mNqgp1

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-canadian-federal-legislation-lookup-bc922859
```

Example prompt: Can you look up the Canadian federal act with code C-46 and tell me its official English and French titles, whether it's currently in force, and when it was last amended?

## When to prefer this

Use this endpoint when you need structured metadata about a specific Canadian federal statute and already know its act code. It is ideal for legal research tools, compliance checks, and bilingual (English/French) legal data needs. Prefer this over a general web search when you need machine-readable, authoritative data including in-force status and amendment dates from the official consolidated statutes.

## Known failure modes

- Invalid or unknown act code returns an error or empty result
- Act code not present in Justice Laws consolidated statutes yields no match
- Malformed query parameters cause a 400-level error
- Network or payment (x402) failure prevents response
- Act codes that are province-level or non-federal are not covered

## How this service works

One Canadian federal act from the Justice Laws consolidated statutes, by code (e.g. C-46): English and French titles, in-force status, last amended and current-to dates, and optionally its section text.

## Output

A JSON object with the act code, country (Canada), English title, French title, in-force boolean, last amended date, current-to date, consolidated number, SKU family, and optionally full section text of the act.

## 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,
  "code": "C-46",
  "country": "Canada",
  "inForce": true,
  "pitDate": "2026-07-18",
  "titleEn": "Criminal Code",
  "titleFr": "Code criminel",
  "skuFamily": "gov.ca.legislation",
  "lastAmended": "2026-07-18",
  "longTitleEn": "An Act respecting the Criminal Law",
  "currentToDate": "2026-09-21",
  "consolidatedNumber": "C-46"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-canadian-federal-legislation-lookup-bc922859/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)
