# FEC API

> 2 public methods for FEC (fec.gov), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by FEC.

- Page: https://fous.com/methods/fec.gov

## Methods

### [Get candidate fundraising](https://fous.com/methods/fec.gov/get-candidate-fundraising.md)

`fec.gov/get_candidate_fundraising`, read. Gets a federal candidate's fundraising and spending for a two-year FEC cycle. If several names match, returns the match with the most reported receipts.

Returns: candidate name, office, party, state, district, total raised, total spent, cash on hand, debts, individual contributions, coverage end date, principal committee, FEC ids

### [Search federal candidates](https://fous.com/methods/fec.gov/search-candidates.md)

`fec.gov/search_candidates`, read. Lists federal candidates for an office and election year from FEC data, ranked by total money raised. Senate and House searches require a state; a House search can be narrowed to one district.

Returns: candidate name, party, state, district, incumbency, status, total raised, cash on hand, coverage end date, FEC URL
