# IRS 990 Nonprofit Explorer - EIN & Keyword Search (`zhucl1006/irs-990-nonprofit-explorer`) Actor

Search US nonprofits and Form 990 filings via the public ProPublica Nonprofit Explorer API v2. Batch EIN lookup + keyword search in one Actor, with optional organization detail and latest filing financials (revenue, expenses, assets, liabilities, PDF). Flat BD-friendly schema. No API key.

- **URL**: https://apify.com/zhucl1006/irs-990-nonprofit-explorer.md
- **Developed by:** [leo zhu](https://apify.com/zhucl1006) (community)
- **Categories:** AI, Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 nonprofit org 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/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

## IRS 990 Nonprofit Explorer - EIN & Keyword Search

Search **US nonprofits and Form 990 filings** via the public [ProPublica Nonprofit Explorer API v2](https://projects.propublica.org/nonprofits/api/). Supports **keyword search** and **EIN batch lookup** in one Actor, with optional organization detail + latest filing summary (revenue, expenses, assets, liabilities, PDF). Flat, BD-ready schema. **No API key.**

Differentiates vs crowded Store peers by combining EIN batch + keyword search, optional filing enrichment, and a sales-friendly flat output under **$0.002 / org-result**.

### Who uses it

- **Nonprofit / foundation BD** teams building prospect lists by keyword, state, NTEE or 501(c) subsection.
- **KYB / due-diligence** workflows that need EIN → latest Form 990 financial snapshot + PDF link.
- **Grantmakers & researchers** screening organizations with public IRS filing totals.
- **Lead-gen agencies** enriching US nonprofit target lists without scraping login walls.

### Input

| Field | Description |
|---|---|
| `queries` | Keyword list for ProPublica `q` (e.g. `Red Cross`, `hospital`). |
| `eins` | Optional EIN batch (digits or `XX-XXXXXXX`). Direct `/organizations/{EIN}` lookups. |
| `state` | Optional 2-letter US state filter for keyword search (`state[id]`). |
| `ntee` | Optional NTEE major group 1–10 (`ntee[id]`). |
| `cCode` | Optional IRS subsection filter (`c_code[id]`), e.g. `3` = 501(c)(3). |
| `fetchDetails` | Default `true`. Attach address + latest filing financials/PDF per org. |
| `maxResults` | Cap unique orgs saved (default 10, max 100). |
| `maxPages` | Safety cap on search pages per keyword (default 2; 25 orgs/page). |
| `requestDelayMs` | Delay between API calls (default 200). |

Default input (Store auto-test) searches `Red Cross` with details on and returns up to 10 orgs. Empty input falls back to the same example.

```json
{
  "queries": ["Red Cross"],
  "eins": [],
  "state": "",
  "fetchDetails": true,
  "maxResults": 10,
  "maxPages": 2,
  "requestDelayMs": 200
}
```

EIN batch + state filter example:

```json
{
  "queries": ["hospital"],
  "eins": ["53-0196605", "13-5562208"],
  "state": "NY",
  "cCode": 3,
  "fetchDetails": true,
  "maxResults": 25
}
```

### Output (one row per unique EIN)

```json
{
  "status": "ok",
  "ein": "530196605",
  "strein": "53-0196605",
  "name": "American National Red Cross",
  "subName": "...",
  "address": "431 18TH ST NW",
  "city": "Washington",
  "state": "DC",
  "zip": "20006-5310",
  "subsectionCode": 3,
  "nteeCode": "P210",
  "latestTaxYear": 2023,
  "totalRevenue": 3217077611,
  "totalExpenses": 2971106889,
  "totalAssets": 4028321133,
  "totalLiabilities": 1008326202,
  "formType": "990",
  "pdfUrl": "https://projects.propublica.org/nonprofits/download-filing?path=...",
  "propublicaUrl": "https://projects.propublica.org/nonprofits/organizations/530196605",
  "sourceQuery": "q=Red Cross",
  "scrapedAt": "2026-11-09T02:00:00Z"
}
```

Duplicates across queries / EIN lists are skipped by EIN. Error rows (failed search or EIN) are pushed **without** charge. `RUN_SUMMARY` in the key-value store shows totals, failed lookups and detail-fetch failures.

### Pricing (pay per event)

- **$0.002 per organization result** (`org-result`) — charged only for unique orgs saved to the Dataset.
- Tiny start fee per run (`apify-actor-start`). Failed API calls / error rows are not charged. Set "Maximum cost per run" to cap spend.

### Data source & license

- Data from **ProPublica Nonprofit Explorer** API v2, which redistributes IRS EO BMF and Form 990 extracts. See [ProPublica Nonprofit Explorer API](https://projects.propublica.org/nonprofits/api/) and [IRS Tax Exempt Organization Search](https://www.irs.gov/charities-non-profits/tax-exempt-organization-search).
- This Actor is **not affiliated** with ProPublica or the IRS. Output is a technical aid for research and BD — always verify against official IRS / ProPublica sources before commercial or compliance decisions. Focus is organizational + filing financials (public IRS data), not personal officer lists.

# Actor input Schema

## `queries` (type: `array`):

Free-text keywords for ProPublica Nonprofit Explorer search (q). Examples: Red Cross, hospital, foundation. Combined with optional state / NTEE / subsection filters.

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

Employer Identification Numbers to look up directly (digits or XX-XXXXXXX). Each EIN hits /organizations/{EIN}.json. Deduped with search hits by EIN.

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

Optional 2-letter US state filter for keyword search (API param state\[id]), e.g. NY, CA, TX. Ignored for direct EIN lookups.

## `ntee` (type: `integer`):

Optional NTEE major category id for keyword search (API param ntee\[id], 1–10). Leave empty for any.

## `cCode` (type: `integer`):

Optional IRS subsection / c_code filter for keyword search (API param c_code\[id]). Example: 3 = 501(c)(3).

## `fetchDetails` (type: `boolean`):

When true, call /organizations/{EIN}.json for each org and attach address + latest filing summary (revenue, expenses, assets, liabilities, PDF). Slightly slower; recommended for BD use.

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

Stop after this many unique organizations (deduped by EIN) across keyword searches and EIN lookups.

## `maxPages` (type: `integer`):

Safety cap on ProPublica search pages per keyword (25 orgs/page).

## `requestDelayMs` (type: `integer`):

Polite delay between paginated search / detail requests.

## Actor input object example

```json
{
  "queries": [
    "Red Cross"
  ],
  "eins": [],
  "state": "",
  "fetchDetails": true,
  "maxResults": 10,
  "maxPages": 2,
  "requestDelayMs": 200
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

# 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 = {
    "queries": [
        "Red Cross"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhucl1006/irs-990-nonprofit-explorer").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 = {
    "queries": ["Red Cross"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("zhucl1006/irs-990-nonprofit-explorer").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 '{
  "queries": [
    "Red Cross"
  ],
  "maxResults": 10
}' |
apify call zhucl1006/irs-990-nonprofit-explorer --silent --output-dataset

```

## MCP server setup

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

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/dLSbXP6jKfgEcJo2w/builds/WXSFyP3rMuen4dWkp/openapi.json
