congress-intel

US Congress legislative intelligence - bills, members, votes, and policy tracking via Congress.gov API

  • 6 Entrypoints
  • v1.0.0 Version
  • Enabled Payments
congress-intel-production.up.railway.app

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

overview

Invoke

Free overview of current Congress activity - try before you buy

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/overview/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/overview/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

bill-search

Invoke

Search bills by keyword, congress number, or type

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/bill-search/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "description": "Search keyword",
      "type": "string"
    },
    "congress": {
      "default": 119,
      "description": "Congress number (current: 119)",
      "type": "number"
    },
    "type": {
      "description": "Bill type",
      "type": "string",
      "enum": [
        "hr",
        "s",
        "hjres",
        "sjres",
        "hconres",
        "sconres",
        "hres",
        "sres"
      ]
    },
    "limit": {
      "default": 10,
      "description": "Max results (1-50)",
      "type": "number"
    }
  },
  "required": [
    "congress",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/bill-search/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "congress": 0,
        "limit": 0
      }
    }
  '

member-lookup

Invoke

Find Congress members by name, state, or party

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/member-lookup/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "description": "Member name to search",
      "type": "string"
    },
    "state": {
      "description": "Two-letter state code",
      "type": "string"
    },
    "party": {
      "type": "string",
      "enum": [
        "Democratic",
        "Republican",
        "Independent"
      ]
    },
    "limit": {
      "default": 10,
      "type": "number"
    }
  },
  "required": [
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/member-lookup/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "limit": 0
      }
    }
  '

recent-legislation

Invoke

Get recently introduced or acted-upon legislation

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/recent-legislation/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "chamber": {
      "default": "both",
      "type": "string",
      "enum": [
        "house",
        "senate",
        "both"
      ]
    },
    "days": {
      "default": 7,
      "description": "Look back N days",
      "type": "number"
    },
    "limit": {
      "default": 15,
      "type": "number"
    }
  },
  "required": [
    "chamber",
    "days",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/recent-legislation/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "chamber": "house",
        "days": 0,
        "limit": 0
      }
    }
  '

bill-details

Invoke

Get full details for a specific bill including sponsors and actions

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/bill-details/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "congress": {
      "type": "number",
      "description": "Congress number (e.g., 119)"
    },
    "type": {
      "type": "string",
      "enum": [
        "hr",
        "s",
        "hjres",
        "sjres",
        "hconres",
        "sconres",
        "hres",
        "sres"
      ],
      "description": "Bill type"
    },
    "number": {
      "type": "number",
      "description": "Bill number"
    }
  },
  "required": [
    "congress",
    "type",
    "number"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/bill-details/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "congress": 0,
        "type": "hr",
        "number": 0
      }
    }
  '

policy-report

Invoke

Comprehensive legislative report on a policy topic

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/policy-report/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "description": "Policy topic to research"
    },
    "congress": {
      "default": 119,
      "type": "number"
    }
  },
  "required": [
    "topic",
    "congress"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://congress-intel-production.up.railway.app/entrypoints/policy-report/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "topic": "<Policy topic to research>",
        "congress": 0
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…