[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [VoteHub pollster directory](https://spiral.ai/integrations/vscode/votehub-pollster-directory)

# How to Use VoteHub pollster directory in VS Code

Get distinct pollster names represented in VoteHub's database. Use the directory to identify a firm's recorded name before researching its surveys.

|  |  |
| --- | --- |
| Model | VoteHub pollster directory |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with VoteHub pollster directory in VS Code

- Use VoteHub pollster directory to find Emerson and YouGov, then populate the pollster selector in this project's polling dashboard with their returned names.
- Use VoteHub pollster directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from VoteHub pollster directory and tell me what changed since last week.
- Check VoteHub pollster directory and summarize what you find in three bullet points.
- Pull the newest data from VoteHub pollster directory and give me the result as a table.

## How to set up VoteHub pollster directory in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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.

```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 pollster directory**: 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/list_pollsters",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds VoteHub pollster directory on Spiral, shows the price and runs it.

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

## VoteHub pollster directory tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Partial, case-insensitive name match. |

## What can you do with VoteHub pollster directory in VS Code?

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.

### Resolve polling firm names

Look up firms such as Emerson or YouGov to match editorial references with the names recorded by VoteHub.

## Overview

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

## VoteHub pollster directory in other agents

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

## More VS Code guides

- [VoteHub polling subjects](https://spiral.ai/integrations/vscode/votehub-polling-subjects)
- [WoW Forever DPS simulation](https://spiral.ai/integrations/vscode/wow-forever-dps-simulation)
- [VoteHub poll search](https://spiral.ai/integrations/vscode/votehub-poll-search)
- [WoW Forever best in slot gear](https://spiral.ai/integrations/vscode/wow-forever-best-in-slot-gear)
- [VoteHub poll details](https://spiral.ai/integrations/vscode/votehub-poll-details)
- [WoW Forever dungeon details](https://spiral.ai/integrations/vscode/wow-forever-dungeon-details)

## Questions about VoteHub pollster directory in VS Code

**Can VS Code use VoteHub pollster directory?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run VoteHub pollster directory like any built-in tool.

**How much does VoteHub pollster directory cost in VS Code?**

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

**Do I need an Alexandria account to use VoteHub pollster directory in VS Code?**

No. Spiral runs VoteHub pollster directory 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 pollster directory in VS Code?**

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

**Does VS Code wait while VoteHub pollster directory runs?**

VoteHub pollster directory runs in the background. VS Code 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.

