For U.S. state, county, & muncipal level data on election results you can find lots of information at most states' websites for the Secretary Of State. For example, here is Minnesota's.
To serve the research needs of social scientists, teachers, students, policy makers and journalists, the ANES produces high quality data from its own surveys on voting, public opinion, and political participation. ANES data enable researchers to better understand the theoretical and empirical foundations of national election outcomes.
Precinct-level results for as many U.S. elections as possible since 2000, and then linking these results to GIS boundary files of voting tabulation districts.
Participating countries and provinces include a common module of survey questions in their post-election studies. The resulting data are deposited along with voting, demographic, district and macro/electoral system variables. The studies are then merged into a single, free, public dataset for use in comparative study and cross-level analysis.
IDEA has collected and produced a number of information databases on different areas of democracy and elections worldwide. - The International Institute for Democracy and Electoral Assistance
The PARLINE database contains information on the structure and working methods of 270 parliamentary chambers in all of the 193 countries where a national legislature exists.