Public OpenAPI 3.1 REST API & Streamable HTTP MCP Server · No auth required
Akashic API & MCP Developer Portal
Query verified 2000–2026 U.S. election returns, replacement-level Adjusted MAR scores, CVAP Reach decompositions, 6,775 modeled legislative districts, Political Twins, and Albers spatial projections over public CORS-enabled REST endpoints or our 16-tool MCP server (akashic-elections v1.7.0).
- Authentication
- Public noauth
- REST endpoints
- 9 OpenAPI 3.1 ops
- MCP tools
- 16 read-only tools
- Share denominator
- Valid candidate votes
Machine discovery manifests
POST https://akashic.app/mcp and all 16 noauth tools./llms.txt & /llms-full.txt →When-to-use agent guidance, parameter reference, and Accept: text/markdown negotiation./datasets →Interactive download & CSV/JSON preview hub for all 19 export tables./sandbox →Interactive spatial polygon & radius sandbox backed by POST /api/spatial/project.Public REST API endpoints
Inspect full OpenAPI 3.1 schema →| Endpoint | Operation ID | Purpose | Sample curl |
|---|---|---|---|
| GET /api/datasets/export | exportDataset | Export filtered Akashic dataset rows in JSON or CSV | curl -sS 'https://akashic.app/api/datasets/export?dataset=edge&office=house&state=TX&limit=25' |
| GET /api/profile/lookup | lookupPoliticalProfile | Resolve a ZIP code, city, county, or congressional district to its political profile | curl -sS 'https://akashic.app/api/profile/lookup?q=78701' |
| GET /api/search/jump | searchEntities | Autocomplete search across Akashic races, candidates, and places | curl -sS 'https://akashic.app/api/search/jump?q=Austin' |
| GET /api/compare/elections | compareElections | Compare two U.S. elections across states, counties, or districts | curl -sS 'https://akashic.app/api/compare/elections?yearA=2026&officeA=governor&yearB=2024&officeB=president&subGeoLevel=state' |
| GET /api/compare/place | comparePlaceHistory | Inspect 2000–2026 multi-cycle election history for a single geography | curl -sS 'https://akashic.app/api/compare/place?q=TX-09' |
| GET /api/live/status | getLiveCanvassStatus | Read live 2026 certification and uncalled-contest canvass health | curl -sS 'https://akashic.app/api/live/status' |
| POST /api/spatial/project | projectSpatialFootprint | Project a GeoJSON polygon, site radius, or FIPS/CD list onto 2020–2026 baselines | curl -sS -X POST 'https://akashic.app/api/spatial/project' -H 'Content-Type: application/json' -d '{"label":"Austin radius","center":{"lat":30.2672,"lon":-97.7431,"radiusKm":35}}' |
| GET /api/og | renderOgCard | Render a 1200x630 PNG OpenGraph summary card | curl -sS -I 'https://akashic.app/api/og?kind=hub&slug=developers' |
| GET /api/markdown | renderPageMarkdown | Fetch clean Markdown representation for an Akashic route | curl -sS -H 'Accept: text/markdown' 'https://akashic.app/edge' |
Structured JSON error responses
Invalid parameters and unknown /api/* routes return structured JSON error objects with HTTP status 400, 404, or 429, machine error codes, and direct links to /openapi.json and /developers.
Streamable HTTP MCP server (https://akashic.app/mcp)
View server-card.json →Connect any MCP client over Streamable HTTP JSON-RPC 2.0 using POST https://akashic.app/mcp with headers Content-Type: application/json and Accept: application/json, text/event-stream. Rate limit: 60 requests/minute per IP (noauth).
curl -sS -X POST 'https://akashic.app/mcp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'| Tool name | Title | Parameters |
|---|---|---|
| akashic_election_overview | Election Overview (2000–2026) | year, office, stage_filter, contest_filter, state, limit, image_format |
| akashic_race_results | Race & Special Election Results | query, year, office, include_specials, county_limit, image_format |
| akashic_precinct_breakdown | County & Precinct Breakdown | county_or_district, year, office, include_swing_2026, swing_office, limit, sort_by, image_format |
| akashic_compare_geography | Compare Geography (2000–2026 History) | geography, offices, include_specials, image_format |
| akashic_compare_elections | Compare Two Elections (Swing & Flips) | year_a, office_a, year_b, office_b, sub_geo_level, state, exclude_redistricted, unit_filter, limit, image_format |
| akashic_render_share_card | Generate Custom Election Share Image | card_type, format, theme, year, office, query, compare_year, compare_office, sub_geo_level, watchlist_tab, place_kind, twin_weights, reach_preset, headline_override, subtitle_override, create_public_link |
| akashic_canvass_ledger | Canvass & Certification Hurdle Ledger | year, office, state, mode |
| akashic_project_polygon | Project Custom Polygon or Site Radius (2020–2026) | label, lat, lon, radius_km, geojson, unit_ids |
| akashic_candidate_edge | 2026 Candidate +/− (House, Senate & Governor) | office, district, party, state, seat_filter, include_provisional, include_unscored, sort_by, sort_dir, limit, image_format |
| akashic_candidate_profile | Candidate Career Profile (2018–2026) | slug, query, state, party, cross_office_only, multi_cycle_only, rematches_only, sort_by, limit |
| akashic_reach | 2026 CVAP Reach & Mobilization | office, district, candidate_pool, party, state, preset, archetype, beat_did_not_vote_only, sort_by, sort_dir, limit, image_format |
| akashic_places_lookup | Metros, Media Markets, Cities, Cohorts & Nations | place_kind, query, state, sort_by, min_population, limit |
| akashic_political_twins | Political Twins Similarity Matching | place_kind, query, weights, limit, image_format |
| akashic_state_legislature | State Legislature Modeled Baselines (SLDU / SLDL) | state, chamber, district, sort_by, split_ticket_only, limit |
| akashic_state_context | State Executives & County Migration / Voter Registration | state, fips, include_executives, include_migration_reg, include_counties, sort_counties_by, limit |
| akashic_primary_geography | 2026 Primary Geography & Historical State-Office Atlas | mode, state, level, office, year, limit |