election-data-source-countypres

Fetch county-level U.S. presidential election returns from 2000-2024 via Harvard Dataverse.

226|35|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/DAAF-Contribution-Community/daaf --skill election-data-source-countypres
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: election-data-source-countypres
Source: https://github.com/DAAF-Contribution-Community/daaf/tree/main/.claude/skills/election-data-source-countypres
Command: npx skills add https://github.com/DAAF-Contribution-Community/daaf --skill election-data-source-countypres

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides access to detailed county-level presidential election returns from 2000-2024, enabling in-depth analysis of voting patterns, party trends, and geographic distributions.

Core Features & Use Cases

  • Data Access: Fetches county presidential election data from the MIT Election Data and Science Lab (MEDSL) via Harvard Dataverse.
  • Analysis Ready: Provides cleaned and structured data suitable for analyzing vote shares, party trends, turnout, and geographic voting patterns.
  • Join Key: Includes county_fips for easy integration with demographic, census, and education datasets.
  • Use Case: Analyze how party vote shares have shifted in swing states over the past two decades, or identify counties with the highest voter turnout.

Quick Start

Use the election-data-source-countypres skill to get the presidential election results for California in 2020.

Frequently Asked Questions about election-data-source-countypres

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze county-level presidential election results from the MIT Election Data and Science Lab?

To analyze county-level presidential election results, use this Skill to fetch cleaned voting returns from 2000-2024 sourced from the MIT Election Data and Science Lab. It structures the data for immediate analysis of vote shares and party trends.

Do I need a Harvard Dataverse API key to access MEDSL county presidential election data?

Yes, you need a Harvard Dataverse API key to retrieve MEDSL county presidential election data. This Skill requires the key to programmatically fetch and process the county-level voting returns for your analysis.

Can I join county presidential election returns with demographic datasets using county_fips?

You can join county presidential election returns with demographic datasets using the included `county_fips` key. This standard geographic identifier allows seamless integration with census and education data for deeper analysis.

What's the best way to identify counties with the highest voter turnout in swing states?

The best way to identify counties with high voter turnout in swing states is to query this Skill's county-level presidential election returns. It provides cleaned data suitable for calculating turnout and analyzing geographic voting patterns.

Does this data source include presidential election vote shares for all U.S. counties from 2000 to 2024?

This data source includes presidential election vote shares for U.S. counties spanning 2000 to 2024. It provides comprehensive coverage to analyze how party vote shares have shifted over the past two decades.

What limitations exist when analyzing geographic voting patterns with MEDSL county election data?

The primary limitation when analyzing geographic voting patterns with MEDSL county election data is the requirement of a valid Harvard Dataverse API key for data retrieval. Your analysis depth depends entirely on the fetched presidential returns.