# Nonprofit Leads: IRS Charities & Foundations by State (`pandadad0214/nonprofit-leads-irs`) Actor

Build nonprofit and foundation lead lists from the official IRS Exempt Organizations file. EIN, name, address, in-care-of contact, NTEE cause, 501(c) type, ruling year, revenue and assets; filter by state, city, ZIP, cause and size. Excel and CSV.

- **URL**: https://apify.com/pandadad0214/nonprofit-leads-irs.md
- **Developed by:** [Panda Federation](https://apify.com/pandadad0214) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Nonprofit Leads: IRS Charity & Foundation Lists by State and Cause

**Build nonprofit and foundation lead lists from the official IRS Exempt Organizations Business Master File.** Pick **states** and filter by **city, ZIP, cause (NTEE code), 501(c) type, public charity vs private foundation, revenue, assets and year of exemption**. Each row has the **EIN, name, street address, "in care of" contact, NTEE cause, organization type, ruling year, revenue, income and assets**, with links to the ProPublica 990 filings and the IRS record. **Excel and CSV. $0.001 per nonprofit.**

**No scraping and no API keys: it reads the IRS's own public-domain files at run time (refreshed monthly by the IRS).**

- 🗺️ **By state, city or ZIP:** every registered exempt organization in your territory
- 🎯 **By cause:** NTEE codes like P (human services), B (education), E (health), T (grantmaking foundations)
- 💰 **By size:** minimum/maximum revenue and assets, sorted largest first
- 🆕 **New nonprofits:** "exempt since 2025" for freshly approved organizations that need banking, insurance, software and accounting
- 🏛️ **Charity vs foundation:** separate grant-making private foundations from fundraising public charities
- 💸 **$0.001 per nonprofit**; no-match runs are free

### Who it's for

- **Nonprofit software and service vendors** (CRM, fundraising, accounting, payroll, insurance): prospect lists by size and cause
- **Fundraising consultants and grant writers:** charities of the right size in your city
- **Grant seekers:** private foundations in your state, sorted by assets
- **Banks and credit unions:** newly exempt organizations near your branches
- **Researchers and journalists:** count and compare nonprofits by cause and region

### How to use it

1. Click **Try for free**.
2. Add one or more **states** (AZ, TX, CA…), then optional **cities, ZIPs, causes and revenue**.
3. Click **Start**. Download **NONPROFITS_XLSX** or **NONPROFITS_CSV** from **Storage → Key-value store**, or use the dataset via API.

#### Input example

```json
{
  "states": ["AZ"],
  "cities": ["Phoenix"],
  "nteeCodes": ["P"],
  "minRevenue": 1000000,
  "maxResults": 500
}
```

### Task examples

- **Private foundations in Texas by assets (grant prospects):** `{"states": ["TX"], "orgType": "privateFoundation", "sortBy": "assets", "minAssets": 1000000}`
- **New nonprofits for a bank or software pitch:** `{"states": ["FL"], "rulingYearFrom": 2025, "sortBy": "newest"}`
- **Mid-size education charities in a metro:** `{"states": ["CA"], "zipPrefixes": ["900", "902"], "nteeCodes": ["B"], "minRevenue": 1000000, "maxRevenue": 10000000}`
- **All food banks in the Midwest:** `{"states": ["IL", "IN", "OH", "MI", "WI"], "nteeCodes": ["K31"]}`
- **Trade associations (501(c)(6)):** `{"states": ["DC"], "only501c3": false, "nameContains": "association"}`

### Output example

```json
{
  "ein": "86-0338886",
  "name": "Hospice of the Valley",
  "inCareOf": "Payroll Department",
  "street": "1510 E Flower St",
  "city": "Phoenix",
  "state": "AZ",
  "zip": "85014-5656",
  "nteeCode": "P740",
  "cause": "human services",
  "subsection": "501(c)(3)",
  "orgType": "public charity (broad public support)",
  "privateFoundation": false,
  "rulingYear": 1978,
  "rulingDate": "1978-02",
  "revenue": 244171708,
  "income": 244471135,
  "assets": 234515471,
  "sizeBand": "large (10M+)",
  "taxPeriod": "2025-09",
  "deductible": true,
  "propublicaUrl": "https://projects.propublica.org/nonprofits/organizations/860338886",
  "irsUrl": "https://apps.irs.gov/app/eos/details/?ein=860338886",
  "agentSummary": "Hospice of the Valley (EIN 86-0338886), 501(c)(3) public charity (broad public support) in Phoenix, AZ; cause: human services (P740); since 1978, revenue $244,171,708; in care of Payroll Department."
}
```

### Pricing

**$0.001 per nonprofit returned** (pay per event, plus Apify's tiny start fee). 1,000 nonprofits cost $1. Runs that match nothing cost nothing, and failed source calls are never charged. Set **Maximum results** or Apify's *maximum charge per run* to cap any run. Apify's free plan includes $5 of monthly credit.

### Use it from AI agents and code

- **MCP:** add this Actor to Claude, Cursor or any MCP client through the [Apify MCP server](https://mcp.apify.com) (`https://mcp.apify.com/?actors=pandadad0214/nonprofit-leads-irs`), then ask in plain English.
- **API:** `POST https://api.apify.com/v2/acts/pandadad0214~nonprofit-leads-irs/run-sync-get-dataset-items?token=YOUR_TOKEN` with the input JSON.
- Every row has an **`agentSummary`** line, and the **SUMMARY** record has a one-line **`takeaway`** plus `nextSteps`, so agents can answer without parsing every field.
- Schedule it (daily or weekly) in Apify and connect Zapier, Make, Slack, Google Sheets or a webhook to the dataset.

### FAQ

**Where do the numbers come from?** The IRS Business Master File: revenue, income and assets from the latest return the IRS processed (see `taxPeriod`). Organizations that file the 990-N postcard show no amounts.

**Does it include emails or phone numbers?** The IRS file has none. Use [Company Website Enricher](https://apify.com/pandadad0214/company-website-enricher) on their websites to add published contacts.

**What is "in care of"?** The person or office the IRS mails the organization at, often an officer or treasurer.

### More Panda Federation tools

- [Grants Finder](https://apify.com/pandadad0214/grants-finder): federal grants these nonprofits can apply for
- [Company Website Enricher](https://apify.com/pandadad0214/company-website-enricher): websites, emails and socials
- [Company Team & Decision-Maker Finder](https://apify.com/pandadad0214/company-team-finder): executive directors and board members
- Full catalog and MCP server: [Panda Federation Tools on GitHub](https://github.com/pandadad0214/panda-federation-tools)

*Built by Panda Federation. Questions or a custom version? Open an issue on the Actor's Issues tab.*

**Listed on:** [![Approved on SaaSHub](https://cdn-b.saashub.com/img/badges/approved-color.png?v=1)](https://www.saashub.com/panda-federation-tools?utm_source=badge\&utm_campaign=badge\&utm_content=panda-federation-tools\&badge_variant=color\&badge_kind=approved) [![Listed on Submit AI Tools](https://submitaitools.org/static_submitaitools/images/submitaitools.png)](https://submitaitools.org/pandadad0214-github-io-panda-federation-tools/)

# Actor input Schema

## `states` (type: `array`):

2-letter codes, up to 15 per run (one IRS file each), e.g. AZ, TX, DC.

## `cities` (type: `array`):

Optional, exact city names, e.g. Phoenix, Tucson.

## `zipPrefixes` (type: `array`):

Optional, e.g. 850, 85281.

## `nteeCodes` (type: `array`):

Optional NTEE letters or codes: A arts, B education, C environment, D animals, E health, F mental health, G diseases, P human services, L housing, O youth, S community, T grantmaking, X religion. E.g. P, B20, E22.

## `nameContains` (type: `string`):

Optional, e.g. food bank, YMCA.

## `only501c3` (type: `boolean`):

Off = include 501(c)(4) social welfare, (c)(6) trade associations and other exempt types.

## `orgType` (type: `string`):

Private foundations make grants; public charities raise money.

## `minRevenue` (type: `integer`):

Latest annual revenue the IRS has on file.

## `maxRevenue` (type: `integer`):

Optional.

## `minAssets` (type: `integer`):

Optional.

## `rulingYearFrom` (type: `integer`):

e.g. 2025 = organizations granted exemption in 2025 or later.

## `requireFinancials` (type: `boolean`):

Skip tiny organizations that file the 990-N postcard.

## `sortBy` (type: `string`):

Order before the maximum is applied.

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

You pay per nonprofit returned, so this also caps the cost. Default 500.

## Actor input object example

```json
{
  "states": [
    "AZ"
  ],
  "cities": [
    "Phoenix"
  ],
  "nteeCodes": [
    "P"
  ],
  "only501c3": true,
  "orgType": "any",
  "requireFinancials": false,
  "sortBy": "revenue",
  "maxResults": 500
}
```

# Actor output Schema

## `table` (type: `string`):

No description

## `xlsx` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `summary` (type: `string`):

Agent-friendly keys: `takeaway` (one-line result), counts, `nextStep` and `nextSteps`.

# 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 = {
    "states": [
        "AZ"
    ],
    "cities": [
        "Phoenix"
    ],
    "nteeCodes": [
        "P"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pandadad0214/nonprofit-leads-irs").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 = {
    "states": ["AZ"],
    "cities": ["Phoenix"],
    "nteeCodes": ["P"],
}

# Run the Actor and wait for it to finish
run = client.actor("pandadad0214/nonprofit-leads-irs").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "states": [
    "AZ"
  ],
  "cities": [
    "Phoenix"
  ],
  "nteeCodes": [
    "P"
  ]
}' |
apify call pandadad0214/nonprofit-leads-irs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pandadad0214/nonprofit-leads-irs"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2cZSdzkLhSA5lkZR3/builds/Py6mPLg9p3Z7bdIfp/openapi.json
