Openfec Search Contributions
openfec_search_contributionsSearch itemized contributions (Schedule A) or get aggregate breakdowns by size, state, employer, or occupation. Use to answer "who is funding this committee?" or "where has this donor given?" Itemized mode needs a recipient committee_id or a donor: contributor_id, contributor_name, or contributor_employer. Aggregate by_size/by_state can use candidate_id instead of committee_id.
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_contributions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Query mode. "itemized" returns individual contribution records (keyset pagination). "by_size" aggregates by contribution size bucket. "by_state" aggregates by contributor state. "by_employer" aggregates by employer. "by_occupation" aggregates by occupation. Without committee_id or candidate_id, by_size and by_state return one row per committee and cycle across every committee on file, not a combined breakdown. | itemized |
| page | No | Page number (1-indexed) for aggregate modes. Explicit page is rejected in itemized mode, which paginates with cursor. Defaults to 1 for aggregates. | |
| sort | No | Sort field. A "-" prefix sorts descending: use "-contribution_receipt_amount" for the largest receipts first, since the ascending form leads with the most negative rows (refunds, reattributions, redesignations). Itemized only; OpenFEC sorts by "-contribution_receipt_date" when omitted. | |
| cycle | No | Two-year election cycle (e.g., 2024). Even years only. Defaults to current cycle for itemized mode and for candidate-scoped by_size/by_state, where it names the election: those totals cover the full election period ending in it (4yr president, 6yr senate, 2yr house), not this two-year cycle alone. | |
| 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 contribution date (YYYY-MM-DD). Itemized only. | |
| min_date | No | Earliest contribution date (YYYY-MM-DD). Itemized only. | |
| per_page | No | Results per page. | |
| max_amount | No | Maximum contribution amount in dollars. Itemized only. | |
| min_amount | No | Minimum contribution amount in dollars. Itemized only. | |
| candidate_id | No | Candidate ID (e.g., P00003392). Get IDs from openfec_search_candidates results. Enables by_size and by_state aggregates without a committee_id; those cover the full election period ending in cycle (4yr president, 6yr senate, 2yr house). | |
| committee_id | No | Receiving committee ID (e.g., C00703975). Get IDs from openfec_search_committees results. In itemized mode it scopes the search on its own or narrows a donor scope to gifts to this committee. | |
| is_individual | No | Only individual contributions (excludes committee-to-committee transfers). Itemized only. | |
| contributor_id | No | FEC committee ID of a registered donor (C + eight digits): the receipts recipients reported from it. Earmarked contributions carry the conduit ID here (e.g. ActBlue, C00401224) with the individual in contributor_name. Itemized only. | |
| contributor_zip | No | ZIP code prefix (starts-with match). Itemized only. | |
| contributor_city | No | Contributor city. Itemized only. | |
| contributor_name | No | Full-text donor name search. Itemized only; scopes the search on its own. Without committee_id, a common name can time out upstream — add committee_id or a more specific name. | |
| contributor_state | No | Two-letter state code (e.g., CA). Itemized only. | |
| contributor_employer | No | Full-text employer search. Itemized only; scopes the search on its own. Without committee_id, an employer scan can time out upstream — add committee_id to narrow it. | |
| contributor_occupation | No | Full-text occupation search. Itemized only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Query mode as the server resolved it. "by_size" and "by_state" resolve to "by_size_candidate" / "by_state_candidate" when scoped by candidate_id — a different endpoint with different row shapes — so read this rather than assuming the mode you sent. | |
| count | No | Total matching contributions (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 contributions did match, that an unscoped by_size or by_state page lists per-committee buckets, that the total is an estimate, or how many rows on the page are memo entries not to sum with the rest. | |
| results | No | Contribution result set; itemized records or aggregate buckets 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 | Recipient committee records on an itemized page scoped by donor without committee_id, keyed by each row's committee_id: every distinct recipient once, in full. The rows' flat committee_name is null, so this is where each recipient's name lives. Absent when committee_id scoped the page (see committee) or no row carries a record. | |
| pagination | No | Page-based pagination info (aggregate modes only). | |
| totalCount | No | Total matching contributions or aggregate rows. | |
| 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. | |
| contributor_committees | No | Donor records for donors that are themselves registered committees, keyed by each row's contributor_id: every distinct donor committee once, in full. A row whose record differs from its ID's entry keeps its own. Absent when no row carries one. |