Price
- Price
- Contact us for price
- For
- Local TV, radio and newsrooms
Tell us your newsroom and how you plan to use the feed. Use of a key is under the results feed terms, including the credit line.
The race and ballot measure counts from each state's official election office, normalized into one format, as JSON or CSV with a key. Built for local TV, radio and small newsrooms on election night and through certification.
Same data for every buyer. The free results board on Seat Check shows the same counts to every reader.
Tell us your newsroom and how you plan to use the feed. Use of a key is under the results feed terms, including the credit line.
https://theopencount.com/api/results-feed, JSON by default, ?format=csv for one row per candidate or measure choice.?state=CA,GA and ?type=senate, governor, house or measure.Authorization: Bearer <key> (preferred: a key in the address can end up in logs and browser history), or add ?key=<key> only where a header cannot be set. No key gets HTTP 401.If-None-Match is a 304.Counts come from the states whose election offices publish structured results: California, Colorado, Georgia, Idaho, Iowa, South Carolina, Utah, Vermont, Virginia and Washington. A state appears once its official feed posts results after its polls close. Every other state is listed in meta.sources with a link to its official results page.
Left out because the state bars commercial use of its results: Arizona, Florida, Massachusetts and North Carolina. The feed names each one and the rule in meta.excluded; the free Seat Check board still shows them.
Every answer has meta, races and measures.
| Field | What it is |
|---|---|
meta.asOf | When the feeds were last read (UTC, ISO 8601); null before election night |
meta.attribution | The credit line to show with the figures |
meta.sources[] | Each state's official results page, whether its feed is read (live) and its last poll closing time (pollsCloseUtc) |
meta.excluded[] | States left out and the rule that bars commercial use |
races[].key | Stable race id: S:GA (Senate), G:CA (governor), H:CA-12 (House district) |
races[].type, state, seat, title | senate, governor or house; two-letter state; seat id; the contest name as the state prints it |
races[].candidates[] | name, party (D, R, I, L, G or O), votes, pct of the votes counted, sorted by votes |
races[].totalVotes | Sum of the candidates' votes |
races[].reporting, reportingPct | The state's own reporting text and the percent in it, when given |
races[].status | Empty while counting, complete when the state reports every unit in, certified when the state says so |
races[].updatedAt, fetchedAt, source | The state's own update time, when we read it, and the official address read |
measures[] | key, state, name, title, yes, no, yesPct, noPct, with the same status, reporting and time fields |
CSV columns: key, kind, state, seat, title, status, reporting_pct, updated_utc, choice, party, votes, pct, total_votes, source. The last line is the credit line.
The shape of one answer. Before election night races and measures are empty; the race below shows the type of each value, not real counts.
curl -H "Authorization: Bearer $KEY" "https://theopencount.com/api/results-feed?state=CA"
{
"meta": {
"feed": "The Open Count results feed", "version": 1,
"asOf": "<ISO time>", "generatedAt": "<ISO time>",
"attribution": "Source: state and county election offices via The Open Count",
"excluded": [{ "state": "AZ", "reason": "Arizona A.R.S. 39-121.03 ..." }],
"sources": [{ "state": "CA", "name": "California Secretary of State",
"url": "<official results page>", "live": true,
"pollsCloseUtc": "<ISO time>" }]
},
"races": [{
"key": "G:CA", "type": "governor", "state": "CA", "seat": "CA",
"title": "<contest name as the state prints it>", "status": "",
"reporting": "<state's reporting text>", "reportingPct": <number>,
"totalVotes": <integer>, "updatedAt": "<ISO time>", "fetchedAt": "<ISO time>",
"source": "https://api.sos.ca.gov/returns/governor",
"candidates": [{ "name": "<name>", "party": "<D|R|I|L|G|O>",
"votes": <integer>, "pct": <number> }]
}],
"measures": []
}