# red-web-utils Legislation Search

> red-web-utils Legislation Search is a paid API for AI agents from red-web-utils.agent-tools-x402.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-04).

Searches legislation and bills by keyword query, returning relevant legislative records for AI agents.

## Facts

- Endpoint: POST https://red-web-utils.agent-tools-x402.workers.dev/api/legislation/search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/red-web-utils-legislation-search-c0423e91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nNjZ6ooe-Je41so8aI9WE

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 red-web-utils-legislation-search-c0423e91 -d '<json body>'
```

Example prompt: Can you search for legislation related to artificial intelligence regulation and tell me what bills or laws come up?

## When to prefer this

Use this endpoint when an agent needs to look up real legislation, bills, or laws by keyword in a pay-per-call context using USDC micropayments via x402. Prefer this over scraping congress.gov or similar sites when you need a structured, agent-friendly API response with predictable pricing.

## Known failure modes

- Empty query string returns validation error
- No matching legislation found returns empty results array
- Overly broad queries may return too many or low-relevance results
- Payment failure (402) if USDC balance is insufficient
- Service unavailable or worker timeout on the Cloudflare edge

## How this service works

Pay-per-call web and onchain utilities for AI agents (MPP + x402, USDC on Base).

## Output

Returns a list of legislative records matching the search query, likely including bill titles, identifiers, summaries, status, and relevant metadata drawn from legislative databases.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "q"
 ],
 "properties": {
  "q": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/red-web-utils-legislation-search-c0423e91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from red-web-utils.agent-tools-x402.workers.dev](https://www.zero.xyz/host/red-web-utils.agent-tools-x402.workers.dev/llms.txt)
