[Integrations](https://spiral.ai/integrations) › [Zapier](https://spiral.ai/integrations/zapier) › [civicAPI election forecast](https://spiral.ai/integrations/zapier/civicapi-election-forecast)

# How to Use civicAPI election forecast in Zapier

Get civicAPI's race ratings for election expectations before comparing them with counted votes. Use it for Senate and governor context; the public forecast page currently reports no House forecast data.

|  |  |
| --- | --- |
| Model | civicAPI election forecast |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with civicAPI election forecast in Zapier

- Each morning, use civicAPI election forecast for Senate races. Report rating changes for Georgia, Michigan, and North Carolina since the previous check.
- Each morning, use civicAPI election forecast for governor races. Compare Arizona, Georgia, and Michigan with the previous check and report any changed ratings.
- Every Monday at 9am: use civicAPI election forecast to look this up and give me the result as a table.
- Pull the latest numbers from civicAPI election forecast and tell me what changed since last week.
- Check civicAPI election forecast and summarize what you find in three bullet points.

## How to set up civicAPI election forecast in Zapier

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

### Use the Spiral skill

1. **Send Zapier 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 Spiral's MCP server

1. **Add an MCP Client connection**: In Zapier open Apps, click Add connection and search for MCP Client. Fill in the form:

```text
https://api.spiral.ai/mcp
```

2. **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.

3. **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:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run civicAPI election forecast in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds civicAPI election forecast, prices it and runs it each time the step fires.

### 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 civicAPI election forecast**: 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": "civicapi-org/elections/forecast",
    "input": {
      "body": "<body>"
    }
  }'
```

Then paste one of the prompts above: Zapier finds civicAPI election forecast on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/zapier

## civicAPI election forecast tools and prices

- [civicAPI live election results and forecasts · Forecast](https://spiral.ai/tools/alexandria/civicapi-org/elections/forecast) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| body |  | — | Alias of chamber. Same values as office. |
| race |  | — | Alias of chamber. Same values as office. |
| seat |  | — | Alias of chamber. Same values as office. |
| type |  | — | Alias of chamber. Same values as office. |
| state |  | — | Only ratings for this state: a two-letter code or a name (Georgia). Totals and simulations stay national. location, province, and state_code are aliases. |
| branch |  | — | Alias of chamber. Same values as office. |

## What can you do with civicAPI election forecast in Zapier?

Produce a recurring civicAPI election digest that highlights changes in the selected data. A scheduled agent can compare successive race ratings, vote totals, or county returns and summarize what changed.

### Prepare a state election briefing

Build a Georgia briefing with Senate and governor ratings, reported vote totals, and county detail for selected contests. Give forecast expectations and counted votes separate sections.

### Build a newsroom results dashboard

Show nationwide seat tallies, individual race totals, and county drilldowns. Add available Senate and governor ratings as context beside the results.

### Maintain an editorial watchlist

Select Senate contests from civicAPI's ratings, then follow their vote totals and county returns. Use the watchlist to decide which races need a closer reported update.

### Teach forecasts and election returns

Create a classroom exercise comparing Senate race ratings with reported outcomes and county vote patterns. Ask students to distinguish an expectation, a lead, and a winner call.

### Review expectations against reported outcomes

Compare available Senate and governor ratings with the corresponding reported results. Examine county totals in races where the reported outcome differs from the rating's direction.

### Produce a recurring election desk digest

Summarize changes in race ratings, vote totals, and winner calls since the previous check. Add county detail for contests selected by the editor and credit civicAPI in the digest.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Zapier guides](https://spiral.ai/integrations/zapier)

## civicAPI election forecast in other agents

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

## More Zapier guides

- [World Happiness Report edition downloads](https://spiral.ai/integrations/zapier/world-happiness-report-edition-downloads)
- [civicAPI election race details](https://spiral.ai/integrations/zapier/civicapi-election-race-details)
- [World Happiness Report country rankings](https://spiral.ai/integrations/zapier/world-happiness-report-country-rankings)
- [civicAPI live election results](https://spiral.ai/integrations/zapier/civicapi-live-election-results)
- [World Happiness Report country history](https://spiral.ai/integrations/zapier/world-happiness-report-country-history)
- [legislation.gov.uk amendment records](https://spiral.ai/integrations/zapier/legislation-gov-uk-amendment-records)

## Questions about civicAPI election forecast in Zapier

**Can Zapier use civicAPI election forecast?**

Yes. Add Spiral to Zapier as an MCP server, and Zapier can find and run civicAPI election forecast like any built-in tool.

**How much does civicAPI election forecast 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 civicAPI election forecast in Zapier?**

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

**How long does it take to set up civicAPI election forecast 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 civicAPI election forecast runs?**

civicAPI election forecast runs in the background. Zapier starts the run, checks on it and gives you the json when it's ready.

**Where does civicAPI get election results?**

It aggregates results from secretaries of state and equivalent election bodies, including state and county boards. Smaller elections and certain countries may rely on local media reports.

**How quickly do election results update?**

civicAPI says its system updates every 5 to 10 seconds during active elections. That schedule describes results; it does not establish the forecast's refresh interval.

**Does forecast coverage match results coverage?**

The public forecast page describes Senate and governor ratings and currently shows no House forecast data. House results coverage does not establish that House forecasts are available.

**Can a newsroom or business publish civicAPI data?**

Yes. civicAPI permits commercial and noncommercial use, with attribution required for nonpersonal projects. Link to civicAPI or credit it by name.

