# Charity Navigator Scraper (`crawlerbros/charity-navigator-scraper`) Actor

Scrape 1.8M+ US nonprofit charities from ProPublica's Nonprofit Explorer - search by keyword, NTEE category, state, tax code, or look up by EIN. Get full financials, filing history, IRS 990 PDF links, asset/revenue/expense data, and subsection codes.

- **URL**: https://apify.com/crawlerbros/charity-navigator-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Automation, Lead generation, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Charity Navigator Scraper

Scrape **1.8M+ US nonprofit charities** from the ProPublica Nonprofit Explorer database. Search by keyword, cause category, state, or tax status — or look up any charity directly by EIN to get its full financial history, IRS Form 990 filings, and PDF links.

### What you get

Each record includes:

| Field | Description |
|---|---|
| `name` | Official charity name |
| `ein` | IRS Employer Identification Number (9-digit) |
| `einFormatted` | EIN in XX-XXXXXXX format |
| `city`, `state` | Location |
| `zipCode` | ZIP code (detail mode) |
| `address` | Street address (detail mode) |
| `nteeCode` | NTEE category code (e.g. B20 = Elementary Education) |
| `subsectionCode` | IRS subsection code (3 = 501c3, 4 = 501c4, etc.) |
| `assetAmount` | Total assets (USD) |
| `incomeAmount` | Total income (USD) |
| `revenueAmount` | Total revenue (USD) |
| `totalRevenue` | Revenue from latest filing (detail mode) |
| `totalExpenses` | Expenses from latest filing |
| `totalAssets` | Assets from latest filing |
| `totalLiabilities` | Liabilities from latest filing |
| `totalContributions` | Contributions & grants received |
| `programRevenue` | Program service revenue |
| `officerCompensation` | Officer compensation amount |
| `pdfUrl` | Direct link to IRS Form 990 PDF |
| `filingYear` | Year of the filing |
| `rulingDate` | IRS ruling date |
| `sourceUrl` | ProPublica organization page URL |
| `scrapedAt` | Timestamp of data collection |

### Input options

#### Mode: Search (`mode=search`)

Search charities by keyword with optional filters:

