mocop
Browse · Docs · Guide · Analyze

The Candidate — Public Read API

API by The Candidate · rest

Public, read-only JSON API exposing the structured biographical content powering thecandidate.com. Machine-readers — dataset freshness: this document publishes the corpus-wide freshness stamp at the absolute document ROOT as x-dataset-version (identical to the nested info.x-dataset-version), so a root-level scanner can read it without traversing info. /openapi.json overrides BOTH with the live MAX across the office-holder tables at request time (fail-OPEN to the static stamp). The canonical stamp shape — MAJOR.YYYYMMDD — is documented at info.x-dataset-version-format. Sprint 22 ships the historical-president surface (46 rows); Sprint 23 Task 13 adds the senator surfaces across TWO namespaces — /api/current/senators (serving senators, mutable current_office_holders table) and /api/historical/senators (retired senators, immutable historical_office_holders table); Sprint 24 Task 11 adds the representative surfaces across the same two namespaces —…

Endpoint: https://thecandidate.com/

Verification: observed. Source: crawl.

Capabilities (25)

  • List one department's secretaries (sitting + prior)
  • Fetch one secretary by department + slug
  • List LLM-citability scores
  • Corpus-aggregate longitudinal citability trend
  • Fetch one profile's citability score
  • One profile's longitudinal citability trend
  • List currently-serving U.S. Representatives
  • Fetch one serving U.S. Representative by state + district + slug
  • List currently-serving U.S. Senators
  • Fetch one serving U.S. Senator by state + slug
  • List filed federal candidates
  • Fetch one federal candidate by slug
  • List every former U.S. President
  • Fetch one former U.S. President by slug
  • List retired U.S. Representatives
  • Fetch one retired U.S. Representative by state + district + slug
  • List retired U.S. Senators
  • Fetch one retired U.S. Senator by state + slug
  • List one court's Justices (sitting + prior)
  • Fetch one Justice by court + slug
  • List one state's governors (sitting + historical)
  • Fetch one governor by state + slug
  • List one state chamber's legislators (serving + historical)
  • Fetch one state legislator by state + chamber + district + slug
  • OpenAPI 3 specification (self-reference)
About · Contact · Privacy