How to Use Clarity election results in Claude Code
Clarity election results returns contest totals with candidates, parties, votes, percentages, and precinct reporting. Use it for an election overview or a race shortlist before examining geographic detail.
Prompts to try with Clarity election results in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Clarity election results for Cumberland County, New Jersey's November 3, 2026 general election, and add a table of candidates, votes, and percentages to the results page.
Use Clarity election results for Burlington County, New Jersey's November 5, 2024 general election, and generate a CSV of the published school board contests.
Use Clarity election results to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Clarity election results and tell me what changed since last week.
Check Clarity election results and summarize what you find in three bullet points.
How to set up Clarity election results in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code 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 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 Clarity election results
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": "results-enr-clarityelections-com/elections/get_results", "input": { "url": "<url>" } }'
Then paste one of the prompts above: Claude Code finds Clarity election results on Spiral, shows the price and runs it.
Clarity election results providers and prices
Spiral runs Clarity election results through Alexandria. Open a card for today's price, with every fee included.
What can you do with Clarity election results in Claude Code?
Build a results explorer that connects published elections to contest totals and geographic vote tables. Coding agents can use Clarity data to populate election selectors, race summaries, and precinct or county comparisons.
Prepare a county election brief
Locate the published election, summarize contest totals, and add precinct comparisons for races that need more explanation.
Build a municipal results archive
Find available elections, collect municipal contest totals, and attach published precinct breakdowns so readers can examine local voting patterns.
Compare counties in a statewide race
Locate a state election, retrieve statewide contest totals, and compare the published county breakdown for the selected race.
Create a civic results explorer
Let readers choose a published election, browse contests, and open geographic vote tables for a race they want to understand.
Explain a close contest
Calculate the gap between the leading choices from contest totals, then show which precincts or counties contribute most to that gap.
Report changes between published updates
Compare successive observations of contest totals and geographic breakdowns to identify where reported votes changed.
More on Clarity election results and Claude Code
Overview
Clarity election results in other agents
Questions about Clarity election results in Claude Code
Can Claude Code use Clarity election results?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Clarity election results like any built-in tool.
How much does Clarity election results cost in Claude Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an Alexandria account to use Clarity election results in Claude Code?
No. Spiral runs Clarity election results on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Clarity election results in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Clarity election results runs?
Clarity election results runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
How far back do Clarity election archives go?
History depends on the jurisdiction. York County, Pennsylvania, began using Scytl for the 2020 general election; its guide directs readers to separate PDF reports for earlier elections.
How quickly do Clarity results change?
Results follow officials' publication process. South Carolina documents periodic election-night uploads from county voting systems, so changes arrive in published batches.
Are results official as soon as they appear?
Election-night publication does not establish certification. Burlington County, New Jersey, explicitly changes results from unofficial to official after its Board of Elections certifies the election.
Does every jurisdiction publish equally complete data?
No. The Parsons documentation for Clarity notes that values remain unpopulated when the election administrator does not provide them, so the available detail varies by jurisdiction.
How geographically detailed are the public results?
Contest breakdowns use precincts on county sites and counties on state sites. York County, Pennsylvania, identifies the precinct as the smallest unit recorded in its Scytl results.
Start using Clarity election results in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


