Congress trading statistics API
Totals of congressional trading: trades, buys, sells, members, issuers and recent activity.
GET /v1/uscongresstrades/stats1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/uscongresstrades/stats",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "trades": 36349, "buys": 18538, "sells": 17673, "exchanges": 121, "politicians": 209, "issuers": 3069, "trades_last_30_days": 88, "disclosed_last_7_days": 278}Response fields
200 with a CongressStats, in US Congress trades’s own JSON.
| Field | Type | Description |
|---|---|---|
trades | integer | |
buys | integer | |
sells | integer | |
exchanges | integer | |
politicians | integer | |
issuers | integer | |
trades_last_30_days | integer | |
disclosed_last_7_days | integer |
Status codes
| Status | Meaning |
|---|---|
200 | The totals. |
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 often does it change?
Whenever new disclosures are published.
US Congress trades is a trademark of 2iQ Research (Capitol Trades). We are not affiliated with or endorsed by 2iQ Research (Capitol Trades).