[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [FEC candidate search](https://spiral.ai/integrations/n8n/fec-candidate-search)

# How to Use FEC candidate search in n8n

Returns federal candidate records with FEC IDs, party, office, district and principal campaign committee information. Use it to identify the candidate behind a race before researching campaign finances.

|  |  |
| --- | --- |
| Model | FEC candidate search |
| 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 FEC candidate search in n8n

- Every Monday, use FEC candidate search to check Massachusetts Senate candidate records for the 2026 cycle and report changes in candidate status or principal campaign committee information.
- Every Monday at 9am: use FEC candidate search to look this up and give me the result as a table.
- Pull the latest numbers from FEC candidate search and tell me what changed since last week.
- Check FEC candidate search and summarize what you find in three bullet points.
- Pull the newest data from FEC candidate search and give me the result as a table.

## How to set up FEC candidate 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 FEC candidate search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds FEC candidate 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 FEC candidate 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": "fec-gov/records/candidates",
    "input": {
      "page": 1
    }
  }'
```

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

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

## FEC candidate search tools and prices

- [FEC · Candidates](https://spiral.ai/tools/alexandria/fec-gov/records/candidates) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100000 | 1 | 1-based page; pass the previous next_page with the same filters. |
| cycle | 1976 to 2100 | — | Cycle in which the candidate was active, named by its even year: 2024 covers 2023-2024. |
| party |  | — | Three-letter FEC party code, e.g. DEM, REP, LIB, GRE, IND. Pattern: ^[A-Za-z0-9]{3}$. |
| query |  | — | Name search, e.g. warren. Pattern: \S. |
| state |  | — | Two-letter US state or territory code, e.g. MA. Pattern: ^[A-Za-z]{2}$. |
| office | H, S, P | — | H House, S Senate, P President. |

## What can you do with FEC candidate search in n8n?

Receive a recurring brief of changes in FEC disclosure records for federal races and committees. A scheduled agent can compare results with earlier snapshots and flag records that need closer examination.

### Explain the money behind a federal race

Identify the candidates and their committees, compare reported finances and contribution patterns, and explain campaign payments separately from independent spending. Use filings to document the reporting periods behind the explanation.

### Compare campaign finance across election cycles

Match candidates and committees across selected cycles, then compare financial summaries, contribution aggregates and spending records. Check the underlying filings so differences in reporting coverage remain visible.

### Check a campaign finance claim

Resolve the candidate or organization named in a claim, identify whether it concerns fundraising, campaign payments or independent spending, and retrieve the relevant records and filings.

### Build a classroom campaign finance case study

Use a real federal race to show how candidate registration, committee organization, fundraising summaries and spending disclosures fit together. Include contribution aggregates and original filings as evidence students can examine.

## Overview

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

## FEC candidate search in other agents

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

## More n8n guides

- [FEC campaign finance filings](https://spiral.ai/integrations/n8n/fec-campaign-finance-filings)
- [FEC committee disbursements](https://spiral.ai/integrations/n8n/fec-committee-disbursements)
- [FAA temporary flight restrictions](https://spiral.ai/integrations/n8n/faa-temporary-flight-restrictions)
- [FEC committee financial totals](https://spiral.ai/integrations/n8n/fec-committee-financial-totals)
- [FAA temporary flight restriction details](https://spiral.ai/integrations/n8n/faa-temporary-flight-restriction-details)
- [FEC committee search](https://spiral.ai/integrations/n8n/fec-committee-search)

## Questions about FEC candidate search in n8n

**Can n8n use FEC candidate search?**

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

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

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

**How long does it take to set up FEC candidate search in n8n?**

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

**Does n8n wait while FEC candidate search runs?**

FEC candidate search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does the FEC cover state and local elections?**

The FEC publishes federal campaign finance disclosures. State and local campaign finance reports may be available from state records offices.

**How fresh are FEC financial summaries?**

Committee financial summaries update nightly using electronic reports received or paper reports computerized through 7 p.m. the previous day. Their financial coverage ends with the latest report submitted.

**Do all committee totals cover the same dates?**

No. FEC cycle summaries combine reports over a two-year period, but each committee's totals end with its latest submitted report, so comparison periods can differ.

**Does the disbursement search include all outside spending?**

No. It excludes outside spending to support or oppose candidates, as well as allocated federal/nonfederal disbursements. Independent expenditure disclosures identify spending by the candidate supported or opposed.

**Are filings limited to financial reports?**

No. FEC filings also include statements and notices submitted by candidates and committees.

