# US Nonprofits & IRS Form 990 Financials Scraper (`litezero/nonprofit-irs-990-scraper`) Actor

Search US 501(c)(3) charities and nonprofit foundations via ProPublica Nonprofit Explorer. Extract EIN, total revenue, asset valuations, NTEE codes, and direct links to IRS Form 990 PDF filings.

- **URL**: https://apify.com/litezero/nonprofit-irs-990-scraper.md
- **Developed by:** [LiteZero](https://apify.com/litezero) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 item scrapeds

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

## 🏛️ US Nonprofits & IRS Form 990 Financials Scraper

Extract annual revenues, total assets, executive compensation data, tax exempt subsections, and official IRS Form 990 PDF filings for 1.8M+ US charities and foundations from the [ProPublica Nonprofit Explorer](https://projects.propublica.org/nonprofits/) database.

***

### ⚡ Key Capabilities

- **1.8 Million+ US Nonprofits**: Complete coverage across 501(c)(3) public charities, private foundations, trade associations, and civic leagues.
- **Deep Financial Intelligence**: Extracts total revenue, total assets, tax expenses, and annual growth figures.
- **Direct IRS Form 990 PDF Links**: Direct download links to official IRS Form 990, 990-EZ, and 990-PF tax return filings.
- **State & Industry Filtering**: Filter by US state code (`CA`, `NY`, `TX`) and National Taxonomy of Exempt Entities (NTEE) categories.
- **Pay-Per-Result Pricing**: Only pay **$1.50 per 1,000 organizations** extracted.

***

### 📊 Comparison with Alternatives

| Feature | 🏛️ US Nonprofits Scraper | GuideStar / Candid | IRS Direct Bulk Files |
|---|:---:|:---:|:---:|
| **Pricing** | **$1.50 / 1,000 orgs** | $2,000 - $10,000 / yr | Free, but complex XML |
| **PDF Downloads** | Direct PDF URLs included | Paywalled behind subscription | Raw XML only |
| **Search Speed** | Instant REST search by name/EIN | Slower UI portal | Requires massive ETL pipeline |
| **Output Format** | Clean JSON / CSV / Excel | Web view / limited exports | Hundreds of gigabytes raw |

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|:---:|:---:|---|
| `queries` | `Array<string>` | `["Gates Foundation", "food bank"]` | Organization names, keywords, or 9-digit EINs. |
| `state` | `string` | `""` | Optional two-letter US state filter (e.g. `WA`, `NY`). |
| `fetchFullProfiles` | `boolean` | `true` | Fetch full revenue, assets, and Form 990 filing links. |
| `maxItems` | `number` | `30` | Maximum number of organizations to retrieve. |

***

### 📤 Output Sample

```json
{
  "ein": 562618866,
  "formattedEin": "56-2618866",
  "name": "Gates Foundation",
  "city": "Seattle",
  "state": "WA",
  "subseccd": "501(c)(3)",
  "nteeCode": "T20",
  "totalRevenue": 6500000000,
  "totalAssets": 78673465696,
  "recentFilings": [
    {
      "taxYear": 2023,
      "taxPeriod": "2023-12",
      "formType": "990PF",
      "totalRevenue": 6500000000,
      "totalAssets": 78673465696,
      "pdfUrl": "https://s3.amazonaws.com/irs-form-990/..."
    }
  ],
  "proPublicaUrl": "https://projects.propublica.org/nonprofits/organizations/562618866",
  "scrapedAt": "2026-10-03T08:00:00.000Z"
}
```

# Actor input Schema

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

Keywords, organization names, or 9-digit EINs (e.g. 'Gates Foundation', 'food bank', 'animal shelter').

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

Two-letter US state code (e.g. 'CA', 'NY', 'WA').

## `fetchFullProfiles` (type: `boolean`):

Whether to fetch full revenue, assets, executive compensation, and 990 PDF download links.

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

Maximum number of nonprofit organizations to retrieve.

## Actor input object example

```json
{
  "queries": [
    "Gates Foundation",
    "food bank"
  ],
  "fetchFullProfiles": true,
  "maxItems": 30
}
```

# Actor output Schema

## `results` (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": [
        "Gates Foundation",
        "food bank"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("litezero/nonprofit-irs-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 = { "queries": [
        "Gates Foundation",
        "food bank",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("litezero/nonprofit-irs-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 '{
  "queries": [
    "Gates Foundation",
    "food bank"
  ]
}' |
apify call litezero/nonprofit-irs-990-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,litezero/nonprofit-irs-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/EWoD7SPhXK41KH08X/builds/DzXO6x9YaWOIQoXgq/openapi.json
