API v1 & MCP
One-page cheatsheet. Full machine-readable capability list: GET /api/v1/status (no token).
Auth
Create a free account, then mint a token at /settings/api and send it as Authorization: Bearer ct_…. Every JSON response carries as_of and a source_chain provenance block.
Bulk exports — REST, JSON & CSV twins
Same path, .csv suffix downloads a file instead of the JSON envelope. Pagination rides limit / offset; filters mirror the site’s browses.
| Endpoint | What | Filters |
|---|---|---|
/api/v1/bills/api/v1/bills.csv | 99k+ bills, Congress.gov mirror | congress · chamber · type · party · status · committee · q (title) · introduced_after · introduced_before |
/api/v1/votes/api/v1/votes.csv | 113k+ roll calls (VoteView/ICPSR ledger) | congress · chamber · q (question/description) · date_after · date_before |
/api/v1/castvotes/api/v1/castvotes.csv | 26M individual casts — ONE roll call per request (bounded by design) | congress + chamber + rollnumber REQUIRED · state · party · bioguide · cast |
/api/v1/trades/api/v1/trades.csv | House Clerk financial-disclosure feed (the same rows as the site) | txn_after · txn_before · filed_after · filed_before · ticker · bioguide · limit (≤1000; page via date windows) |
/api/v1/members/api/v1/members.csv | officials roster (current) | chamber · state · party · q (name) |
Named endpoints
/api/v1/proximity/{bioguide}— named-company vote↔trade conflicts + committee-jurisdiction window (the differentiator join)./api/v1/trajectory/{bioguide}— anchored multi-year ±1σ band trajectory (estimates, not exact holdings — anchor diagnostics included)./api/v1/scorecards·/api/v1/scorecards/{slug}— public boards (top 50, tie-aware).
MCP server
Streamable-HTTP MCP at /api/mcp — same token; tools mirror the REST surface (including dataset_query for the exports above). Client config:
{
"mcpServers": {
"high-office": {
"url": "https://www.highoffice.ai/api/mcp",
"headers": {
"Authorization": "Bearer ct_..."
}
}
}
}Plans & limits
Derived live from the server constants — this table is the same data the 429 hints and /settings/api render.
| Plan | API rate | Rows per export file |
|---|---|---|
| free | 15/day | 1,000 — every free export carries a provenance watermark row |
| watch | 100/day | 25,000 |
| research | 2000/hr + 600/min | 25,000 |
curl, immediately useful
curl -H "Authorization: Bearer ct_..." \ "https://www.highoffice.ai/api/v1/members?chamber=senate&party=D&limit=10" curl -H "Authorization: Bearer ct_..." -o casts.csv \ "https://www.highoffice.ai/api/v1/castvotes.csv?congress=119&chamber=house&rollnumber=12"
Paid surfaces draw only on public-domain channels (Congress.gov, VoteView/ICPSR, House Clerk bulk, FEC, court dockets) — see /provenance; freshness on /status. Problems? The feedback button, bottom-right — no account needed.