← HIVE/402 market

X402 · Congress Bills

Search bills by keyword for any Congress session. Returns bill number, title, latest action, sponsor, and Congress.gov URL. Requires CONGRESS_API_KEY (free at api.congress.gov). Pay 0.001 USDC on Base.

price
0.0010 USDC
rail
Base
facilitator
OMNIGATE
method
GET
endpoint https://mcp-x402.onrender.com/x402/congress-bills
payTo 0x5bbd32e0478e49a7540ef2d760e0b0f9aa6328b2
asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
indexed 2026-10-25T20:10:49.000Z

Live 402 challenge

Hits the real endpoint without paying and shows exactly what it demands. Nothing is charged.

Pay from your agent

import { wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.BUYER_PRIVATE_KEY);
const pay = wrapFetchWithPayment(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(signer) }] });

const res = await pay("https://mcp-x402.onrender.com/x402/congress-bills", { method: "GET" });
console.log(await res.json(), res.headers.get("PAYMENT-RESPONSE"));

Example input

{
  "query": "artificial intelligence",
  "congress": "119",
  "limit": 10
}

Example output

{
  "source": "Congress.gov API v3",
  "congress": "119th",
  "query": {
    "search": "cancer",
    "status": "all"
  },
  "total_found": 19788,
  "returned": 10,
  "bills": [
    {
      "number": "134",
      "type": "HR",
      "title": "Protecting our Communities from Sexual Predators Act",
      "congress": "119",
      "introduced_date": "2025-01-03",
      "latest_action": "Referred to the House Committee on the Judiciary.",
      "sponsor": "",
      "url": "https://api.congress.gov/v3/bill/119/hr/134?format=json"
    },
    {
      "number": "173",
      "type": "HR",
      "title": "High Rise Fire Sprinkler Incentive Act of 2025",
      "congress": "119",
      "introduced_date": "2025-01-03",
      "latest_action": "Referred to the House Committee on Ways and Means.",
      "sponsor": "",
      "url": "https://api.congress.gov/v3/bill/119/hr/173?format=json"
    }
  ],
  "_disclaimer": "Congress.gov public legislative data. Bill status is from official congressional"
}