Congress trading volume over time API
Congressional trades and their value per day, week or month over a window.
GET /v1/uscongresstrades/stats/volume2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/uscongresstrades/stats/volume?days=90&period=month",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "days": 90, "period": "month", "buckets": [ { "start": "2026-08-01", "trades": 36, "buys": 8, "sells": 28, "value": 2133500 }, { "start": "2026-09-01", "trades": 830, "buys": 408, "sells": 420, "value": 23373711 }, "… 2 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
daysquery | integer | Window in days, 1 to 120. Defaults to 30. |
periodquery | "day" | "week" | "month" | One of day, week, month. |
Response fields
200 with a CongressVolume, in US Congress trades’s own JSON.
| Field | Type | Description |
|---|---|---|
days | integer | |
period | string | |
buckets | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Buckets, oldest first. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No member, ticker or trade matches. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | US Congress trades is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How far back?
Up to 120 days per call.
US Congress trades is a trademark of 2iQ Research (Capitol Trades). We are not affiliated with or endorsed by 2iQ Research (Capitol Trades).