Openfec Search Expenditures
openfec_search_expendituresSearch independent expenditures (Schedule E) — outside spending supporting or opposing federal candidates. Covers Super PACs, party committees, and other groups. Use itemized mode for individual expenditure records, or by_candidate for aggregated totals per candidate; by_candidate needs either a candidate_id or a full race scope (candidate_office alone for President, plus candidate_office_state for Senate, plus candidate_office_district as well for House).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "openfec_search_expenditures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Query mode. "itemized" returns individual expenditure records (keyset pagination). "by_candidate" returns aggregated totals per candidate by committee (page-based), largest total first. | itemized |
| page | No | Page number (1-indexed) for by_candidate mode. Explicit page is rejected in itemized mode, which paginates with cursor. Defaults to 1 for by_candidate. | |
| sort | No | Sort field. A "-" prefix sorts descending: use "-expenditure_amount" for the largest outside spending first, since the ascending form leads with the most negative rows (corrections and voided entries). Itemized only; OpenFEC sorts by "-expenditure_date" when omitted. | |
| cycle | No | Two-year election cycle (e.g., 2024). Even years only. Itemized mode defaults to the current cycle when omitted — Schedule E spans all history and an unscoped scan times out upstream. Pass an explicit cycle to search an earlier period. In by_candidate mode the cycle names the election, and election_full decides whether the totals cover the full election period ending in it (4yr president, 6yr senate, 2yr house) or only this two-year cycle. | |
| cursor | No | Opaque pagination cursor from a previous response of this tool. Itemized mode only (keyset pagination). Valid only for an otherwise-identical call — changing any other argument, including sort, rejects the cursor; omit it to start over. | |
| max_date | No | Latest expenditure date (YYYY-MM-DD). Itemized only. | |
| min_date | No | Earliest expenditure date (YYYY-MM-DD). Itemized only. | |
| per_page | No | Results per page. | |
| is_notice | No | Which Schedule E filings to read. Omitted returns both 24/48-hour notices and periodic-report rows, which overlap: most spending filed on a notice is reported again on the next periodic report of the same spender, so never add the two kinds together. false returns periodic-report rows only, which sum once memo entries (memo_code "X") are left out. true returns 24/48-hour notices only — the newest spending, filed before it reaches a periodic report. Itemized only. | |
| max_amount | No | Maximum expenditure amount in dollars. Itemized only. | |
| min_amount | No | Minimum expenditure amount in dollars. Itemized only. | |
| payee_name | No | Full-text payee name search. Itemized only. | |
| most_recent | No | Only the most recent version of amended filings. Itemized only — by_candidate rejects it. Defaults to true in itemized mode when omitted; pass false to see superseded versions of amended filings. | |
| candidate_id | No | Targeted candidate ID (e.g., P00003392). Get IDs from openfec_search_candidates results. | |
| committee_id | No | Spending committee ID (e.g., C00703975). Get IDs from openfec_search_committees results. | |
| election_full | No | by_candidate only: expand cycle to the full election period (4yr president, 6yr senate, 2yr house) instead of the two-year cycle alone. Defaults to true when omitted; itemized mode rejects it, since that endpoint has no such parameter. Carries no schema default, so an explicit value is distinguishable from an omission. | |
| support_oppose | No | S = support, O = oppose. Filter by whether the expenditure supports or opposes the candidate. | |
| candidate_party | No | Party code as OpenFEC files it, up to three characters (e.g., DEM, REP, LIB, W). Filters on the party of the targeted candidate. Itemized only — by_candidate rejects it, since the aggregate endpoint has no party filter. | |
| candidate_office | No | Office of the targeted candidate: H=House, S=Senate, P=President. In by_candidate mode this scopes a whole race: P stands alone, S also needs candidate_office_state, H also needs candidate_office_state and candidate_office_district. | |
| candidate_office_state | No | Two-letter state code of the targeted race. Required alongside candidate_office=H or candidate_office=S in by_candidate mode; leave it off for candidate_office=P, whose aggregate rows carry no state and match nothing when one is supplied. | |
| candidate_office_district | No | Two-digit House district of the targeted race (e.g., "09"). Required alongside candidate_office=H and candidate_office_state in by_candidate mode; Senate and presidential rows carry no district and match nothing when one is supplied. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Query mode as the server resolved it. Row shapes differ by mode — itemized rows are individual expenditures, by_candidate rows are per-candidate totals — so read this rather than inferring the shape from the fields present. | |
| count | No | Total matching independent expenditures (itemized mode). Check count_is_approximate before quoting it as a figure. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance when the response needs context: how to broaden a search that matched nothing, which requested position ran out when expenditures did match, that the total is an estimate, how many rows on an itemized page that mixes them with other rows are 24/48-hour notices or memo entries and not to be summed with the rest, or — by_candidate in the current cycle — that spending filed only on 24/48-hour notices is missing from the totals, with the itemized call that lists it. Several apply at once as sentences of one notice. | |
| results | No | Expenditure result set; itemized records or per-candidate aggregates depending on mode. | |
| committee | No | The committee every row in this response belongs to, carried once in full instead of repeated in each row. Present only when the query was scoped to a single committee_id. A row whose committee record differs from this one — the same committee's record for another cycle — keeps its own. | |
| committees | No | Spending committees the itemized rows reference, keyed by each row's committee_id: every distinct spender once, in full, instead of a copy on each row. Present on itemized pages not scoped to one committee_id. A row whose record differs from its ID's entry (the same committee's record for another cycle) keeps its own. Absent when no row carries one. | |
| pagination | No | Page-based pagination info (by_candidate mode only). | |
| totalCount | No | Total matching expenditures or per-candidate aggregates. | |
| next_cursor | No | Pagination cursor for the next page of itemized results. Null when no more pages. | |
| search_criteria | No | Echo of the search filters this call applied, as the server parsed them, minus paging arguments. Always present — compare it against what you sent to confirm every filter was honoured. | |
| count_is_approximate | No | True when OpenFEC reports count as an estimate rather than a tally, which it does on its highest-volume queries. Absent means the count is a tally. |