RAW US Election Data (In JSON Format)

Ok, so I'll start out by saying that I'm not happy with the results of the Wisconsin elections. So, "52%"… you suck.

After checking the election map at http://news.yahoo.com/page/2010electionsdashboard this morning, I decided to try to find a source of of the raw election numbers by county.

Apparently this is super top secret data. But after a little playing with yahoo's map, I got it to spit out the URLs it's using as the data source. These are in JSON format, so don't expect to be able to open up the file and just read it. I might work on a small script to search the files.

US Senate: http://d.yimg.com/b/api/data/us/news/elections/2010/result/us_senate.json
US Governor: http://d.yimg.com/b/api/data/us/news/elections/2010/result/governor.json
US House: http://d.yimg.com/b/api/data/us/news/elections/2010/result/us_house.json

[Update] How to get county data:
This took a bit more work. Each state has its own data file with the url in the format:


Just replace [STATE_ABBR] with the abbreviation of the state you want data for.
For example, Wisconsin (WI) would be: http://www.washingtonpost.com/wp-srv/elections/2010/results/11/02/wi_complete.json

JSON is relatively trivial to convert into XML if you're more comfortable working with XML. Here's an example javascript that converts JSON to XML.

Comments (8)