# fittings US Public/Private Law Lookup

> fittings US Public/Private Law Lookup is a paid API for AI agents from fittings.sh, paid per call via x402, $0.009/call, status unknown (last checked 2026-09-14).

Retrieves metadata and optionally the enacted text for a US public or private law, identified by Congress number and law number, from the GovInfo database.

## Facts

- Endpoint: GET https://fittings.sh/v1/govinfo/public-law
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-us-public-private-law-lookup-13834d45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wjW4qJ54c6etxCe9SZk5o

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 fittings-us-public-private-law-lookup-13834d45
```

Example prompt: Look up Public Law 117-58 from the 117th Congress — give me its official title, short titles, date it was signed, and which US Code sections it touched.

## When to prefer this

Use this endpoint when you need authoritative metadata or the full enacted text of a specific US federal law identified by its Congress number and law number. Prefer this over general web search when you need structured data fields like US Code citations, Statutes at Large pages, or official titles with certainty and machine-readable output.

## Known failure modes

- Invalid congress number (outside 1-130) returns an error
- Law number not found for the given congress returns a not-found error
- Private law requested but type defaulted to public causes mismatch
- maxChars exceeding 200000 or below 1 rejected as invalid
- Network or upstream GovInfo API unavailability causes a timeout or 5xx error

## How this service works

An enacted US public or private law by Congress and law number: official title, short titles, date signed, the US Code sections and Statutes at Large pages it touched, and optionally the enacted text.

## Output

Returns the official title, short titles, date signed, US Code sections affected, Statutes at Large page citations, and optionally up to 200,000 characters of the enacted legislative text for the specified law.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "congress",
      "law"
     ],
     "properties": {
      "law": {
       "type": "number",
       "description": "Law number within that Congress, 1-2000"
      },
      "type": {
       "type": "string",
       "description": "'public' (default) or 'private'"
      },
      "congress": {
       "type": "number",
       "description": "Congress number, 1-130, e.g. 118"
      },
      "maxChars": {
       "type": "number",
       "description": "Characters of text to return, 1-200000, default 20000"
      },
      "includeText": {
       "type": "boolean",
       "description": "Include the enacted text, default false"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-us-public-private-law-lookup-13834d45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
