165 years of U.S. election data

Election data, delivered as an API

13 REST endpoints. Every county, every race, 1868–2024. Start free—100 requests/day, no credit card required. Built for content creators, newsrooms, and researchers.

terminal
$ curl -H "Authorization: Bearer ak_YOUR_KEY" \
  https://akashicedge.com/api/v1/elections/2024/president

{
  "data": [
    { "fips": "55025", "county": "Dane", "margin": 42.86, "winner": "Democratic" },
    { "fips": "55079", "county": "Milwaukee", "margin": 18.31, "winner": "Democratic" },
    { "fips": "55133", "county": "Waukesha", "margin": -22.14, "winner": "Republican" }
  ],
  "meta": { "queryTimeMs": 18, "rowCount": 72 }
}

Built for builders

Whether you're producing YouTube videos, running a newsroom, or publishing research—the Akashic Edge API gives you programmatic access to the most comprehensive U.S. election database ever assembled.

Content Creators

YouTubers, newsletter writers, and data viz creators.

  • Pull election timelines for video explainers and infographics
  • Embed interactive widgets directly in Substack and blog posts
  • Export JSON/CSV for data-driven visual storytelling
  • Query demographic correlations for compelling narratives

Newsrooms & Media

Editorial teams, fact-checkers, and broadcast producers.

  • Build real-time election dashboards with county-level data
  • Add 165 years of historical context to breaking news coverage
  • White-label embeds for branded editorial experiences
  • Bulk query swing analysis for election night data desks

Academics & Researchers

Political scientists, graduate students, and think tanks.

  • Access 2.3M election results via reproducible API queries
  • Run swing analysis and demographic regressions at scale
  • Query county similarity via pgvector embeddings
  • Export complete datasets for R, STATA, or Python analysis

What you get

13 REST Endpoints

Elections, counties, states, demographics, swing analysis, time series, similarity, clusters, and NL→SQL.

165 Years of Data

President (1868–2024), Senate (1908–2024), Governor (1865–2025), House (1976–2024), State Leg (1968–2023).

3,143 Counties

County-level results for every presidential election since 1868. 163K precincts with geometry for 2020 and 2024.

OpenAPI 3.1 Spec

Interactive Scalar docs. Generate typed client SDKs for Python, TypeScript, Go, or any language.

6 Embeddable Widgets

Margin bars, timelines, county cards, election tables, comparisons, and similar counties. Drop-in iframes.

Browse gallery

Sub-100ms Queries

Indexed PostgreSQL + materialized views. Response envelope includes query time, row count, and rate limit status.

Try it now

Fetch county-level results for the 2024 presidential election in Wisconsin.

Request
GET /api/v1/elections/2024/president?state=WI
Authorization: Bearer ak_YOUR_KEY
Response
{
  "data": [
    {
      "fips": "55025",
      "county": "Dane County",
      "state": "Wisconsin",
      "demVotes": 222784,
      "repVotes": 94108,
      "totalVotes": 325439,
      "margin": 39.51,
      "winner": "Democratic"
    },
    {
      "fips": "55079",
      "county": "Milwaukee County",
      "demVotes": 252012,
      "repVotes": 132459,
      "totalVotes": 393814,
      "margin": 30.36,
      "winner": "Democratic"
    },
    {
      "fips": "55133",
      "county": "Waukesha County",
      "demVotes": 108765,
      "repVotes": 159432,
      "totalVotes": 273091,
      "margin": -18.55,
      "winner": "Republican"
    }
  ],
  "meta": {
    "queryTimeMs": 18,
    "rowCount": 72,
    "apiVersion": "v1",
    "source": "elections"
  },
  "rateLimit": {
    "limit": 60,
    "remaining": 59,
    "reset": 1708102200
  }
}

13 endpoints, one key

All endpoints return a consistent envelope with data, meta, and rateLimit fields.

MethodPath
GET/v1/elections
GET/v1/elections/{year}/{office}
GET/v1/elections/timeseries
GET/v1/elections/swing
GET/v1/counties/{fips}
GET/v1/counties/{fips}/similar
GET/v1/counties/compare
GET/v1/states/{code}
GET/v1/demographics
GET/v1/clusters
GET/v1/compare
POST/v1/historian/query

Start free, scale when you're ready

Every plan includes the full dataset, all 13 endpoints, and interactive documentation. Paid plans save 25% with annual billing.

Free

Free
  • 5 requests / minute
  • 100 requests / day
  • 1 API key
  • Full 13-endpoint access
  • State-level Historian
  • No credit card required
Get free key

Prophet

$99/month
  • 60 requests / minute
  • 1,000 requests / day
  • 3 API keys
  • Clean embeds (no watermark)
  • Precinct-level data access
  • Unlimited Historian queries
Get started
Most Popular

Oracle

$333/month
  • 1,000 requests / minute
  • Unlimited daily requests
  • 10 API keys
  • White-label embeds
  • Block-level granularity
  • All export formats + PDF
Get started

Enterprise

$999/month
  • 10,000 requests / minute
  • Unlimited everything
  • 20 API keys
  • Custom export formats
  • Dedicated support
  • Custom integrations
Get started
Initiate ($11) and Seeker ($33) plans include platform access but not API keys.

Start building with election data today

Create your free account and generate an API key in under a minute. No credit card required to explore the documentation.

2.3M+
Election Results
165
Years of Data
3,143
Counties
13
API Endpoints