Spiral gives your agent every tool with one account. Browse the tools →

n8n · Public Records

How to Use civicAPI election forecast in n8n

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.

Prompts to try with civicAPI election forecast in n8n

Copy an example into n8n, or ask in your own words.

Each morning, use civicAPI election forecast for Senate races. Report rating changes for Georgia, Michigan, and North Carolina since the previous check.

civicAPI election forecastn8n
Try asking
  • 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 n8n

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

Use the Spiral skill

  1. Send n8n 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. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "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.

    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.

    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: n8n finds civicAPI election forecast on Spiral, shows the price and runs it.

civicAPI election forecast providers and prices

Spiral runs civicAPI election forecast through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records

What can you do with civicAPI election forecast in n8n?

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.

Questions about civicAPI election forecast in n8n

Can n8n use civicAPI election forecast?

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

How much does civicAPI election forecast cost in n8n?

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

Do I need an Alexandria account to use civicAPI election forecast in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs civicAPI election forecast on its own Alexandria account.

How long does it take to set up civicAPI election forecast in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while civicAPI election forecast runs?

civicAPI election forecast runs in the background. n8n 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.

Get started

Start using civicAPI election forecast in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options