[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [VoteHub poll search](https://spiral.ai/integrations/n8n/votehub-poll-search)

# How to Use VoteHub poll search in n8n

Find survey results across VoteHub's polling database, with dates, sample information, sponsors, and source links. Use it to compare releases for a race or public opinion topic.

|  |  |
| --- | --- |
| Model | VoteHub poll search |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with VoteHub poll search in n8n

- Each morning, use VoteHub poll search to find Donald Trump approval surveys and report newly seen polls with percentages, survey dates, pollsters, and source links.
- Each Friday, use VoteHub poll search to summarize newly seen generic congressional ballot surveys, separating independent releases from campaign or party-aligned polls.
- Every Monday at 9am: use VoteHub poll search to look this up and give me the result as a table.
- Pull the latest numbers from VoteHub poll search and tell me what changed since last week.
- Check VoteHub poll search and summarize what you find in three bullet points.

## How to set up VoteHub poll search 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:

```text
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:

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

4. **Run VoteHub poll search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds VoteHub poll search, 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 VoteHub poll search**: 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": "votehub-com/election-polls/search_polls",
    "input": {
      "sort": "newest_first"
    }
  }'
```

Then paste one of the prompts above: n8n finds VoteHub poll search on Spiral, shows the price and runs it.

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

## VoteHub poll search tools and prices

- [VoteHub Polling API · Search polls](https://spiral.ai/tools/alexandria/votehub-com/election-polls/search_polls) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | newest_first, oldest_first | newest_first | sort |
| limit | 1 to 200 | 25 | limit |
| cursor |  | — | next_cursor from the previous page. Pattern: ^[0-9]{1,6}$. |
| subject |  | — | Partial match on the poll subject: '2026 Texas', '2026 FL-25', 'Donald Trump', 'Congress', '2026' (generic ballot). Primaries share the state prefix ('2026 Texas Democratic'). |
| to_date |  | — | Fieldwork end on or before this date, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| pollster |  | — | Partial match on the pollster name (Emerson, YouGov, Siena). |

## What can you do with VoteHub poll search in n8n?

Produce a recurring digest of polling releases and changes in VoteHub's recorded coverage. Compare returned records and directories with the previous run to identify newly available material.

### 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.

### Compare survey populations

Compare results from surveys of likely voters, registered voters, and adults, keeping sample sizes and fieldwork dates beside the percentages.

### Review sponsorship

Inspect sponsors and VoteHub's internal and partisan flags when explaining why two surveys deserve separate treatment.

## Overview

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

## VoteHub poll search in other agents

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

## More n8n guides

- [VoteHub poll details](https://spiral.ai/integrations/n8n/votehub-poll-details)
- [VoteHub polling subjects](https://spiral.ai/integrations/n8n/votehub-polling-subjects)
- [UCSB cylinder recording search](https://spiral.ai/integrations/n8n/ucsb-cylinder-recording-search)
- [VoteHub pollster directory](https://spiral.ai/integrations/n8n/votehub-pollster-directory)
- [UCSB cylinder recording details](https://spiral.ai/integrations/n8n/ucsb-cylinder-recording-details)
- [WoW Forever DPS simulation](https://spiral.ai/integrations/n8n/wow-forever-dps-simulation)

## Questions about VoteHub poll search in n8n

**Can n8n use VoteHub poll search?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run VoteHub poll search like any built-in tool.

**How much does VoteHub poll search 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 VoteHub poll search in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs VoteHub poll search on its own Alexandria account.

**How long does it take to set up VoteHub poll search in n8n?**

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

**Does n8n wait while VoteHub poll search runs?**

VoteHub poll search runs in the background. n8n 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.

