The LedgerPublic Record
BooksThe BooksFloorThe FloorGavelThe GavelDeskThe DeskRaceThe Race
The LedgerPublic Record

Five shelves of federal record. Pick a shelf, then dig in.

Archives refreshed Sep 23, 2026

The Books

  • Overview
  • Rankings
  • Map
  • Historical
  • Awards
  • Composition

The Floor

  • Overview
  • Watchlist
  • Pipeline
  • Votes
  • Members

The Gavel

  • Overview
  • Docket
  • Opinions
  • Justices

The Desk

  • Overview
  • Presidencies
  • Actions

The Race

  • Overview
  • Map
  • Presidency
  • Senate
  • House

Guides

  • Overview
  • Start here
  • Students
  • Reporters
  • Tools

Reference

  • Home
  • Definitions
  • Methodology
  • Data integrity
  • Status
  • Data cache
  • Data dictionary
  • Pricing
  • Usage
  • Privacy
  • Contact
  • For AI agents

Free and open. Accounts optional. Privacy covers anonymous visit data only. Usage covers how to cite and reuse the archives. Contact uses a private form.

  1. Home
  2. ›Guides
  3. ›Tools

Guides · Tools

For tools

Builders, notebooks, and AI agents are welcome to reuse the published archives. The Ledger publishes static product JSON for downloads; live election tallies belong at the upstream publisher, not as a redistribution API here. Start with machine catalogs, not HTML scraping, and keep request rates modest.

Product files are free to reuse with attribution to The Ledger and the original publisher. The site software itself is not offered as a public contribution project; use contact for human questions.

Start hereStudentsReportersToolsAll guides

Preferred path

  1. Step 1

    Read llms.txt

    Short machine guide to shelves, preferred files, and citation expectations.

  2. Step 2

    Fetch the manifest

    downloads/manifest.json lists every cached file with href, size, date, and publisher origins.

  3. Step 3

    Prefer product JSON

    Use cleaned product files the site renders. Fall back to origin URLs when you need the upstream release.

Machine entry points

  • llms.txt

    Agent-oriented site guide with product JSON highlights.

  • Downloads manifest

    Catalog of product JSON, source packs, PDFs, and portraits.

  • Data cache UI

    Human search over the same catalog, with origin links.

  • Data dictionary

    Human field guide to the main product archives.

  • Sitemap

    Discoverable HTML routes for crawlers and indexes.

  • Robots

    Crawl policy for the public site.

Public HTTP surfaces

PathPurposeNotes
/llms.txtMachine site guide (text).Static. Prefer this before scraping HTML.
/downloads/manifest.jsonCatalog of every cached download.Includes href, bytes, updatedAt, and publisher origins.
/api/downloads/raceServes data/race.json as a download.Large product archive; avoid duplicating under /public.
/api/searchSitewide search (query in, ranked hits out).GET ?q=&limit=&bucket=. Index stays server-side; use for interactive clients.
/api/search-indexRaw entity index JSON for tools and AI.Full MiniSearch documents; large payload. Prefer /api/search for UI.
/api/v1Read API discovery index (JSON).Lists versioned query endpoints. Start here; see Read API below.

Read API (v1)

A thin, versioned, read-only JSON layer over the same source-cited datasets the site renders. Start at /api/v1 for a discovery index. Responses share one envelope: apiVersion, endpoint, sources (publisher name + URL), attribution, count, and data. CORS is open so browser clients can call it directly.

PathPurposeNotes
/api/v1/congress/historicalFiscal-year totals (revenues, outlays, deficit, debt).Optional ?from= &to= fiscal-year filter. Source: CBO.
/api/v1/floor/billsFeatured watchlist bills with stage and latest action.Optional ?congress= &limit=. Source: Congress.gov.
/api/v1/gavel/casesWatched Supreme Court merits cases.Optional ?term= &status= &limit=. Source: SCOTUS.
/api/v1/race/candidatesFederal candidates with FEC receipts and results.?cycle= (defaults latest) &office=P|S|H &state= &limit=. Source: FEC.

Endpoints require a Professional-plan API key from your workspace Account tab: send Authorization: Bearer ldg_…. Soft anonymous discovery on /api/v1 stays open; dataset routes return 401 without a key. Responses include X-RateLimit-* headers. This layer is for structured queries over the archives, not live results. For bulk data, prefer the downloads manifest.

Live tallies (not redistributed)

The Race live map may show unofficial tallies from civicAPI for browsing on this site. That overlay is not a public redistribution API. If you need live results in your own tools, call civicAPI (or state election authorities) directly, attribute them correctly, and label outputs as unofficial.

Historical election finance and popular-vote shelves live in product JSON under the Race section of the data cache.

Etiquette

  • Do not invent missing series, districts, or vote totals. If the JSON omits a year, say so.
  • Cite The Ledger and the origin publisher listed in the manifest.
  • Prefer https://readtheledger.org/downloads/manifest.json over crawling every HTML page for data.
  • Do not treat site UI routes as a live-results feed. Use civicAPI for programmatic tallies.
  • Permanent redirects exist for old hubs: /fiscal → /books, /issues → /floor.

Human companions

  • Refresh status

    When automated archive jobs last wrote files.

  • Data integrity

    Whether this build’s checks still pass.

  • Methodology

    Semantic rules behind the JSON fields.

  • Usage guidelines

    Archive reuse, attribution, and polite automated access.

No SLA is implied. Archives can lag publishers. We do not offer a public live-results API; use civicAPI (or secretaries of state) for election-night tallies.