81trust / 100
Ca Legislation
by Maxwell x402 in Developer tools
x402 APIPassing, checked 39 min ago
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.
GET https://api.maxwellinternational.ai/v1/gov/ca/legislation
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 76 ms typical, 76 ms slowest 5%
- Last check
- 39 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.maxwellinternational.ai/v1/gov/ca/legislation?code=C-46"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.maxwellinternational.ai%2Fv1%2Fgov%2Fca%2Flegislation
const res = await pay("https://api.maxwellinternational.ai/v1/gov/ca/legislation?code=C-46");
console.log(await res.json());Example input
{
"code": "C-46"
}Example output
{
"code": "C-46",
"consolidatedNumber": "C-46",
"country": "Canada",
"currentToDate": "2026-09-21",
"inForce": true,
"lastAmended": "2026-07-18",
"longTitleEn": "An Act respecting the Criminal Law",
"ok": true,
"pitDate": "2026-07-18",
"skuFamily": "gov.ca.legislation",
"titleEn": "Criminal Code",
"titleFr": "Code criminel"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 39 min ago | Passed | 402 | 70 ms | $0.005 |
| 4 h ago | Passed | 402 | 302 ms | $0.005 |
| 9 h ago | Passed | 402 | 76 ms | $0.005 |