# AgentRXI US Congress Bills API

> AgentRXI US Congress Bills API is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-15).

Search US Congress bill text by keywords or look up detailed bill metadata (title, sponsor, cosponsors, policy area, actions) by bill ID

## Facts

- Endpoint: GET https://agentrxi.com/v1/congress?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-us-congress-bills-api-46283d67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N16nyFn774MFCH0KaVYLh

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 agentrxi-us-congress-bills-api-46283d67
```

Example prompt: Can you look up the details for bill hr1-119 — I need the title, sponsor, cosponsors, and the latest action taken on it?

## When to prefer this

Use this endpoint when you need authoritative US Congressional bill data — either full-text keyword search via GovInfo or structured metadata per bill via Congress.gov. Prefer this over general web search when you need structured legislative metadata like sponsor, cosponsors, policy area, and action history for a specific bill ID, or when you need to find bills related to a topic with official government source data.

## Known failure modes

- Invalid bill ID format returns an error — must follow pattern like hr1-119 or s50-119
- Bill ID not found if the bill does not exist in Congress.gov
- Keyword search returns no results if query is too specific or uses non-standard terminology
- Missing limit parameter may return a default number of results
- Rate limiting or payment failure via x402 protocol if USDC balance is insufficient

## How this service works

US Congress bills: search bill text by keywords (GovInfo), or pass a bill id such as hr1-119 for its title, sponsor, cosponsors, policy area, latest action and recent actions (Congress.gov).

## Output

For keyword searches (GovInfo): a list of matching bills with text excerpts and bill IDs. For bill ID lookups (Congress.gov): structured metadata including the bill's title, primary sponsor, list of cosponsors, policy area classification, latest action with date, and a list of recent actions in the legislative history.

## 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",
     "properties": {
      "q": {
       "type": "string",
       "description": "Keywords"
      },
      "bill": {
       "type": "string",
       "description": "e.g. hr1-119 or s50-119"
      },
      "limit": {
       "type": "integer"
      }
     }
    }
   },
   "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/agentrxi-us-congress-bills-api-46283d67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
