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

Grok Build · Maps & Reviews

How to Use Ballotpedia political districts in Grok Build

Returns political district identifiers and election dates for a coordinate, with boundaries tied to dates. Use it to establish the correct geography before looking up an election ballot.

Prompts to try with Ballotpedia political districts in Grok Build

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

Use Ballotpedia political districts at latitude 43.07545, longitude -89.38808, and build a district table in this project using the returned identifiers, names, and election dates.

Ballotpedia political districtsGrok Build
Try asking
  • Use Ballotpedia political districts to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Ballotpedia political districts and tell me what changed since last week.

  • Check Ballotpedia political districts and summarize what you find in three bullet points.

  • Pull the newest data from Ballotpedia political districts and give me the result as a table.

How to set up Ballotpedia political districts in Grok Build

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

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build 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 Ballotpedia political districts

    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": "ballotpedia-org/districts/districts_for_coordinate",
        "input": {
          "lat": -90,
          "long": -180
        }
      }'

Then paste one of the prompts above: Grok Build finds Ballotpedia political districts on Spiral, shows the price and runs it.

Ballotpedia political districts providers and prices

Spiral runs Ballotpedia political districts through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews
Ballotpedia · Districts for coordinate
ballotpedia-org/districts/districts_for_coordinate

Settings you can ask for

Ask Grok Build for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Lat-90 to 90

Latitude in decimal degrees (WGS84).

Long-180 to 180

Longitude in decimal degrees (WGS84).

Include historicalon or off

Also return past elections (since 2022) with the districts as drawn on each date. Larger response.

Every API field of Ballotpedia · Districts for coordinate is on its tool page: open its card above.

What can you do with Ballotpedia political districts in Grok Build?

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.

Public library ballot guide

Start with a library's public address, identify its districts, and build an election-date guide with races, candidate background, and explanations of listed measures.

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.

Civics classroom comparison

Use a state capitol's address to compare current representatives with candidates on a dated ballot. Explain district geography, statewide contests, and the measures students encounter.

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.

Library branch representation directory

Resolve public branch addresses to coordinates and districts, then identify the current officials representing each branch. Group the directory by office and district.

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.

Questions about Ballotpedia political districts in Grok Build

Can Grok Build use Ballotpedia political districts?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Ballotpedia political districts like any built-in tool.

How much does Ballotpedia political districts cost in Grok Build?

$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 Build plan is separate.

Do I need an Alexandria account to use Ballotpedia political districts in Grok Build?

No. Spiral runs Ballotpedia political districts 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 political districts in Grok Build?

About two minutes: add the server, then sign in, then check it.

Does Grok Build wait while Ballotpedia political districts runs?

Ballotpedia political districts runs in the background. Grok Build 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.

Get started

Start using Ballotpedia political districts in Grok Build

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

Paste this into Grok Build:

Set up Grok Build

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