CongressTrading API
Programmatic access to real-time congressional trading data. Integrate our feed directly into your algo-trading bots, research platforms, or news tickers.
Authentication
Authenticate your requests using your API key. You can pass it in the header (recommended) or as a query parameter.
curl "https://CongressTrading.app/api/trades" \
-H "x-api-key: YOUR_API_KEY"
/api/trades
Fetch the latest reported trades. Results are ordered by transaction date (newest first).
Parameters
| Name | Type | Description |
|---|---|---|
| ticker | string | Filter by stock symbol (e.g. NVDA) |
| politician | string | Partial match on name (e.g. Pelosi) |
| limit | int | Max records to return (default 100, max 1000) |
Example Response
[
{
"transaction_date": "2024-01-22",
"representative": "Nancy Pelosi",
"political_party": "Democrat",
"ticker": "NVDA",
"asset_name": "Nvidia Corp",
"transaction_type": "Purchase",
"transaction_price": 596.54
},
{
"transaction_date": "2024-01-20",
"representative": "Tommy Tuberville",
"political_party": "Republican",
"ticker": "TSLA",
"asset_name": "Tesla Inc",
"transaction_type": "Sale (Partial)",
"transaction_price": 212.10
}
]
/api/export
Stream the last 1,000 trades as a CSV file. This endpoint is optimized for browser downloads or data pipelines.
This endpoint requires a valid session cookie (Premium/Premium+ tier). It is best accessed via a web browser or a session-authenticated script.