How to Use Citizens Count election candidates and results in opencode
Fetch candidates and available results for a New Hampshire election, including party, vote share, and outcome where published. Use it to examine one office’s primary or general election before exploring candidate profiles.
Prompts to try with Citizens Count election candidates and results in opencode
Copy an example into opencode, or ask in your own words.
Use Citizens Count election candidates and results for the 2026 New Hampshire governor general election. Add a results table to my project using the published parties, vote shares, and outcomes.
Use Citizens Count election candidates and results to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Citizens Count election candidates and results and tell me what changed since last week.
Check Citizens Count election candidates and results and summarize what you find in three bullet points.
Pull the newest data from Citizens Count election candidates and results and give me the result as a table.
How to set up Citizens Count election candidates and results in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Citizens Count election candidates and 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": "citizenscount-org/elections/get_election", "input": { "page": 0 } }'
Then paste one of the prompts above: opencode finds Citizens Count election candidates and results on Spiral, shows the price and runs it.
Citizens Count election candidates and results providers and prices
Spiral runs Citizens Count election candidates and results through Alexandria. Open a card for today's price, with every fee included.
$0.00873 per call.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | 0 to 100 | 0-based page of 50 candidates for multi-district elections; see pages. | |
| Year | 2010 to 2100 | Election year with office. Defaults to 2026. | |
| Stage | general or primary | general (default) or primary, with office. | |
| Office | nh-governor, us-senate, us-house, nh-executive-council, nh-senate, or nh-house | Office, used when election is omitted. |
Every API field of Citizens Count New Hampshire candidates, elections and officials · Get election is on its tool page: open its card above.
What can you do with Citizens Count election candidates and results in opencode?
Build a New Hampshire civic research view that connects towns, districts, election contests, and candidate profiles. Your coding agent can organize the returned records in your project and preserve Citizens Count's published issue labels.
Prepare a personal town voter guide
Start with the election directory and Hanover's town information, identify the relevant districts and races, then resolve candidate names and read their profiles. Assemble a private reading guide organized by office.
Study how representation connects to elections
Use Concord Ward 1 for a personal civics exercise. Find its representatives and districts, locate their election contests, resolve the candidates' profiles, and compare their published backgrounds and positions.
Understand an election transition
Find the races relevant to Manchester Ward 5 and compare published outcomes with the officials still listed for its districts. Resolve the winners' profiles and prepare private notes that distinguish winning an election from currently holding office.
Prepare questions for a candidate forum
Identify Hanover's races and districts, find the candidates, and resolve their profiles. Use the published issue positions to draft questions that ask each candidate to explain the same policy choices.
Compare candidates on a specific issue
Retrieve a New Hampshire governor contest, find each candidate's profile, and compare published positions on school funding. Keep survey responses, researched statements, and No Response labels distinct.
More on Citizens Count election candidates and results and opencode
Overview
Citizens Count election candidates and results in other agents
Questions about Citizens Count election candidates and results in opencode
Can opencode use Citizens Count election candidates and results?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Citizens Count election candidates and results like any built-in tool.
How much does Citizens Count election candidates and results cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Citizens Count election candidates and results in opencode?
No. Spiral runs Citizens Count election candidates and 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 Citizens Count election candidates and results in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Citizens Count election candidates and results runs?
Citizens Count election candidates and results runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Which elections does Citizens Count cover?
The provider documents New Hampshire races for governor, U.S. Senate, U.S. House, Executive Council, state Senate, and state House. It includes primary and general election results for those offices.
Can I look up a whole city, or do I need a ward?
Larger New Hampshire municipalities are divided into voting wards, so a ward can be needed to identify the relevant representation. Citizens Count's directory covers a state with 221 towns and 13 cities.
Where do candidate issue positions come from?
Candidate surveys are the primary source. When candidates do not respond, Citizens Count staff research published positions in sources such as newspapers and Facebook posts.
Does every candidate complete the survey?
No. Citizens Count reports that roughly two-thirds of state Senate and Executive Council candidates responded in 2022, along with over half of state representative candidates.
Can election results change after they appear?
Yes. Citizens Count says it uses Secretary of State results and updates races as recounts are completed.
Start using Citizens Count election candidates and results in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


