{"name":"VotePredictor API","version":"v1","updated":"2026-11-25","license":"Free to use with attribution to votepredictor.com.","endpoints":[{"path":"/api/v1/race/{race_id}","description":"One race: forecast, provenance, movement, candidates.","example":"/api/v1/race/2026_SEN_OH"},{"path":"/api/v1/race/{race_id}/history","description":"The number published each day, with the model that made it, beside the backcast.","example":"/api/v1/race/2026_SEN_IA/history"},{"path":"/api/v1/chamber/{senate|house}","description":"Control probability, every seat, biggest movers.","example":"/api/v1/chamber/senate"},{"path":"/api/v1/member/{bioguide_id}","description":"A member of Congress, their ideology, reported net worth and 2026 race.","example":"/api/v1/member/P000197"},{"path":"/api/v1/ratings?office=ALL","description":"Difficulty-adjusted accuracy for every forecaster, model, market and pollster.","example":"/api/v1/ratings?office=SEN"}],"race_ids":{"format":"{year}_{OFFICE}_{location}","count":506,"examples":["2026_SEN_OH","2026_GOV_TX","2026_HOUSE_CA-12"]},"conventions":{"probabilities":"p_dem_win is the Democratic win probability, clamped to [0.01, 0.99]. An election that has not happened is never certain.","source":"'polls' where polls inform the forecast, otherwise 'fundamentals' (state or district lean, incumbency, national environment). Statewide, a polled race is the poll model's forecast, shrunk slightly toward the fundamentals by inverse variance; for the House the district model blends the poll average in by inverse variance, so a polled district is still the House model's number.","p_basis":"What set the win probability: 'polls', 'fundamentals', 'cook_rating' or 'shop_ratings'. In an unpolled House district the rating shops' current ratings are blended into the probability while pred_margin stays the lean model's, so the two can point different ways.","no_forecast":"Some races return forecast: null with a reason: 'independent_contender' (no Democrat on the ballot; an independent challenges the Republican), 'nominee_changed' (the polls on file ask about a former nominee) or 'no_major_party_nominee'. The stored number is withheld here exactly as on the site. In chamber control these seats count for the party defending them.","movement":"A BACKCAST: change in win probability, in percentage points, over today's model rerun on the polls available at each past date. Not how the published number moved; that record is /api/v1/race/{race_id}/history.","ranked_choice":"In Alaska and in Maine's federal races the margin is the Democrat's against the Republican as each poll reports them; the model does not simulate ranked-choice transfers.","final_calls":"The calls the post-election scorecard grades freeze after 2026-11-02, the eve of Election Day: the last run that day is the final call, stamped frozen_at (UTC), and is never revised. The race pages may keep updating; each race's history endpoint gives its final_call.","as_of":"Each race carries as_of (the model run's date) and model_version, so a cached response can be dated and a model change told apart from a data change."},"final_calls":{"frozen_after":"2026-11-02","frozen_at":"2026-11-02T17:46:05+00:00"},"site":"https://votepredictor.com/","methodology":"https://votepredictor.com/methodology","track_record":"https://votepredictor.com/ratings"}