{"apiVersion":"v1","docs":"https://readtheledger.org/for/tools","attribution":"Organized by The Ledger from public government releases. Figures are archives of official data, not live feeds. Cite The Ledger and the original publisher.","status":"production","notes":["Read-only JSON over the same source-cited datasets the site renders.","Dataset routes require Authorization: Bearer ldg_… (Professional plan) from your workspace Account tab.","This discovery index stays publicly readable. Soft anonymous rate limits apply when no key is presented.","Every response includes its publisher sources. Cite The Ledger and the original publisher."],"auth":{"header":"Authorization: Bearer ldg_…","alternateHeader":"X-Api-Key: ldg_…","createKeysAt":"/workspace?tab=account"},"endpoints":[{"method":"GET","path":"/api/v1/congress/historical","description":"Federal fiscal-year totals (revenues, outlays, deficit/surplus, debt held by the public) from archived CBO releases.","query":{"from":"fiscal year (optional)","to":"fiscal year (optional)"}},{"method":"GET","path":"/api/v1/floor/bills","description":"Featured watchlist bills: stage, latest action, sponsors count, and links back to Congress.gov.","query":{"congress":"congress number (optional)","limit":"max rows (optional)"}},{"method":"GET","path":"/api/v1/gavel/cases","description":"Supreme Court merits cases on the watched docket: term, status, citations.","query":{"term":"October Term, e.g. 2023 (optional)","status":"argued|decided|pending (optional)","limit":"max rows (optional)"}},{"method":"GET","path":"/api/v1/race/candidates","description":"Federal candidates for a cycle with FEC receipts and popular-vote results when available.","query":{"cycle":"election cycle, e.g. 2024 (defaults to latest)","office":"P|S|H (optional)","state":"two-letter state (optional)","limit":"max rows (optional)"}}]}