akashic / embed
Embed Akashic.
Drop any place’s political memory into your own page with a one-line iframe. Five widget kinds, predictable URLs, no API key.
The URL pattern
https://akashic.app/embed/{tier}/{id}/{viz}/
- tier — one of
county,state,cd,cbsa,dma. - id — the same identifier the canonical page uses (FIPS for counties, abbreviation for states, etc.).
- viz — the widget kind. See the catalog below.
Widget catalog
- sparkline — 38-cycle margin line, no axis labels. Default size:
320×80. - margin-bar — Latest two-party margin bar with year label. Default size:
480×80. - stat-card — Place name, latest margin, population, median income. Default size:
320×160. - mini-map — Single-colored square representing latest margin. Default size:
240×240. - elections-table — Full 1876–2024 table. Default size:
480×640.
Copy-paste example
<iframe
src="https://akashic.app/embed/county/17031/sparkline/"
width="320" height="80" frameborder="0"
loading="lazy" referrerpolicy="no-referrer"
></iframe>Tiers and id formats
/embed/county/17031/sparkline//embed/state/il/sparkline//embed/cd/1701/sparkline//embed/cbsa/16980/sparkline//embed/dma/602/sparkline/
oEmbed
Every canonical place page exposes an oEmbed discovery link in its <head>. WordPress, Substack, and Notion all consume it automatically — just paste the canonical URL into an embed block.
curl 'https://akashic.app/api/oembed?url=https://akashic.app/county/17031/'Attribution
Every embed renders a small “Powered by akashic.app” credit. The credit is part of the embed contract; please leave it in place.