AP Elections API

AP Elections API MCP Connector for Claude

A+

Access real-time election results — audit races, candidates, and votes via AI.

4 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Empower your AI agent to orchestrate your entire political research and election auditing workflow with the AP Elections API, the gold standard for real-time election data. By connecting the Associated Press API to your agent, you transform complex results querying into a natural conversation. Your agent can instantly retrieve race outcomes, audit candidate performance, and query vote totals without you ever touching a news terminal. Whether you are conducting political analysis or monitoring local legislative shifts, your agent acts as a real-time political consultant, ensuring your data is always authoritative and up-to-the-minute.

What you can do

  • Race Auditing — Retrieve high-resolution results for specific election dates and races, including office names and geographic distribution.
  • Candidate Oversight — Audit individual candidate performance to maintain a clear view of party distribution and vote share.
  • Electoral Discovery — Query election results by state to understand regional political shifts and scale instantly.
  • Data Intelligence — Retrieve vote counts and candidate metadata to assist in deep-dive electoral classification.
  • Operational Monitoring — Check API status to ensure your political research workflow is always operational.

How it works

  1. Subscribe to this server
  2. Enter your AP Elections API Key
  3. Start managing your political intelligence through Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Political Analysts — monitor election results and retrieve official metadata straight from your workflow.
  • Journalists & Newsrooms — verify candidate performance and audit vote totals without manual searching.
  • Policy Researchers — perform rapid audits of legislative races and identify relevant electoral markers through natural language.
  • Operations Leads — automate election data querying to orchestrate cross-functional research teams smoothly.
election-resultspolitical-researchreal-time-datavoting-datacandidate-trackingdata-journalism

4 tools expose this connector's capabilities to your AI agent.

check_api_status

Check if the AP Elections API is operational

get_race_details

Get detailed results for a specific race ID

get_election_results

Get election results for a specific date (YYYY-MM-DD)

list_election_candidates

List all candidates participating in an election date

See how to talk to your AI agent using AP Elections API.

Get election results for '2024-11-05' in 'California' using AP Elections.

I've retrieved the results for the November 5th election in California! Multiple races are identified, including Presidential and Congressional. Leading candidates include [Name] with 55% of the vote. Would you like the detailed breakdown by race ID?

Who are the candidates for the presidential race on '2024-11-05'?

I've scanned the candidate list for the 2024 presidential race. It includes candidates from the Democratic, Republican, and Libertarian parties. I can provide the vote count and delegate progress for each candidate if results are available.

Show results for race ID '12345' on election date '2024-03-05'.

I've retrieved the details for race 12345! It was a Congressional Primary. The winner was identified as [Name] with 12,500 votes. I can assist you with more candidate metadata for this specific race if you'd like.

Log in to your [**AP Developer portal**](https://developer.ap.org/), register for the Elections API, and you will find your API Key in your dashboard. Copy and paste it below.

Related Connectors