# FEC API: Get candidate fundraising

> 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.

Unofficial. Not affiliated with or endorsed by FEC.

- Page: https://fous.com/methods/fec.gov/get-candidate-fundraising
- Method: `fec.gov/get_candidate_fundraising`, version 1
- Website: fec.gov
- Returns: candidate name, office, party, state, district, total raised, total spent, cash on hand, debts, individual contributions, coverage end date, principal committee, FEC ids
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `state` | string | no | `"NY"` | State postal abbreviation to distinguish candidates, for example MA. |
| `office` | string | no | `"house"` | Office to distinguish candidates, for example senate. Defaults to any. One of "any", "president", "senate", "house". Default "any". |
| `candidate` | string | yes | `"Alexandria Ocasio-Cortez"` | Candidate name, for example Elizabeth Warren. |
| `election_year` | integer | no | `2024` | Two-year election cycle, for example 2024. Defaults to the FEC's current cycle. |

## Output

From a run on Oct 23, 2026. Its input:

```json
{
  "state": "NY",
  "office": "house",
  "candidate": "Alexandria Ocasio-Cortez",
  "election_year": 2024
}
```

Its output:

```json
{
  "cycle": 2024,
  "debts": 0,
  "party": "Democratic Party",
  "state": "NY",
  "office": "House",
  "currency": "USD",
  "district": "14",
  "total_spent": 16716492.89,
  "cash_on_hand": 3734646.88,
  "total_raised": 15299235.57,
  "candidate_link": "https://www.fec.gov/data/candidate/H8NY15148/?cycle=2024&election_full=false",
  "candidate_name": "Alexandria Ocasio-Cortez",
  "fec_candidate_id": "H8NY15148",
  "fec_committee_id": "C00639591",
  "coverage_end_date": "2024-12-31",
  "individual_contributions": 14866494.81,
  "principal_campaign_committee": "Alexandria Ocasio-Cortez For Congress",
  "incumbent_challenger_open_seat": "Incumbent"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"fec.gov/get_candidate_fundraising","input":{"state":"NY","office":"house","candidate":"Alexandria Ocasio-Cortez","election_year":2024}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- How much has Elizabeth Warren raised and spent in the 2024 federal cycle?
- What are the total receipts, cash on hand, and debts for the Senate candidate Ted Cruz from Texas in 2022?
- Show me the individual contributions and coverage end date for the House candidate Alexandria Ocasio-Cortez in New York for the 2024 cycle.
- I need the FEC fundraising totals for presidential candidate Ron DeSantis for the 2024 election, including his principal committee.
- Look up campaign finance figures for Massachusetts Senate candidate Ed Markey for the 2020 cycle, including party and FEC IDs.

## Input schema

```json
{
  "type": "object",
  "required": [
    "candidate"
  ],
  "properties": {
    "state": {
      "type": "string",
      "description": "State postal abbreviation to distinguish candidates, for example MA."
    },
    "office": {
      "enum": [
        "any",
        "president",
        "senate",
        "house"
      ],
      "type": "string",
      "default": "any",
      "description": "Office to distinguish candidates, for example senate. Defaults to any."
    },
    "candidate": {
      "type": "string",
      "description": "Candidate name, for example Elizabeth Warren."
    },
    "election_year": {
      "type": "integer",
      "description": "Two-year election cycle, for example 2024. Defaults to the FEC's current cycle."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "candidate_name",
    "office",
    "party",
    "state",
    "district",
    "incumbent_challenger_open_seat",
    "cycle",
    "total_raised",
    "total_spent",
    "cash_on_hand",
    "debts",
    "individual_contributions",
    "currency",
    "coverage_end_date",
    "principal_campaign_committee",
    "candidate_link",
    "fec_candidate_id",
    "fec_committee_id"
  ],
  "properties": {
    "cycle": {
      "type": "integer"
    },
    "debts": {
      "type": [
        "number",
        "null"
      ]
    },
    "party": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "office": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "district": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_spent": {
      "type": [
        "number",
        "null"
      ]
    },
    "cash_on_hand": {
      "type": [
        "number",
        "null"
      ]
    },
    "total_raised": {
      "type": [
        "number",
        "null"
      ]
    },
    "candidate_link": {
      "type": "string"
    },
    "candidate_name": {
      "type": "string"
    },
    "fec_candidate_id": {
      "type": "string"
    },
    "fec_committee_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "coverage_end_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "individual_contributions": {
      "type": [
        "number",
        "null"
      ]
    },
    "principal_campaign_committee": {
      "type": [
        "string",
        "null"
      ]
    },
    "incumbent_challenger_open_seat": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
```

## See more

- [FEC API: Search federal candidates](https://fous.com/methods/fec.gov/search-candidates.md): 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.
- [SEC EDGAR API: Get company financials](https://fous.com/methods/sec.gov/get-company-financials.md): Looks up a public company by name or ticker on SEC EDGAR and returns its reported annual or quarterly financial figures from XBRL company facts. Quarterly flows are derived from year-to-date totals when no quarterly figure is filed. Unavailable figures are null.
- [Ballotpedia API: Get candidate profile](https://fous.com/methods/ballotpedia.org/get-candidate.md): Looks up a Ballotpedia candidate or officeholder profile by name, with election results, background and published links. An optional state narrows people with the same name; unreported details are left blank.
- [SEC EDGAR API: List company SEC filings](https://fous.com/methods/sec.gov/get-company-filings.md): Finds a public company by name or ticker in SEC EDGAR and lists its filings, newest first, optionally narrowed by filing type and filing date.
- [Capitol Trades API: Get politician trades](https://fous.com/methods/capitoltrades.com/get-politician-trades.md): See a member of Congress's disclosed trades from a chosen date, newest trade first. Capitol Trades provides up to three years of history; prices and other details may be unavailable for some trades.
- [Treasury OFAC API: Check sanctions](https://fous.com/methods/sanctionssearch.ofac.treas.gov/check-sanctions.md): Screens a name against the OFAC SDN and non-SDN sanctions lists. Returns scored entries with identifying details. Similar names are potential matches, not confirmed identities.
- [Fortune API: List Fortune 500 companies](https://fous.com/methods/fortune.com/list-fortune-500.md): Lists the Fortune 500 for a year. You can filter by industry or sector and by headquarters state. Each company comes with its public financial and company details.
- [SEC EDGAR API: Search filings by phrase](https://fous.com/methods/sec.gov/search-filings.md): Finds SEC EDGAR company filings that mention an exact phrase, optionally limited to a company, a filing category and a filing date range, ranked by search relevance; one entry per filing.
- [All FEC methods](https://fous.com/methods/fec.gov.md)
