# Gloom Congress Trades API

> Gloom Congress Trades API is a paid API for AI agents from api.gloom.sh, paid per call via x402, $0.06/call, status unknown (last checked 2026-11-01).

Retrieves congressional trading activity including stock trades made by members of the US Senate and House, with filing and transaction metadata.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/congress-trades?utm_source=zero.xyz
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-congress-trades-api-5ee2fe9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B1bnx0dsGKmW7UHghWzva

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 gloom-congress-trades-api-5ee2fe9e
```

Example prompt: Pull the latest congressional stock trades from Gloom — I want to see who in the Senate or House has been buying or selling equities, including the ticker, transaction date, and how many days it took them to file.

## When to prefer this

Choose this endpoint when you need structured, machine-readable congressional stock trading disclosure data with metadata like lag days and chamber classification. It is well-suited for agents monitoring political trading patterns, running compliance checks, or enriching financial analysis with congressional sentiment data. Prefer it over scraping STOCK Act disclosure PDFs directly or using generic financial data APIs that don't include congressional filing metadata.

## Known failure modes

- Invalid or missing query properties may return an empty data array
- Payment not included or insufficient USDC balance results in HTTP 402 Payment Required
- Rate limiting or overuse may result in HTTP 429
- Service unavailability returns HTTP 5xx errors
- Stale or delayed data if upstream disclosure sources are behind

## How this service works

Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.

## Output

Returns an array of congressional trade records, each containing the trade side (BUY/SELL), stock symbol, ticker, chamber (senate/house), number of days between transaction and filing (lagDays), filing date, transaction date, transaction type (e.g. Purchase), notification date, and state/district of the member.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "side": "BUY",
    "symbol": "AAPL",
    "ticker": "WMB",
    "chamber": "senate",
    "lagDays": 32,
    "filingDate": "2026-09-21",
    "stateDistrict": "",
    "transactionDate": "2026-08-20",
    "transactionType": "Purchase",
    "notificationDate": null
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-congress-trades-api-5ee2fe9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gloom.sh](https://www.zero.xyz/host/api.gloom.sh/llms.txt)
