Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- A key allows 1,000 calls an hour; the FEC grants 7,200 an hour (120 a minute) on request by email. At most 100 results per page.
- Find ids first: names.search or candidates.search for a candidate_id (H/S/P prefix), committees.search for a committee_id (starts with C), then use them on the other endpoints.
- Cycles are two-year periods named for the even ending year (2026 covers 2025-2026).
- Contributor information may not be used for commercial purposes or to solicit donations.
- Data are updated nightly. Many filters take repeated values (e.g. state=CA&state=NY).
Endpoints
Look up candidates or committees by name
Search candidates
Get a candidate’s financial totals
Search committees
Get a committee
Search itemized receipts (Schedule A)
- Keyset pagination, not page numbers: append every value in pagination.last_indexes (last_index plus the sort field’s last value, or sort_null_only) to the next request. Counts are approximate; page until no records come back.
- Without two_year_transaction_period only the current cycle is searched.
Search itemized disbursements (Schedule B)
- Keyset pagination like contributions.search: pass the last_indexes values back.
Search independent expenditures (Schedule E)
- Keyset pagination: pass the last_indexes values back.
Search filings
- Counts for large result sets are approximate.