[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [OpenSecrets race fundraising](https://spiral.ai/integrations/n8n/opensecrets-race-fundraising)

# How to Use OpenSecrets race fundraising in n8n

Returns candidate fundraising, spending, and cash on hand for a Senate, House, or governor race. Use it to compare campaign finances; organization donor rankings come from OpenSecrets race top contributors.

|  |  |
| --- | --- |
| Model | OpenSecrets race fundraising |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with OpenSecrets race fundraising in n8n

- Every Monday, use OpenSecrets race fundraising for New Hampshire's 2026 U.S. Senate race. Summarize changes in each candidate's reported fundraising, spending, and cash on hand since the previous check.
- Once a month, use OpenSecrets race fundraising for New Hampshire's 1st Congressional District in 2026. Compare the candidates' reported fundraising and spending with the previous check.
- Once a month, use OpenSecrets race fundraising for New Hampshire's 2026 governor race. Report changed candidate totals and identify the election period actually returned.
- Every Monday at 9am: use OpenSecrets race fundraising to look this up and give me the result as a table.
- Pull the latest numbers from OpenSecrets race fundraising and tell me what changed since last week.

## How to set up OpenSecrets race fundraising 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 OpenSecrets race fundraising in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds OpenSecrets race fundraising, 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 OpenSecrets race fundraising**: 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": "opensecrets-org/campaign-finance/race_fundraising",
    "input": {
      "state": "<state>",
      "office": "senate"
    }
  }'
```

Then paste one of the prompts above: n8n finds OpenSecrets race fundraising on Spiral, shows the price and runs it.

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

## OpenSecrets race fundraising tools and prices

- [OpenSecrets race fundraising and top donors · Race fundraising](https://spiral.ai/tools/alexandria/opensecrets-org/campaign-finance/race_fundraising) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cycle | 2000 to 2026 | — | Election cycle (even year). Defaults to 2026. When OpenSecrets has no data for that cycle yet it answers with its latest cycle and says so in note. |
| district | 0 to 53 | — | U.S. House district number, required for office=house; 1 (or 0) for an at-large seat. Ignored for other offices. |

## What can you do with OpenSecrets race fundraising in n8n?

Receive a periodic summary when OpenSecrets' reported race finances or organization rankings change. An agent can compare successive results while accounting for disclosure delays in the source.

### Prepare a race finance briefing

Compare candidates' reported fundraising, spending, and cash on hand, then add the organizations associated with their largest contributions.

### Build a local election explainer

Explain a House race's funding picture with candidate finance totals and organization donor rankings. Label organization totals as associated contributions.

### Prepare candidate interview questions

Use a candidate's spending and cash position alongside their leading associated organizations to draft questions grounded in reported campaign finances.

### Compare funding across election cycles

Retrieve the same federal race in multiple election cycles to examine changes in campaign totals and leading associated organizations.

### Monitor published campaign finance changes

Check a federal race periodically for changes in fundraising totals and organization rankings. Summarize changes only when the source returns new figures.

### Create a campaign finance classroom exercise

Have students compare two federal candidates' finances and associated organizations, then explain what an organization total represents.

## Overview

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

## OpenSecrets race fundraising in other agents

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

## More n8n guides

- [Open Alberta publishing organizations](https://spiral.ai/integrations/n8n/open-alberta-publishing-organizations)
- [OpenSecrets race top contributors](https://spiral.ai/integrations/n8n/opensecrets-race-top-contributors)
- [Open Alberta publication and dataset search](https://spiral.ai/integrations/n8n/open-alberta-publication-and-dataset-search)
- [OregonBuys bid details](https://spiral.ai/integrations/n8n/oregonbuys-bid-details)
- [Open Alberta publication and dataset details](https://spiral.ai/integrations/n8n/open-alberta-publication-and-dataset-details)
- [OregonBuys bid search](https://spiral.ai/integrations/n8n/oregonbuys-bid-search)

## Questions about OpenSecrets race fundraising in n8n

**Can n8n use OpenSecrets race fundraising?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run OpenSecrets race fundraising like any built-in tool.

**How much does OpenSecrets race fundraising 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 OpenSecrets race fundraising in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs OpenSecrets race fundraising on its own Alexandria account.

**How long does it take to set up OpenSecrets race fundraising in n8n?**

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

**Does n8n wait while OpenSecrets race fundraising runs?**

OpenSecrets race fundraising runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Where does OpenSecrets get campaign finance figures?**

Federal campaign figures originate with Federal Election Commission reports. Governor figures use state disclosure data collected by OpenSecrets, formerly FollowTheMoney.

**Does an OpenSecrets data date include every donation through that day?**

No. OpenSecrets says disclosure delays mean its data is not necessarily complete through the displayed date. Governor figures can lag by an election cycle.

**Do these contributor rankings cover governor candidates?**

The documented organization rankings cover federal candidates. Governor fundraising uses a separate state disclosure source.

**Does a listed organization total mean the organization donated that money itself?**

It can combine the organization's PAC contributions with donations from associated individuals, including employees, owners, and their immediate families. Describe it as money associated with the organization.

**Does public access make OpenSecrets data unrestricted for reuse?**

OpenSecrets' published OpenData guide specifies attribution, noncommercial use, and share-alike terms. It also requires for-profit organizations to obtain a data license.

