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

Devin · News & Media

How to Use VoteHub polling subjects in Devin

Get polling subjects and their associated poll types, including races and public institutions. Use it to establish what VoteHub covers before looking for survey results.

Prompts to try with VoteHub polling subjects in Devin

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

Use VoteHub polling subjects to find covered 2026 Texas races and add their subjects and associated poll types to this project's race selector.

VoteHub polling subjectsDevin
Try asking
  • Use VoteHub polling subjects to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from VoteHub polling subjects and tell me what changed since last week.

  • Check VoteHub polling subjects and summarize what you find in three bullet points.

  • Pull the newest data from VoteHub polling subjects and give me the result as a table.

How to set up VoteHub polling subjects in Devin

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

Use Spiral's MCP server

  1. Add a custom MCP

    Open Customize › MCPs. Click + and choose New MCP. Fill in:

  2. Sign in to Spiral and approve

    In Customize › MCPs, open Spiral and choose Connect. Spiral opens: sign in, pick the organization and click Authorize. No API key.

  3. Check it

    On Spiral's configuration page, click Test tools. Devin lists Spiral's tools.

Use the Spiral skill

  1. Send Devin 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 VoteHub polling subjects

    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": "votehub-com/election-polls/list_subjects",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Devin finds VoteHub polling subjects on Spiral, shows the price and runs it.

VoteHub polling subjects providers and prices

Spiral runs VoteHub polling subjects through Alexandria. Open a card for today's price, with every fee included.

AlexandriaNews & Media
VoteHub Polling API · List subjects
votehub-com/election-polls/list_subjects

What can you do with VoteHub polling subjects in Devin?

Build a polling dashboard with survey results, source links, and race and pollster selectors. Use VoteHub's directories to populate choices and individual records to support inspection.

Prepare a race briefing

Identify the recorded race subject and pollster names, find relevant surveys, and inspect the polls selected for a briefing with source links.

Build a polling dashboard

Populate race and pollster selectors from the directories, retrieve matching surveys, and let readers inspect the original record behind each plotted result.

Check a published polling claim

Resolve the named firm and race against VoteHub's directories, locate the survey, and compare its recorded percentages, sample, and dates with the claim.

Assemble a research reading list

Choose covered subjects and polling firms from the directories, collect matching surveys, and inspect selected records to produce an annotated list of original releases.

Find covered House districts

List House race subjects represented in VoteHub to choose districts for further polling research.

Questions about VoteHub polling subjects in Devin

Can Devin use VoteHub polling subjects?

Yes. Add Spiral to Devin as an MCP server, and Devin can find and run VoteHub polling subjects like any built-in tool.

How much does VoteHub polling subjects cost in Devin?

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

Do I need an Alexandria account to use VoteHub polling subjects in Devin?

No. Spiral runs VoteHub polling subjects on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up VoteHub polling subjects in Devin?

About two minutes: add a custom MCP, then sign in to Spiral and approve, then check it.

Does Devin wait while VoteHub polling subjects runs?

VoteHub polling subjects runs in the background. Devin starts the run, checks on it and gives you the json when it's ready.

Which elections and opinion topics does VoteHub cover?

Coverage includes U.S. Senate, House, governor and other races, the generic congressional ballot, presidential approval, and favorability.

Does VoteHub return individual survey responses?

The documented records contain answer percentages and survey metadata, including sample size and population. They link to a poll's original source.

How fresh and complete is the archive?

VoteHub describes the API as beta and says it is adding subjects, poll types, and historical data alongside real-time updates. Coverage is still expanding.

Is the pollster directory a list of every polling firm?

It lists distinct pollster names in VoteHub's database. The subjects directory likewise describes subjects and poll types represented there.

Can campaign-sponsored polls appear?

Yes. VoteHub includes internal and partisan flags so campaign and party-aligned releases can be distinguished from independent polls.

Get started

Start using VoteHub polling subjects in Devin

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

Paste this into Devin:

Set up Devin

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