Nonprofit and nonpartisan, Ballotpedia is an online political encyclopedia that covers American federal, state, and local politics, elections, and public policy.
"This archive contains data on election results, voting behavior, and electoral politics, with particular focus on the United States. The core data for the archive are state, county and district level election returns for all recent state and federal elections in the United States."