81trust / 100
Us Legislation
by Maxwell x402 in Search & web
x402 APIPassing, checked 2 h ago
US federal regulations from the eCFR (Code of Federal Regulations, not statutes; not an official legal edition): search by title, or fetch one section by its id, with title, status, dates and the official link. Uncached: 404, not charged, fetched within about a minute.
GET https://api.maxwellinternational.ai/v1/gov/us/legislation
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 78 ms typical, 78 ms slowest 5%
- Last check
- 2 h 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/us/legislation?id=title-16%2Fsection-312.2"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%2Fus%2Flegislation
const res = await pay("https://api.maxwellinternational.ai/v1/gov/us/legislation?id=title-16%2Fsection-312.2");
console.log(await res.json());Example input
{
"id": "title-16/section-312.2"
}Example output
{
"cc": "us",
"country": "United States",
"family": "legislation",
"found": true,
"id": "title-16/section-312.2",
"ok": true,
"sku": "gov.us.legislation",
"source": "eCFR - Electronic Code of Federal Regulations (Office of the Federal Register...",
"sourceClass": "official-api",
"sourceLicence": {
"attribution": "Source: eCFR (ecfr.gov). Not an official legal edition of the CFR.",
"name": "U.S. Government work (public domain). The eCFR is an editorial compilation, n...",
"url": "https://www.ecfr.gov/reader-aids/using-ecfr/ecfr-legal-status"
},
"title": "Definitions.",
"type": "Section"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 71 ms | $0.005 |
| 5 h ago | Passed | 402 | 92 ms | $0.005 |
| 10 h ago | Passed | 402 | 78 ms | $0.005 |