# Script Master Labs — Congress Bills Search API

> Script Master Labs — Congress Bills Search API is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Search U.S. congressional bills by keyword for a given Congress session, with per-call payment settled in USDC on Base via x402.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/congress-bills
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-congress-bills-search-api-a877d167
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t-ia1K18waWKVqEXAa1a6

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 script-master-labs-congress-bills-search-api-a877d167
```

Example prompt: Search the 119th Congress for bills related to 'artificial intelligence regulation' and return up to 10 results.

## When to prefer this

Choose this endpoint when you need to search and retrieve U.S. federal congressional bill data by keyword, especially for the current or recent Congress sessions, and are operating in a pay-per-call micropayment context using USDC on Base. It is well-suited for policy research, legislative monitoring, lobbying intelligence, and journalism tasks where structured bill metadata is needed on demand without a subscription.

## Known failure modes

- Missing required 'query' parameter returns a 400 error
- Invalid or unrecognized congress number may return empty results or an error
- Payment failure via x402 (insufficient USDC balance) results in a 402 Payment Required response
- Overly broad or ambiguous query may return too many loosely related bills
- Rate limiting or server unavailability on the hosted Render service may cause 503 errors

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

A list of U.S. congressional bills matching the keyword query, including bill titles, bill numbers, sponsors, status, and related metadata for the specified Congress session.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 20,
       "minimum": 1
      },
      "query": {
       "type": "string",
       "description": "Bill keyword search (required)."
      },
      "congress": {
       "type": "string",
       "description": "Congress number (e.g. 119 for 119th Congress, 2025-2026). Default: 119."
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-congress-bills-search-api-a877d167/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