```json
{
  "mode": "search",
  "query": "food bank",
  "state": "TX",
  "nteeCode": "K",
  "maxItems": 50
}
````

#### Mode: Lookup by EIN (`mode=byEIN`)

Fetch full org details + latest filing data for specific charities:

```json
{
  "mode": "byEIN",
  "eins": ["53-0196605", "13-1837418"],
  "includeFilings": true,
  "maxItems": 100
}
```

#### Mode: Top by Revenue (`mode=topByRevenue`)

Get largest nonprofits sorted by revenue:

```json
{
  "mode": "topByRevenue",
  "state": "CA",
  "nteeCode": "E",
  "maxItems": 25
}
```

### Input parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | string | **Required.** `search`, `byEIN`, or `topByRevenue` |
| `query` | string | Search query for `search` mode |
| `eins` | array | List of EINs for `byEIN` mode |
| `state` | string | Filter by state (2-letter code) |
| `nteeCode` | string | NTEE major category (A–Z) |
| `cCode` | string | Tax status code (3=501c3, 4=501c4, etc.) |
| `includeFilings` | boolean | Emit individual filing records in `byEIN` mode |
| `maxItems` | integer | Max records to return (1–10,000, default 100) |

### Use cases

- **Donor research** — Find vetted nonprofits in a specific cause area and geography
- **Fundraising intelligence** — Identify top-revenue charities in your sector
- **Grant prospecting** — Research foundations by NTEE code and financial size
- **Competitive analysis** — Compare similar nonprofits by revenue, assets, and programs
- **Due diligence** — Pull full IRS filing history for any charity by EIN
- **Data journalism** — Analyze nonprofit sector trends across states and categories

### NTEE categories

| Code | Category |
|---|---|
| A | Arts, Culture & Humanities |
| B | Education |
| C | Environment |
| D | Animal-Related |
| E | Health Care |
| F | Mental Health |
| G | Medical Diseases & Disorders |
| H | Medical Research |
| K | Food, Agriculture & Nutrition |
| L | Housing & Shelter |
| O | Youth Development |
| P | Human Services |
| T | Philanthropy & Grantmaking |

### FAQ

**Is this free to use?**
Yes — no API key or login required. Data is sourced from ProPublica's publicly accessible Nonprofit Explorer, which covers all IRS-registered tax-exempt organizations.

**How many charities are available?**
Over 1.8 million IRS-recognized tax-exempt organizations in the United States.

**How current is the data?**
Data is updated as new IRS Form 990 filings are processed. Most records include filings through 2022–2023.

**What is an NTEE code?**
The National Taxonomy of Exempt Entities (NTEE) classifies nonprofits into 26 major categories (A–Z) with subcategories (e.g. B20 = Elementary & Secondary Education).

**Can I get PDF copies of Form 990 filings?**
Yes — use `mode=byEIN` to retrieve `pdfUrl` for each filing year.

**What's the difference between `incomeAmount` and `totalRevenue`?**
`incomeAmount` is the IRS master file value (search mode); `totalRevenue` comes from the detailed Form 990 filing (byEIN mode). They represent the same metric but from different data sources.

### Data source

Data is sourced from [ProPublica's Nonprofit Explorer](https://projects.propublica.org/nonprofits/), which aggregates IRS Form 990 filings for all registered US tax-exempt organizations.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

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

Free-text search query (charity name, mission, cause). Used in mode=search.

## `eins` (type: `array`):

List of IRS Employer Identification Numbers (e.g. '53-0196605' or '530196605'). Used in mode=byEIN.

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

Filter to a US state (2-letter code, e.g. CA, NY, TX).

## `nteeCode` (type: `string`):

National Taxonomy of Exempt Entities major category (e.g. A=Arts, B=Education, C=Environment, E=Health, etc.).

## `cCode` (type: `string`):

IRS tax-exempt subsection code. 3 = 501(c)(3) public charities (most common), 4 = 501(c)(4) civic leagues, 6 = 501(c)(6) business leagues, etc.

## `includeFilings` (type: `boolean`):

When mode=byEIN: also emit individual Form 990 filing records (one per year). Ignored in other modes.

## `maxItems` (type: `integer`):

Maximum number of records to return (1â€“10000).

## Actor input object example

```json
{
  "mode": "search",
  "query": "education",
  "includeFilings": false,
  "maxItems": 100
}
```

# Actor output Schema

## `charities` (type: `string`):

Dataset containing all scraped nonprofit charity records.

# 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 = {
    "mode": "search",
    "query": "education",
    "includeFilings": false,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/charity-navigator-scraper").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 = {
    "mode": "search",
    "query": "education",
    "includeFilings": False,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/charity-navigator-scraper").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 '{
  "mode": "search",
  "query": "education",
  "includeFilings": false,
  "maxItems": 100
}' |
apify call crawlerbros/charity-navigator-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/charity-navigator-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Charity Navigator Scraper",
        "description": "Scrape 1.8M+ US nonprofit charities from ProPublica's Nonprofit Explorer - search by keyword, NTEE category, state, tax code, or look up by EIN. Get full financials, filing history, IRS 990 PDF links, asset/revenue/expense data, and subsection codes.",
        "version": "1.0",
        "x-build-id": "VcF9P2j8MuTAwe2Wb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~charity-navigator-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-charity-navigator-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~charity-navigator-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-charity-navigator-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~charity-navigator-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-charity-navigator-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byEIN",
                            "topByRevenue"
                        ],
                        "type": "string",
                        "description": "What to fetch.",
                        "default": "search"
                    },
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Free-text search query (charity name, mission, cause). Used in mode=search."
                    },
                    "eins": {
                        "title": "EINs (mode=byEIN)",
                        "type": "array",
                        "description": "List of IRS Employer Identification Numbers (e.g. '53-0196605' or '530196605'). Used in mode=byEIN.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "state": {
                        "title": "State",
                        "enum": [
                            "",
                            "AL",
                            "AK",
                            "AZ",
                            "AR",
                            "CA",
                            "CO",
                            "CT",
                            "DE",
                            "FL",
                            "GA",
                            "HI",
                            "ID",
                            "IL",
                            "IN",
                            "IA",
                            "KS",
                            "KY",
                            "LA",
                            "ME",
                            "MD",
                            "MA",
                            "MI",
                            "MN",
                            "MS",
                            "MO",
                            "MT",
                            "NE",
                            "NV",
                            "NH",
                            "NJ",
                            "NM",
                            "NY",
                            "NC",
                            "ND",
                            "OH",
                            "OK",
                            "OR",
                            "PA",
                            "RI",
                            "SC",
                            "SD",
                            "TN",
                            "TX",
                            "UT",
                            "VT",
                            "VA",
                            "WA",
                            "WV",
                            "WI",
                            "WY",
                            "DC"
                        ],
                        "type": "string",
                        "description": "Filter to a US state (2-letter code, e.g. CA, NY, TX)."
                    },
                    "nteeCode": {
                        "title": "NTEE Category",
                        "enum": [
                            "",
                            "A",
                            "B",
                            "C",
                            "D",
                            "E",
                            "F",
                            "G",
                            "H",
                            "I",
                            "J",
                            "K",
                            "L",
                            "M",
                            "N",
                            "O",
                            "P",
                            "Q",
                            "R",
                            "S",
                            "T",
                            "U",
                            "V",
                            "W",
                            "X",
                            "Y",
                            "Z"
                        ],
                        "type": "string",
                        "description": "National Taxonomy of Exempt Entities major category (e.g. A=Arts, B=Education, C=Environment, E=Health, etc.)."
                    },
                    "cCode": {
                        "title": "Tax Status (501c code)",
                        "enum": [
                            "",
                            "3",
                            "4",
                            "5",
                            "6",
                            "7",
                            "8",
                            "10",
                            "19"
                        ],
                        "type": "string",
                        "description": "IRS tax-exempt subsection code. 3 = 501(c)(3) public charities (most common), 4 = 501(c)(4) civic leagues, 6 = 501(c)(6) business leagues, etc."
                    },
                    "includeFilings": {
                        "title": "Include filing history",
                        "type": "boolean",
                        "description": "When mode=byEIN: also emit individual Form 990 filing records (one per year). Ignored in other modes.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of records to return (1â€“10000).",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
