[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Ballotpedia election news](https://spiral.ai/integrations/muse-code/ballotpedia-election-news)

# How to Use Ballotpedia election news in Muse Code

Returns recent Ballotpedia News posts with links to their articles. Use it for published election reporting and analysis alongside structured race and ballot data.

|  |  |
| --- | --- |
| Model | Ballotpedia election news |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Ballotpedia election news in Muse Code

- Use Ballotpedia election news to populate this project's news list with recent ballot measure reporting and links to the original articles.
- Use Ballotpedia election news to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Ballotpedia election news and tell me what changed since last week.
- Check Ballotpedia election news and summarize what you find in three bullet points.
- Pull the newest data from Ballotpedia election news and give me the result as a table.

## How to set up Ballotpedia election news in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Ballotpedia election news**: One request; the result comes back by polling or a webhook.

```bash
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": "ballotpedia-org/districts/latest",
    "input": {
      "limit": 50
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Ballotpedia election news on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Ballotpedia election news tools and prices

- [Ballotpedia · Latest](https://spiral.ai/tools/alexandria/ballotpedia-org/districts/latest) (Alexandria): $0.001746 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 100 | 50 | Maximum items (1-100). |
| since |  | — | RFC 3339 date-time; return only items with publishedAt at or after it. |
| filter | 2026-elections, ballot-measures, breaking-news, on-the-ballot, federal, state, local, newsletters | — | One Ballotpedia News section (WordPress category). Omit for every section with the per-section cap. "2026-elections": 2026 election coverage; "ballot-measures": ballot measure news; "breaking-news"; "on-the-ballot": the On the Ballot series; "federal", "state", "local": government and politics by level; "newsletters": the Daily Brew and other newsletters. A filtered call has no per-section cap. |
| publishedSince |  | — | Alias of since. When both are given the later instant applies. |

## What can you do with Ballotpedia election news in Muse Code?

Build a civic lookup that connects public addresses to Ballotpedia districts, ballots, candidates, and serving officials. Use the returned geography and election dates to keep each screen tied to a specific place and contest.

### Newsroom election assignment brief

Use city hall as a geographic reference for local contests, add statewide races, and prepare candidate and measure research alongside recent Ballotpedia reporting.

### Municipal civic information kiosk

Build a civic reference centered on a public facility's address, showing districts, serving officials, a selected election ballot, and links to recent election reporting.

### State election briefing

Prepare a briefing on statewide contests with candidate background, explanations of relevant ballot measures, and links to Ballotpedia's published analysis.

### Government transition watch

Compare statewide election candidates with officials currently serving a fixed public location. Use candidate background and recent reporting to explain changes during the transition.

### Local ballot measure explainer

Identify proposals on a location's dated ballot, connect each to its district, and explain the measure using its details and relevant Ballotpedia News coverage.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Ballotpedia election news in other agents

- [Amp](https://spiral.ai/integrations/amp/ballotpedia-election-news)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ballotpedia-election-news)
- [Claude](https://spiral.ai/integrations/claude-desktop/ballotpedia-election-news)
- [Claude Code](https://spiral.ai/integrations/claude-code/ballotpedia-election-news)
- [Cline](https://spiral.ai/integrations/cline/ballotpedia-election-news)
- [Codex](https://spiral.ai/integrations/codex/ballotpedia-election-news)
- [Cursor](https://spiral.ai/integrations/cursor/ballotpedia-election-news)
- [Devin](https://spiral.ai/integrations/devin/ballotpedia-election-news)
- [dots](https://spiral.ai/integrations/dots/ballotpedia-election-news)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ballotpedia-election-news)
- [Gemini](https://spiral.ai/integrations/gemini/ballotpedia-election-news)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ballotpedia-election-news)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ballotpedia-election-news)
- [goose](https://spiral.ai/integrations/goose/ballotpedia-election-news)
- [Grok](https://spiral.ai/integrations/grok/ballotpedia-election-news)
- [Grok Build](https://spiral.ai/integrations/grok-build/ballotpedia-election-news)
- [Hermes](https://spiral.ai/integrations/hermes/ballotpedia-election-news)
- [Instinct](https://spiral.ai/integrations/instinct/ballotpedia-election-news)
- [Manus](https://spiral.ai/integrations/manus/ballotpedia-election-news)
- [Muse](https://spiral.ai/integrations/muse/ballotpedia-election-news)
- [n8n](https://spiral.ai/integrations/n8n/ballotpedia-election-news)
- [Notion](https://spiral.ai/integrations/notion/ballotpedia-election-news)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ballotpedia-election-news)
- [opencode](https://spiral.ai/integrations/opencode/ballotpedia-election-news)
- [Perplexity](https://spiral.ai/integrations/perplexity/ballotpedia-election-news)
- [Raycast](https://spiral.ai/integrations/raycast/ballotpedia-election-news)
- [VS Code](https://spiral.ai/integrations/vscode/ballotpedia-election-news)
- [Windsurf](https://spiral.ai/integrations/windsurf/ballotpedia-election-news)
- [Zapier](https://spiral.ai/integrations/zapier/ballotpedia-election-news)

## More Muse Code guides

- [Ballotpedia current representatives](https://spiral.ai/integrations/muse-code/ballotpedia-current-representatives)
- [Ballotpedia political districts](https://spiral.ai/integrations/muse-code/ballotpedia-political-districts)
- [Ballotpedia candidate profile](https://spiral.ai/integrations/muse-code/ballotpedia-candidate-profile)
- [Ballotpedia sample ballot](https://spiral.ai/integrations/muse-code/ballotpedia-sample-ballot)
- [Ballotpedia ballot measure details](https://spiral.ai/integrations/muse-code/ballotpedia-ballot-measure-details)
- [Ballotpedia statewide races](https://spiral.ai/integrations/muse-code/ballotpedia-statewide-races)

## Questions about Ballotpedia election news in Muse Code

**Can Muse Code use Ballotpedia election news?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Ballotpedia election news like any built-in tool.

**How much does Ballotpedia election news cost in Muse Code?**

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use Ballotpedia election news in Muse Code?**

No. Spiral runs Ballotpedia election news on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Ballotpedia election news in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Ballotpedia election news runs?**

Ballotpedia election news runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Does Ballotpedia cover every local election?**

Local coverage is not universal. Ballotpedia identifies the top 100 cities by population as a core coverage area and expands coverage beyond those cities.

**How soon do official candidate lists appear?**

For federal and statewide races, Ballotpedia says it updates candidate lists within a week after a state publishes its official list. That timing starts at publication, which can occur after the filing deadline.

**Why can election districts differ from current representation?**

Ballotpedia tracks boundary effective dates around office terms, including swearing-in dates. It documents a 2022 California example where a special election and a regular election on the same day used different congressional boundaries.

**Can a race be absent from Ballotpedia's election data?**

Yes. The geographic election documentation explicitly says that races with no official candidates are omitted, so an absent race does not establish that the office has no election.

**Can Ballotpedia data appear in a public application?**

Its data terms allow use in internal or external products with precautions against third-party bulk downloads. They do not grant permission to redistribute the full datasets.

