Legislation lookup by bill identifier: official metadata for House and Senate bills and re
Legislation lookup by bill identifier: official metadata for House and Senate bills and resolutions — sponsor, introduction date, latest action, committees, cosponsor and amendment counts — cached one hour. The deterministic companion to keyword-based regulation search.
5000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-20
updated
Provider
x402.forgemesh.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"congress": "118",
"number": "2226",
"type": "s"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"attribution": "Congress.gov (public domain)",
"data": {
"bill": {
"congress": 118,
"latestAction": {
"actionDate": "2024-12-11",
"text": "Became Public Law"
},
"number": "2226",
"policyArea": {
"name": "Armed Forces and National Security"
},
"sponsors": [
{
"fullName": "Sen. Example"
}
],
"title": "National Defense Authorization Act example",
"type": "S"
}
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"congress": {
"description": "congress number, e.g. '119' (default 119)",
"type": "string"
},
"number": {
"description": "bill number, e.g. '1' (default 1)",
"type": "string"
},
"type": {
"description": "bill type: hr, s, hjres, sjres, hconres, sconres, hres, sres (default hr)",
"type": "string"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"info": {
"required": false
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "eip712",
"payload": {
"amount": "5000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"resourceUrl": "https://x402.forgemesh.io/legislation-lookup",
"scheme": "exact",
"validUntil": 1787248355,
"version": 1
},
"signature": "0x788c59a9014b7ec74ffe13eb4a23cada7b72f9568e0744e73878fb8ff90c05767fffb2b59de33d2a0fe01c51543ed5c1ffe89af5451975dbe78caf7beb53fc071c"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}Use it
curl
curl "https://x402.forgemesh.io/legislation-lookup" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.forgemesh.io/legislation-lookup");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.forgemesh.io/legislation-lookup")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14297.json, and this resource appears in /discovery/resources and /discovery/search.