# Political Donations Search (`hanamira/political-donations-search`) Actor

Search FEC campaign finance data. Find political donations by donor name or employer. Look up candidate fundraising and PAC finances. Filter by state and election cycle (2016-2024). Official public records from the Federal Election Commission. Track money in politics.

- **URL**: https://apify.com/hanamira/political-donations-search.md
- **Developed by:** [hannah mira](https://apify.com/hanamira) (community)
- **Categories:** Agents, Developer tools, Other
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Political Donations Search

Search FEC campaign finance data. Find political donations, donors, candidates, and committees.

### Why Use This Actor?

Track money in politics. See who's funding campaigns, how much candidates are raising, and where the money comes from. Data sourced directly from the Federal Election Commission (FEC).

#### Who This Is For

- **Journalists** - Investigate campaign finance, follow the money
- **Researchers** - Study political donations and donor patterns
- **Campaigns** - Research opponent fundraising and donor bases
- **Nonprofits** - Monitor political spending and influence
- **Citizens** - See who's funding your representatives

### Features

- **Donor Search** - Find individual contributions by name, employer, or location
- **Candidate Search** - Look up candidates and their fundraising
- **Committee Search** - Find PACs, Super PACs, and campaign committees
- **Filter by Cycle** - Search 2024, 2022, 2020, and earlier elections
- **State Filtering** - Narrow results by state

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchType` | string | `donors`, `candidates`, or `committees` |
| `query` | string | Name to search for |
| `state` | string | Optional: 2-letter state code (CA, TX, NY) |
| `employer` | string | Optional: Filter donors by employer |
| `cycle` | string | Election cycle: 2024, 2022, 2020, 2018, 2016 |
| `maxResults` | integer | Max results (1-1000, default: 100) |

### Output

#### Donation Results

```json
{
  "type": "donation",
  "donorName": "MUSK, ELON",
  "amount": 40495178,
  "date": "2024-10-10",
  "employer": "SPACEX",
  "occupation": "CEO",
  "city": "AUSTIN",
  "state": "TX",
  "recipientName": "AMERICA PAC",
  "party": "REP"
}
```

#### Candidate Results

```json
{
  "type": "candidate",
  "name": "TRUMP, DONALD J.",
  "party": "REPUBLICAN PARTY",
  "office": "President",
  "state": "US",
  "status": "C"
}
```

### Example Searches

#### Find donations from a specific person

```json
{
  "searchType": "donors",
  "query": "Elon Musk",
  "cycle": "2024"
}
```

#### Find tech company employee donations

```json
{
  "searchType": "donors",
  "query": "",
  "employer": "Google",
  "state": "CA",
  "cycle": "2024"
}
```

#### Look up a candidate

```json
{
  "searchType": "candidates",
  "query": "Biden",
  "cycle": "2024"
}
```

### Data Source

All data comes from the **Federal Election Commission (FEC)** official API. This is public information required by law to be disclosed.

### Pricing

Pay per result - only pay for what you get:

- **Actor start**: $0.00005 per run
- **Per result**: $0.004 per donation/candidate/committee

| Search | Results | Cost |
|--------|---------|------|
| 10 donations | 10 | $0.04 |
| 100 donations | 100 | $0.40 |
| 500 donations | 500 | $2.00 |

# Actor input Schema

## `searchType` (type: `string`):

What to search for: individual donors, candidates, or committees.

## `query` (type: `string`):

Name to search for. Examples: 'Elon Musk', 'Biden', 'ActBlue'

## `state` (type: `string`):

Filter by state (2-letter code). Example: CA, TX, NY

## `employer` (type: `string`):

Filter donors by employer. Example: 'Google', 'Tesla'

## `cycle` (type: `string`):

Election cycle year (even years). Example: 2024, 2022, 2020

## `maxResults` (type: `integer`):

Maximum number of results to return.

## Actor input object example

```json
{
  "searchType": "donors",
  "query": "Elon Musk",
  "cycle": "2024",
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing search results

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "Elon Musk"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hanamira/political-donations-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "query": "Elon Musk" }

# Run the Actor and wait for it to finish
run = client.actor("hanamira/political-donations-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "Elon Musk"
}' |
apify call hanamira/political-donations-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hanamira/political-donations-search",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/yaPME6gH6RRf2Jfxh/builds/qZ1EJkYHzpjvcCoDv/openapi.json
