Congress member trading profile API
One member of Congress by name or bioguide id: party, state, committees, tenure and trading stats.
GET /v1/uscongresstrades/politicians/{handle}1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/uscongresstrades/politicians/pelosi",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": { "_politicianId": "P000197", "_stateId": "ca", "party": "democrat", "firstName": "Nancy", "lastName": "Pelosi", "fullName": "Pelosi, Nancy Patricia", "chamber": "house", "district": "11", "committees": [], "stats": { "countTrades": 51, "countIssuers": 24, "countFilings": 13, "dateFirstTraded": "2024-02-12", "dateLastTraded": "2026-10-07", "volume": 106882515 }, "partyOther": null, "nickname": null, "middleName": "Patricia", "dob": "1940-03-26", "gender": "female", "socialFacebook": "NancyPelosi", "socialTwitter": "@SpeakerPelosi", "socialYoutube": "nancypelosi", "website": "https://pelosi.house.gov", "*q*": 1 }}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Name or bioguide id. Example: pelosi. |
Response fields
200 with a CongressPoliticianOne, in US Congress trades’s own JSON.
| Field | Type | Description |
|---|---|---|
data | CongressPolitician |
Status codes
| Status | Meaning |
|---|---|
200 | The member. |
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
Can I pass a name?
Yes, or a bioguide id such as P000197.
US Congress trades is a trademark of 2iQ Research (Capitol Trades). We are not affiliated with or endorsed by 2iQ Research (Capitol Trades).