How to Use MIT Election Lab election returns in Zapier
Returns matching election records from a selected MEDSL file, including candidate votes and available geographic detail. Use it to calculate historical margins or compare places after choosing the correct dataset.
Prompts to try with MIT Election Lab election returns in Zapier
Copy an example into Zapier, or ask in your own words.
Each month, use MIT Election Lab election returns to check the 2024 presidential candidate totals in Maricopa County, Arizona, and report any differences from the previous check.
Each month, use MIT Election Lab election returns to check Pennsylvania's 2024 U.S. House candidate totals by district and flag revised records.
Every Monday at 9am: use MIT Election Lab election returns to look this up and give me the result as a table.
Pull the latest numbers from MIT Election Lab election returns and tell me what changed since last week.
Check MIT Election Lab election returns and summarize what you find in three bullet points.
How to set up MIT Election Lab election returns in Zapier
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Zapier this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Add an MCP Client connection
In Zapier open Apps, click Add connection and search for MCP Client. Fill in the form:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Zapier never sees it, and you can remove it under Settings › Connected apps in the console.
- Run a Spiral tool in a Zap
Add an MCP Client step to a Zap and choose the Run Tool action with your Spiral connection. Pick a tool: discover finds the right model for a task, estimate_cost prices it and run runs it. For example, run with:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run MIT Election Lab election returns in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds MIT Election Lab election returns, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run MIT Election Lab election returns
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "dataverse-harvard-edu/elections/query_returns", "input": { "doi": "<doi>", "file_id": 1 } }'
Then paste one of the prompts above: Zapier finds MIT Election Lab election returns on Spiral, shows the price and runs it.
MIT Election Lab election returns providers and prices
Spiral runs MIT Election Lab election returns through Alexandria. Open a card for today's price, with every fee included.
$0.00873 per call.
Settings you can ask for
Ask Zapier for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Year | 1789 to 2100 | year | |
| Limit | 1 to 1000 | Maximum rows, default 200. | |
| Offset | a number from 0 | Byte offset to resume at: the previous answer's | |
| File ID | a number from 1 | File id from |
Every API field of Harvard Dataverse: MIT Election Data and Science Lab returns · Query returns is on its tool page: open its card above.
What can you do with MIT Election Lab election returns in Zapier?
Keep an election research watchlist current as MEDSL publishes datasets or revises historical releases. A scheduled agent can report changes in dataset listings and file inventories, then flag changes in selected vote totals for review.
County presidential swing analysis
Find the county presidential dataset, inspect its files, and compare Democratic and Republican margins in Maricopa County, Arizona, for 2016, 2020, and 2024.
Historical House election tables
Locate the U.S. House returns, check their documentation, and build a table of candidate vote totals and calculated margins for Pennsylvania's 2024 congressional races.
Local reporting background
Locate and inspect the relevant precinct release, then summarize 2024 presidential results for Wake County, North Carolina, as background for a local election story.
Voting mode comparison
Find Georgia's 2024 precinct data, inspect its documentation, and compare the presidential vote totals reported for separate voting modes without adding them to overall totals.
Published result verification
Find the county presidential returns and inspect the source files, then check a reported 2024 candidate margin in Dane County, Wisconsin, against the underlying vote records.
Election analysis teaching material
Locate the county presidential dataset, review its documentation, and create a worked example calculating candidate vote shares for Allegheny County, Pennsylvania, in 2020 and 2024.
More on MIT Election Lab election returns and Zapier
Overview
MIT Election Lab election returns in other agents
Questions about MIT Election Lab election returns in Zapier
Can Zapier use MIT Election Lab election returns?
Yes. Add Spiral to Zapier as an MCP server, and Zapier can find and run MIT Election Lab election returns like any built-in tool.
How much does MIT Election Lab election returns cost in Zapier?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Zapier plan is separate.
Do I need an Alexandria account to use MIT Election Lab election returns in Zapier?
No. Spiral runs MIT Election Lab election returns on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up MIT Election Lab election returns in Zapier?
About two minutes: add an MCP Client connection, then sign in to Spiral and approve, then run a Spiral tool in a Zap.
Does Zapier wait while MIT Election Lab election returns runs?
MIT Election Lab election returns runs in the background. Zapier starts the run, checks on it and gives you the json when it's ready.
How far back do the election results go?
Coverage depends on the dataset. MEDSL's county presidential returns span 2000 through 2024, while its U.S. House district returns span 1976 through 2024.
Is this a live election results source?
Use MEDSL's precinct releases for historical analysis. The 2024 precinct dataset took over 500 days after polls closed to become ready for release.
Where does MEDSL get the returns?
MEDSL starts with state election authorities and collects from county authorities when precinct data is unavailable statewide. It sometimes fills collection gaps using OpenElections.
Are all precinct vote counts public?
Some small jurisdictions in California, Kansas, Nevada, and New Mexico withhold counts for privacy. In the 2024 precinct data, an asterisk marks these suppressed counts.
Why can adding the vote records produce an inflated total?
Some states report both separate voting modes and TOTAL rows. MEDSL warns that combining those rows can double-count the same votes.
Start using MIT Election Lab election returns in Zapier
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Zapier:
set up https://spiral.ai/SKILL.md


