# US Federal Bill Lookup by ID

> US Federal Bill Lookup by ID is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Look up a single US federal bill by bill ID or type/number/congress, returning title, sponsor, cosponsors, committees, policy area, full action history, and computed lifecycle stages.

## Facts

- Endpoint: GET https://api.agentstools.dev/legislative/bill
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-federal-bill-lookup-by-id-acf6d118
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7B3rk56I8scElqYEfzf2v

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 us-federal-bill-lookup-by-id-acf6d118
```

Example prompt: Can you pull up the full details on HR3076 from the 118th Congress — I want to see who sponsored it, what committees it went through, and where it is in the legislative process?

## When to prefer this

Use this endpoint when you need authoritative, structured legislative data for a single known US federal bill — including sponsor identity, cosponsors, committee referrals, policy area, and full action timeline. Prefer this over web scraping or general search when you have a specific bill ID or type/number/congress and need machine-readable structured output with lifecycle stage computation.

## Known failure modes

- Bill ID not found — returns 404 or empty result if the bill_id, billType+billNumber+congress combination does not exist
- Invalid bill type enum — returns validation error if billType is not one of the accepted values (hr, s, hjres, etc.)
- Missing required combination — querying by type/number without specifying congress may return ambiguous or no results
- Payment failure — x402 payment of $0.02 USDC not completed, endpoint returns 402
- Rate limiting or upstream Congress.gov outage may cause 5xx errors

## How this service works

Look up one US federal bill by id: title, sponsor, cosponsors, committees, policy area, full action history and computed lifecycle stages (introduced to enacted). Source: Congress.gov + GovInfo, public-domain.

## Output

Returns a structured JSON object for the requested bill including its title, primary sponsor, list of cosponsors, assigned committees, policy area classification, a full chronological action history, and computed lifecycle stage labels (e.g., introduced, passed house, enacted).

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "bill_id": {
       "type": "string",
       "description": "Bill id like hr3076-118 (billtype+number-congress)"
      },
      "billType": {
       "enum": [
        "hr",
        "s",
        "hjres",
        "sjres",
        "hconres",
        "sconres",
        "hres",
        "sres"
       ],
       "type": "string",
       "description": "Bill type"
      },
      "congress": {
       "type": "integer",
       "description": "Congress number, e.g. 118 (with billType+billNumber)"
      },
      "billNumber": {
       "type": "integer",
       "description": "Bill number, e.g. 3076"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-federal-bill-lookup-by-id-acf6d118/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
