# Nonprofit 990 Scraper — Charity Financials & EINs (`hichemdev/nonprofit-990-scraper`) Actor

Scrape US nonprofits and their IRS Form 990 financials: EIN, name, address, NTEE and 501(c) classification, total revenue, expenses, assets, liabilities, officer compensation and links to filing PDFs. Search by keyword, state or category. Covers 1.8 million organizations. No API key.

- **URL**: https://apify.com/hichemdev/nonprofit-990-scraper.md
- **Developed by:** [Hichem Ben Moussa](https://apify.com/hichemdev) (community)
- **Categories:** Business, Lead generation, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 organizations

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 990 Scraper — Charity Financials, EINs & Officer Pay

Scrape **US nonprofit organizations and their IRS Form 990 financials** — total revenue, expenses, assets, liabilities and officer compensation — from ProPublica's Nonprofit Explorer, which covers more than **1.8 million** tax-exempt organizations.

Search by keyword, state or NTEE category and export EINs, addresses, 501(c) classifications, the latest filed financials and links to the original filing PDFs.

No API key required.

### What you get

| Field | Description |
|---|---|
| `ein` | Employer Identification Number — the unique nonprofit ID |
| `name` | Organization name |
| `city`, `state` | Location |
| `subsection` | 501(c) classification, e.g. *501(c)(3) Charitable* |
| `nteeCode` | Activity category (arts, education, health, human services…) |
| `latestFiscalYear` | Tax year of the most recent machine-readable filing |
| `formType` | 990, 990-EZ or 990-PF |
| `totalRevenue` | Total revenue for that year |
| `totalExpenses` | Total functional expenses |
| `totalAssets` | Assets at end of year |
| `totalLiabilities` | Liabilities at end of year |
| `netAssets` | Assets minus liabilities |
| `officerCompensation` | Compensation of current officers and directors |
| `pdfUrl` | The original scanned Form 990 |
| `url` | Profile on Nonprofit Explorer |

### Example input

```json
{
  "query": "food bank",
  "state": "CA",
  "maxOrganizations": 50
}
```

Search by cause instead of keyword by setting `nteeCategory`, or narrow to private foundations with `cCode`.

### Example output

```json
{
  "ein": "680480741",
  "name": "Yolo Food Bank",
  "city": "Woodland",
  "state": "CA",
  "subsection": "501(c)(3) Charitable",
  "latestFiscalYear": 2023,
  "formType": "990",
  "totalRevenue": 23338085,
  "totalExpenses": 22106339,
  "totalAssets": 15964502,
  "officerCompensation": 210533,
  "pdfUrl": "https://projects.propublica.org/nonprofits/download-filing?path=..."
}
```

### Who uses this

- **Fundraisers and grant seekers** — size a foundation's giving capacity before writing a proposal
- **Nonprofit benchmarking** — compare your overhead, reserves and pay against peers in your state and category
- **Donors and watchdogs** — check how much of a charity's revenue reaches its programs
- **Sales teams selling to nonprofits** — qualify prospects by budget, not guesswork
- **Journalists and researchers** — executive pay, sector concentration, year-over-year trends

### Why some organizations have no financials

Small nonprofits (generally under $50,000 in gross receipts) file the **Form 990-N e-Postcard**, which contains no financial detail at all. Those organizations still appear in results with their EIN, name, location and classification, but revenue and asset fields are `null`. That is a property of IRS filing rules, not a gap in the actor — expect it for roughly half of a broad keyword search, and almost none of a search restricted to large organizations.

Financials also lag: the most recent filing available is typically one to two years behind the current date, because that is when the IRS releases machine-readable data.

### Pricing

Pay per result. Each organization returned counts as one result, including the second request the actor makes to pull that organization's financials.

### Notes

- Data comes from ProPublica's Nonprofit Explorer, built on public IRS Form 990 filings.
- Officer compensation is the figure the organization itself reported on the 990; it excludes some benefits and deferred pay.
- This is an unofficial actor and is not affiliated with ProPublica or the IRS.

# Actor input Schema

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

Organization name or keyword, e.g. "food bank", "animal shelter", "Red Cross".

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

Two-letter US state code to restrict to, e.g. CA, NY, TX.

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

NTEE major group number (1-10) — the nonprofit sector classification, e.g. 1 = Arts & Culture, 3 = Environment, 5 = Health.

## `subsectionCode` (type: `string`):

IRS subsection code, e.g. 3 for 501(c)(3) charities, 4 for 501(c)(4), 6 for business leagues.

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

Look up specific EINs (tax IDs) directly, e.g. "530196605". Overrides the search filters.

## `includeFinancials` (type: `boolean`):

Fetch each organization's latest Form 990 for revenue, expenses, assets, liabilities and officer pay. Adds one request per organization.

## `maxOrganizations` (type: `integer`):

Maximum number of organizations to scrape.

## `proxyConfiguration` (type: `object`):

Optional. The ProPublica Nonprofit Explorer API is public and works without a proxy.

## Actor input object example

```json
{
  "query": "food bank",
  "eins": [],
  "includeFinancials": true,
  "maxOrganizations": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped items as JSON.

## `overview` (type: `string`):

Browse results in the Apify Console.

# 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": "food bank",
    "state": "",
    "nteeCode": "",
    "subsectionCode": "",
    "eins": [],
    "maxOrganizations": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("hichemdev/nonprofit-990-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 = {
    "query": "food bank",
    "state": "",
    "nteeCode": "",
    "subsectionCode": "",
    "eins": [],
    "maxOrganizations": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("hichemdev/nonprofit-990-scraper").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 '{
  "query": "food bank",
  "state": "",
  "nteeCode": "",
  "subsectionCode": "",
  "eins": [],
  "maxOrganizations": 15
}' |
apify call hichemdev/nonprofit-990-scraper --silent --output-dataset

```

## MCP server setup

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

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/66bd8NgAup6NOjvaq/builds/qOJsO2UDP2uXCKTcu/openapi.json
