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

Grok · Public Records

How to Use civicAPI election race details in Grok

Get one election contest in detail, including its candidates and a county breakdown when requested. Use it to explain the geography behind a race's overall vote totals.

Prompts to try with civicAPI election race details in Grok

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

Use civicAPI election race details for Georgia's November 3, 2026, Senate contest, resolving its identifier first. Include the county breakdown and rank counties by total votes returned.

civicAPI election race detailsGrok
Try asking
  • Use civicAPI election race details to look this up and give me the result as a table.

  • Pull the latest numbers from civicAPI election race details and tell me what changed since last week.

  • Check civicAPI election race details and summarize what you find in three bullet points.

  • Pull the newest data from civicAPI election race details and give me the result as a table.

How to set up civicAPI election race details in Grok

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

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok 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.

    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 race details

    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/race",
        "input": {
          "id": 1
        }
      }'

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

civicAPI election race details providers and prices

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

AlexandriaPublic Records

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
IDa number

Alias of race_id. A number, a numeric string, or a civicapi.org results URL.

Race IDa number

civicAPI race id from live_results, e.g. 87088. A number or a string. id is an alias.

Regionson or off

Alias of include_regions.

Countieson or off

Alias of include_regions.

Include regionson or off

Add the county or district breakdown. Default false. regions, counties, and include_counties are aliases. true, false, yes, no, 1, and 0 are accepted.

Include countieson or off

Alias of include_regions.

Every API field of civicAPI live election results and forecasts · Race is on its tool page: open its card above.

What can you do with civicAPI election race details in Grok?

Turn civicAPI election data into a briefing about a state, chamber, or individual contest. A chat app can explain race ratings, reporting progress, and county totals in plain English.

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 race details in Grok

Can Grok use civicAPI election race details?

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

How much does civicAPI election race details cost in Grok?

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

Do I need an Alexandria account to use civicAPI election race details in Grok?

No. Spiral runs civicAPI election race details 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 race details in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while civicAPI election race details runs?

civicAPI election race details runs in the background. Grok 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 race details in Grok

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

Paste this into Grok:

Set up Grok

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