FEC · Candidates
fec-gov/records/candidatesSearch public records with FEC · Candidates from Alexandria through one Spiral API key. Find a federal candidate's FEC candidate ID and principal campaign committee before asking for totals, filings or independent expenditures. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
page | number 1 to 100000 | 1 | 1-based page; pass the previous next_page with the same filters. |
cycle | number 1976 to 2100 | — | Cycle in which the candidate was active, named by its even year: 2024 covers 2023-2024. |
party | text | — | Three-letter FEC party code, e.g. DEM, REP, LIB, GRE, IND. Pattern: ^[A-Za-z0-9]{3}$. |
query | text | — | Name search, e.g. warren. Pattern: \S. |
state | text | — | Two-letter US state or territory code, e.g. MA. Pattern: ^[A-Za-z]{2}$. |
office | one of H, S, P | — | H House, S Senate, P President. |
district | text | — | House district, two digits (00 at-large). Pattern: ^[0-9]{2}$. |
per_page | number 1 to 100 | 10 | Rows per page, 1 to 100. |
candidate_id | text | — | FEC candidate ID, e.g. S2MA00170 (H House, S Senate, P President). Pattern: ^[HSPhsp][0-9A-Za-z]{8}$. |
election_year | number 1976 to 2100 | — | Year of an election the candidate ran in. |
has_raised_funds | true or false | — | Only candidates whose committees reported receipts. |
is_active_candidate | true or false | — | is_active_candidate |
Same request in code
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
}
}'Frequently asked questions
How much does FEC · Candidates cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use FEC · Candidates through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fec-gov/records/candidates"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use FEC · Candidates?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use FEC · Candidates?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.