81trust / 100

Tools Statute Lookup

by x402 tools in Developer tools

x402 APIPassing, checked 39 min ago

Use to check one US statute citation before relying on it. Returns whether the section exists, is in force or repealed, its heading, full text and official source link. 48 states, DC and the US Code. Data: Open US Law v2026.08 (CC BY 4.0). Not legal advice.

GET https://x402-tools-production-2755.up.railway.app/tools/statute-lookup

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
176 ms typical, 176 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://x402-tools-production-2755.up.railway.app/tools/statute-lookup?cite=Cal.+Penal+Code+%C2%A7+187%28a%29"
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%2Fx402-tools-production-2755.up.railway.app%2Ftools%2Fstatute-lookup
const res = await pay("https://x402-tools-production-2755.up.railway.app/tools/statute-lookup?cite=Cal.+Penal+Code+%C2%A7+187%28a%29");
console.log(await res.json());

Example input

{
  "cite": "Cal. Penal Code § 187(a)"
}

Example output

{
  "citation": "Cal. Penal Code § 187(a)",
  "code": "ca.pen",
  "code_name": "Penal Code",
  "heading": null,
  "jurisdiction": "ca",
  "normalized": "Cal. Penal Code § 187",
  "section": "187",
  "section_status": "in_force",
  "snapshot": "v2026.08",
  "source_url": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=PEN&sectionNum=187.",
  "status": "verified",
  "subsection": "(a)",
  "subsection_found": true,
  "text": "(a) Murder is the unlawful killing of a human being, or a fetus, with malice aforethought. ..."
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
39 min agoPassed402346 ms$0.003
6 h agoPassed402176 ms$0.003