> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# FEC (OpenFEC)

> US Federal Election Commission campaign finance data: candidates, committees, filings, financial totals, itemized contributions, disbursements and independent expenditures.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/fec.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=77ad2d816614963d21a7c463fd4e4cf4)

[Web Catalog · Government](https://docs.webrouter.net/data-apis.md?category=government)

Needs&#x20;

`FEC_API_KEY`

Endpoints

10

Auth

Key in header

[Vendor docs](https://api.open.fec.gov/developers/)

## Setup

| Variable | | What it is |
| - | - | - |
| `FEC_API_KEY` | required | A free api.data.gov key (api.open.fec.gov/developers sign-up form). Sent in the X-Api-Key header; DEMO\_KEY works for trying it out. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) 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

GET

Look up candidates or committees by name

Typeahead matches with ids, to feed the other endpoints.

[Open](#fec-names-search)

GET

Search candidates

Candidates with their principal committees, by name, office, state, party, cycle and status.

[Open](#fec-candidates-search)

GET

Get a candidate's financial totals

Receipts, disbursements, cash on hand and debt per cycle from the candidate's reports.

[Open](#fec-candidates-totals)

GET

Search committees

Committees and filers by name, id, type, designation, party, state and dates.

[Open](#fec-committees-search)

GET

Get a committee

Most recent registration details of one committee.

[Open](#fec-committees-get)

GET

Search itemized receipts (Schedule A)

Itemized contributions and other receipts: contributor, employer, occupation, amount, date and recipient committee.

[Open](#fec-contributions-search)

GET

Search itemized disbursements (Schedule B)

How committees spend: recipient, purpose, amount and date.

[Open](#fec-disbursements-search)

GET

Search independent expenditures (Schedule E)

Spending to support or oppose a candidate (e.g. super PAC ads), by candidate, spender, payee and date.

[Open](#fec-independent-expenditures-search)

GET

Search filings

Reports and other documents filed with the FEC, with links to the originals.

[Open](#fec-filings-search)

GET

Get an election's candidates and totals

Financial totals of every candidate for one office and cycle.

[Open](#fec-elections-get)

### Look up candidates or committees by name

GET

`/names/{type}/`

`fec.names.search`

Typeahead matches with ids, to feed the other endpoints.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>path</td><td>What to match: candidates or committees. One of `candidates`, `committees` Example `candidates`</td></tr>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Candidate or committee name. Example `Smith`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-people-search), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-linkedin-search-people), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-people-search), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-person-search), [BetterContact](https://docs.webrouter.net/data-apis/bettercontact.md#bettercontact-leads-search)

```python Python theme={null}
router.call_data_api("fec.names.search", {'type': 'candidates', 'q': 'Smith'})
```

```text MCP theme={null}
call_data_api(endpoint="fec.names.search", params={"type": "candidates", "q": "Smith"})
```

### Search candidates

GET

`/candidates/search/`

`fec.candidates.search`

Candidates with their principal committees, by name, office, state, party, cycle and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Candidate name.
      </td>
    </tr>

    <tr>
      <td>
        `candidate_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        FEC candidate id.
      </td>
    </tr>

    <tr><td>`office`</td><td>string</td><td>query</td><td>H House, S Senate, P President. One of `H`, `S`, `P`</td></tr>

    <tr>
      <td>
        `state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter state.
      </td>
    </tr>

    <tr>
      <td>
        `district`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-digit House district.
      </td>
    </tr>

    <tr>
      <td>
        `party`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Three-letter party code, e.g. DEM, REP.
      </td>
    </tr>

    <tr>
      <td>
        `cycle`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year cycle (even year).
      </td>
    </tr>

    <tr>
      <td>
        `election_year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Election year.
      </td>
    </tr>

    <tr>
      <td>
        `is_active_candidate`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only candidates actively seeking office.
      </td>
    </tr>

    <tr><td>`incumbent_challenge`</td><td>string</td><td>query</td><td>I incumbent, C challenger, O open seat. One of `I`, `C`, `O`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default name.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.candidates.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.candidates.search")
```

### Get a candidate's financial totals

GET

`/candidate/{candidate_id}/totals/`

`fec.candidates.totals`

Receipts, disbursements, cash on hand and debt per cycle from the candidate's reports.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`candidate_id` required</td><td>string</td><td>path</td><td>FEC candidate id. Example `P80001571`</td></tr>

    <tr>
      <td>
        `cycle`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year cycle.
      </td>
    </tr>

    <tr>
      <td>
        `election_full`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the full election period, false for the two-year cycle.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.candidates.totals", {'candidate_id': 'P80001571'})
```

```text MCP theme={null}
call_data_api(endpoint="fec.candidates.totals", params={"candidate_id": "P80001571"})
```

### Search committees

GET

`/committees/`

`fec.committees.search`

Committees and filers by name, id, type, designation, party, state and dates.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Committee name.
      </td>
    </tr>

    <tr>
      <td>
        `committee_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        FEC committee id.
      </td>
    </tr>

    <tr>
      <td>
        `candidate_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Candidate the committee is linked to.
      </td>
    </tr>

    <tr>
      <td>
        `committee_type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        One-letter committee type code (e.g. P presidential, H House, S Senate, N/Q PACs, O super PAC).
      </td>
    </tr>

    <tr><td>`designation`</td><td>string</td><td>query</td><td>A authorized, J joint fundraising, P principal campaign, U unauthorized, B lobbyist PAC, D leadership PAC. One of `A`, `J`, `P`, `U`, `B`, `D`</td></tr>

    <tr>
      <td>
        `state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter state.
      </td>
    </tr>

    <tr>
      <td>
        `party`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Three-letter party code.
      </td>
    </tr>

    <tr>
      <td>
        `cycle`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year cycle the committee was active.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default name.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.committees.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.committees.search")
```

### Get a committee

GET

`/committee/{committee_id}/`

`fec.committees.get`

Most recent registration details of one committee.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`committee_id` required</td><td>string</td><td>path</td><td>FEC committee id. Example `C00703975`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.committees.get", {'committee_id': 'C00703975'})
```

```text MCP theme={null}
call_data_api(endpoint="fec.committees.get", params={"committee_id": "C00703975"})
```

### Search itemized receipts (Schedule A)

GET

`/schedules/schedule_a/`

`fec.contributions.search`

Itemized contributions and other receipts: contributor, employer, occupation, amount, date and recipient committee.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `committee_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Recipient committee id.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor name.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_city`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor city.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor state.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_zip`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor zip code.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_employer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor employer.
      </td>
    </tr>

    <tr>
      <td>
        `contributor_occupation`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Contributor occupation.
      </td>
    </tr>

    <tr>
      <td>
        `is_individual`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only non-earmarked individual contributions.
      </td>
    </tr>

    <tr>
      <td>
        `two_year_transaction_period`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year period of the transaction; defaults to the current cycle.
      </td>
    </tr>

    <tr>
      <td>
        `min_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum amount.
      </td>
    </tr>

    <tr>
      <td>
        `max_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Maximum amount.
      </td>
    </tr>

    <tr>
      <td>
        `min_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Earliest date.
      </td>
    </tr>

    <tr>
      <td>
        `max_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Latest date.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default -contribution\_receipt\_date.
      </td>
    </tr>

    <tr>
      <td>
        `last_contribution_receipt_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        From pagination.last\_indexes, with last\_index, when sorting by date.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `last_index`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        last\_index from the previous page's pagination.last\_indexes.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.contributions.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.contributions.search")
```

> [!NOTE]
>
> * 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)

GET

`/schedules/schedule_b/`

`fec.disbursements.search`

How committees spend: recipient, purpose, amount and date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `committee_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Spending committee id.
      </td>
    </tr>

    <tr>
      <td>
        `recipient_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Recipient name.
      </td>
    </tr>

    <tr>
      <td>
        `recipient_state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Recipient state.
      </td>
    </tr>

    <tr>
      <td>
        `disbursement_description`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Description of the disbursement.
      </td>
    </tr>

    <tr><td>`disbursement_purpose_category`</td><td>string</td><td>query</td><td>Purpose category. One of `ADMINISTRATIVE`, `ADVERTISING`, `CONTRIBUTIONS`, `EVENTS`, `FUNDRAISING`, `LOAN-REPAYMENTS`, `MATERIALS`, `OTHER`, `POLLING`, `REFUNDS`, `TRANSFERS`, `TRAVEL`</td></tr>

    <tr>
      <td>
        `two_year_transaction_period`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year period of the transaction; defaults to the current cycle.
      </td>
    </tr>

    <tr>
      <td>
        `min_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum amount.
      </td>
    </tr>

    <tr>
      <td>
        `max_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Maximum amount.
      </td>
    </tr>

    <tr>
      <td>
        `min_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Earliest date.
      </td>
    </tr>

    <tr>
      <td>
        `max_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Latest date.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default -disbursement\_date.
      </td>
    </tr>

    <tr>
      <td>
        `last_disbursement_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        From pagination.last\_indexes, with last\_index, when sorting by date.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `last_index`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        last\_index from the previous page's pagination.last\_indexes.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.disbursements.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.disbursements.search")
```

> [!NOTE]
>
> * Keyset pagination like contributions.search: pass the last\_indexes values back.

### Search independent expenditures (Schedule E)

GET

`/schedules/schedule_e/`

`fec.independent_expenditures.search`

Spending to support or oppose a candidate (e.g. super PAC ads), by candidate, spender, payee and date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `candidate_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Candidate supported or opposed.
      </td>
    </tr>

    <tr>
      <td>
        `committee_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Spending committee id.
      </td>
    </tr>

    <tr><td>`support_oppose_indicator`</td><td>string</td><td>query</td><td>S support, O oppose. One of `S`, `O`</td></tr>

    <tr>
      <td>
        `cycle`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year cycle.
      </td>
    </tr>

    <tr>
      <td>
        `payee_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Payee name.
      </td>
    </tr>

    <tr>
      <td>
        `q_spender`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Keyword search on spender name or id.
      </td>
    </tr>

    <tr>
      <td>
        `min_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum amount.
      </td>
    </tr>

    <tr>
      <td>
        `max_amount`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Maximum amount.
      </td>
    </tr>

    <tr>
      <td>
        `min_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Earliest date.
      </td>
    </tr>

    <tr>
      <td>
        `max_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Latest date.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default -expenditure\_date.
      </td>
    </tr>

    <tr>
      <td>
        `last_expenditure_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        From pagination.last\_indexes, with last\_index, when sorting by date.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `last_index`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        last\_index from the previous page's pagination.last\_indexes.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)

```python Python theme={null}
router.call_data_api("fec.independent_expenditures.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.independent_expenditures.search")
```

> [!NOTE]
>
> * Keyset pagination: pass the last\_indexes values back.

### Search filings

GET

`/filings/`

`fec.filings.search`

Reports and other documents filed with the FEC, with links to the originals.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `committee_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filer committee id.
      </td>
    </tr>

    <tr>
      <td>
        `candidate_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Candidate id.
      </td>
    </tr>

    <tr>
      <td>
        `q_filer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Keyword search on filer name or id.
      </td>
    </tr>

    <tr>
      <td>
        `form_type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Form code, e.g. F3, F3X, F1.
      </td>
    </tr>

    <tr>
      <td>
        `report_year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Report year.
      </td>
    </tr>

    <tr>
      <td>
        `cycle`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Two-year cycle.
      </td>
    </tr>

    <tr>
      <td>
        `min_receipt_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Received on or after, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `max_receipt_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Received on or before, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `most_recent`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only new reports or the latest amendment.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, - for descending; default -receipt\_date.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/) · Same job: [Companies House](https://docs.webrouter.net/data-apis/companies-house.md#companies-house-filings-list), [Corpo API](https://docs.webrouter.net/data-apis/corpoapi.md#corpoapi-company-documents), [EDINET](https://docs.webrouter.net/data-apis/edinet.md#edinet-documents-list), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-filings-list), [OpenCorporates](https://docs.webrouter.net/data-apis/opencorporates.md#opencorporates-companies-filings), [SEC API (sec-api.io)](https://docs.webrouter.net/data-apis/sec-api.md#sec-api-filings-search)

```python Python theme={null}
router.call_data_api("fec.filings.search")
```

```text MCP theme={null}
call_data_api(endpoint="fec.filings.search")
```

> [!NOTE]
>
> * Counts for large result sets are approximate.

### Get an election's candidates and totals

GET

`/elections/`

`fec.elections.get`

Financial totals of every candidate for one office and cycle.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`office` required</td><td>string</td><td>query</td><td>house, senate or president. One of `house`, `senate`, `president`</td></tr>
    <tr><td>`cycle` required</td><td>integer</td><td>query</td><td>Two-year cycle. Example `2024`</td></tr>

    <tr>
      <td>
        `state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter state (House and Senate).
      </td>
    </tr>

    <tr>
      <td>
        `district`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-digit district (House).
      </td>
    </tr>

    <tr>
      <td>
        `election_full`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Full election period (default true).
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.open.fec.gov/developers/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.