[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [OpenSecrets race top contributors](https://spiral.ai/integrations/muse-code/opensecrets-race-top-contributors)

# How to Use OpenSecrets race top contributors in Muse Code

Returns the top contributing organizations associated with candidates in a federal race. Use it to compare funding sources, remembering that organization totals can include affiliated individuals' donations.

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

## Prompts to try with OpenSecrets race top contributors in Muse Code

- Use OpenSecrets race top contributors for New Hampshire's 2022 U.S. Senate race. Build a comparison of the organizations listed for Maggie Hassan and Don Bolduc.
- Use OpenSecrets race top contributors for Arizona's 2024 U.S. Senate race. Add the returned organization rankings to this project's race detail view with a clear explanation of associated contributions.
- Use OpenSecrets race top contributors to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OpenSecrets race top contributors and tell me what changed since last week.
- Check OpenSecrets race top contributors and summarize what you find in three bullet points.

## How to set up OpenSecrets race top contributors in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse 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 OpenSecrets race top contributors**: 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_top_contributors",
    "input": {
      "state": "<state>",
      "office": "senate"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds OpenSecrets race top contributors on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## OpenSecrets race top contributors tools and prices

- [OpenSecrets race fundraising and top donors · Race top contributors](https://spiral.ai/tools/alexandria/opensecrets-org/campaign-finance/race_top_contributors) (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. |
| candidate |  | — | Optional candidate name filter, case-insensitive; every word must appear in the name (e.g. 'Pappas'). |

## What can you do with OpenSecrets race top contributors in Muse Code?

Build a race finance view that compares reported campaign totals or leading associated organizations. A coding agent can use OpenSecrets results to populate tables and write explanations of organization attribution.

### 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 Muse Code guides](https://spiral.ai/integrations/muse-code)

## OpenSecrets race top contributors in other agents

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

## More Muse Code guides

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

## Questions about OpenSecrets race top contributors in Muse Code

**Can Muse Code use OpenSecrets race top contributors?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run OpenSecrets race top contributors like any built-in tool.

**How much does OpenSecrets race top contributors cost in Muse 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 Muse Code plan is separate.

**Do I need an Alexandria account to use OpenSecrets race top contributors in Muse Code?**

No. Spiral runs OpenSecrets race top contributors on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up OpenSecrets race top contributors in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while OpenSecrets race top contributors runs?**

OpenSecrets race top contributors runs in the background. Muse Code 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.

