Congress trades by state API
Trades disclosed by the members from one US state.
GET /v1/uscongresstrades/states/{state}/trades1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/uscongresstrades/states/CA/trades",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "_txId": 20003804224, "_politicianId": "P000608", "_issuerId": 2334235, "pubDate": "2026-11-16T14:05:34Z", "filingDate": "2026-11-13", "txDate": "2026-10-07", "txType": "buy", "owner": "spouse", "chamber": "house", "price": null, "size": null, "value": 8000, "reportingGap": 37, "filingURL": "https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2026/20035786.pdf", "comment": "Description: Pooled Investment Fund", "asset": { "assetType": "other-investment-fund", "assetTicker": null, "instrument": null }, "issuer": { "issuerName": "ALLOCATE ALPHA FUND II LP", "issuerTicker": null, "sector": null, "_stateId": null, "c2iq": null, "country": null }, "politician": { "firstName": "Scott", "lastName": "Peters", "party": "democrat", "chamber": "house", "_stateId": "ca", "dob": "1958-06-17", "gender": "male", "nickname": null }, "_assetId": 100018269, "txTypeExtended": null, "hasCapitalGains": false, "sizeRangeHigh": null, "sizeRangeLow": null, "filingId": 204853399, "…": "2 more fields" }, { "_txId": 20003804225, "_politicianId": "P000608", "_issuerId": 2333920, "pubDate": "2026-11-16T14:05:34Z", "filingDate": "2026-11-13", "txDate": "2026-10-01", "txType": "buy", "owner": "spouse", "chamber": "house", "price": null, "size": null, "value": 8000, "reportingGap": 43, "filingURL": "https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2026/20035786.pdf", "comment": "Description: Pooled Investment Fund", "asset": { "assetType": "other-investment-fund", "assetTicker": null, "instrument": null }, "issuer": { "issuerName": "ALLOCATE PREMIER ACCESS FUND LP", "issuerTicker": null, "sector": null, "_stateId": null, "c2iq": null, "country": null }, "politician": { "firstName": "Scott", "lastName": "Peters", "party": "democrat", "chamber": "house", "_stateId": "ca", "dob": "1958-06-17", "gender": "male", "nickname": null }, "_assetId": 100017845, "txTypeExtended": null, "hasCapitalGains": false, "sizeRangeHigh": null, "sizeRangeLow": null, "filingId": 204853399, "…": "2 more fields" }, "… 18 more" ], "paging": { "offset": 0, "limit": 20, "total": 15606, "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
statepath · required | string | Two-letter state code. Example: CA. |
limitquery | integer | Rows per page, 1 to 100. Defaults to 20. |
offsetquery | integer | null | Rows to skip, for paging. Defaults to 0. |
Response fields
200 with a CongressTrades, in US Congress trades’s own JSON.
| Field | Type | Description |
|---|---|---|
data | CongressTrade[] | |
paging | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of trades. |
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
Which codes work?
Two-letter state and territory codes.
US Congress trades is a trademark of 2iQ Research (Capitol Trades). We are not affiliated with or endorsed by 2iQ Research (Capitol Trades).