Search candidates by name, office, state, party and cycle.
GET/candidates/search/
- Takes: Name
- Passive: the target is not contacted
Basic information about candidates and their principal committees. Each result is one FEC candidate ID, which stays the same for the same office over time.
Query parameters
qName of candidate running for office
officeFederal office: H, S or P
stateUS state or territory where the candidate runs
partyThree-letter party code
election_yearYear of election
per_pageResults per page (maximum 100)
pagePage number
Response fields · 8ShowHide
count
Total matching records
candidate_id
FEC candidate ID
name
Candidate name
office_full
Office sought
party_full
Party
state
State
election_years[]
Election years
principal_committees[]
Principal committees
curl 'https://api.open.fec.gov/v1/candidates/search/' \
-H 'X-Api-Key: YOUR_API_KEY'{
"pagination": {
"count": 1,
"page": 1,
"pages": 1,
"per_page": 20
},
"results": [
{
"candidate_id": "S0XX00000",
"name": "EXAMPLE, JANE",
"office_full": "Senate",
"party_full": "EXAMPLE PARTY",
"state": "NY",
"election_years": [
2024
],
"principal_committees": [
{
"committee_id": "C00000000",
"name": "EXAMPLE FOR SENATE"
}
]
}
]
}