# ProPublica Nonprofit Form 990 & Financials Scraper (`jaiveda/nonprofit-form-990-scraper`) Actor

Extract US 501(c)(3) nonprofit organization financial profiles, annual revenues, total assets, functional expenses, and official IRS Form 990 PDF links directly from ProPublica Nonprofit Explorer.

- **URL**: https://apify.com/jaiveda/nonprofit-form-990-scraper.md
- **Developed by:** [Bhavadharini](https://apify.com/jaiveda) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## ProPublica Nonprofit Form 990 & Financial Intelligence Scraper

Extract verified US 501(c)(3) nonprofit and private foundation financial profiles, annual revenues, total assets, functional expenses, executive officer compensation, and official IRS Form 990 PDF download links directly from **ProPublica Nonprofit Explorer**.

***

### 🎯 Key Features & Capabilities

- **IRS Tax Filing Intelligence:** Access official Form 990, 990-EZ, and 990-PF tax return disclosures filed by US tax-exempt organizations.
- **Granular Financial Metrics:** Extracts Total Revenue, Total Functional Expenses, Total Assets (End of Year), Net Income, and historical financial trends over multiple tax years.
- **Direct Form 990 PDF Links:** Retrieve verified direct URLs to the original IRS PDF filings for immediate compliance, auditing, or due diligence.
- **Targeted Search & Filtering:** Filter by keyword (e.g. `foundation`, `hospital`, `university`, `cancer`, `animal rescue`), US state (e.g. `NY`, `CA`, `TX`), 501(c) subsection, and minimum annual revenue thresholds.

***

### 💼 Commercial Use Cases

- **Wealth Management & Private Banking:** Identify large family foundations, trustees, and board members with substantial philanthropic endowments.
- **Executive Search & Compensation Benchmarking:** Analyze executive salaries, officer compensation, and leadership structures across hospital systems and universities.
- **B2B Non-Profit Tech & SaaS Sales:** Qualify nonprofit leads based on verifiable annual operating budgets and cash reserves before initiating sales conversations.
- **Philanthropy & Grant Due Diligence:** Evaluate financial health, program-to-expense ratios, and asset stability of potential grant recipients.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQuery` | String | `"foundation"` | Organization name or keyword (e.g., `foundation`, `hospital`, `university`). |
| `state` | String | `"NY"` | US state 2-letter code (e.g., `NY`, `CA`, `MA`, `TX`). Leave blank for nationwide. |
| `cCode` | Integer | `3` | IRS 501(c) subsection code (e.g., `3` for 501(c)(3) charities and foundations). |
| `minRevenue` | Integer | `100000` | Filter out organizations with annual revenue below this dollar amount (set to 0 for all). |
| `fetchFilingDetails` | Boolean | `true` | Fetch multi-year IRS filing records, assets, expenses, and PDF download URLs. |
| `maxItems` | Integer | `25` | Maximum number of organizations to extract (1 to 500). |

***

### 📤 Output Dataset Format

```json
{
  "ein": 237305157,
  "formattedEin": "23-7305157",
  "name": "Harvard Conservation Trust",
  "subName": null,
  "city": "Harvard",
  "state": "MA",
  "nteeCode": "C340",
  "propublicaUrl": "https://projects.propublica.org/nonprofits/organizations/237305157",
  "address": "PO Box 31",
  "zipCode": "01451-0031",
  "website": "www.harvardconservationtrust.org",
  "rulingDate": "1974-06-01",
  "latestTaxYear": 2023,
  "latestRevenue": 1537626,
  "latestExpenses": 526616,
  "latestAssets": 12029204,
  "latestForm990PdfUrl": "https://projects.propublica.org/nonprofits/download-filing?path=IRS%2F237305157_202312_990_2025021423096316.pdf",
  "historicalFilings": [
    {
      "taxYear": 2023,
      "formType": "990",
      "totalRevenue": 1537626,
      "totalExpenses": 526616,
      "totalAssets": 12029204,
      "totalLiabilities": 0,
      "netIncome": 1011010,
      "officerCompensation": null,
      "pdfUrl": "https://projects.propublica.org/nonprofits/download-filing?path=IRS%2F237305157_202312_990_2025021423096316.pdf"
    }
  ]
}
```

***

### 🚀 How to Run Locally

```bash
cd nonprofit-form-990-scraper
python -m src.main
```

# Actor input Schema

## `searchQuery` (type: `string`):

Keywords or name of non-profit / foundation (e.g. 'foundation', 'hospital', 'university', 'research', 'wildlife').

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

Filter by US State code (e.g. 'NY', 'CA', 'TX', 'MA', 'FL'). Leave empty for nationwide search.

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

IRS 501(c) subsection. Default is 3 for 501(c)(3) public charities and private foundations. Enter 4 for 501(c)(4), 6 for 501(c)(6), etc.

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

Filter out small non-profits with annual revenue below this threshold (e.g. 500000 for $500k+). Set to 0 for all sizes.

## `fetchFilingDetails` (type: `boolean`):

Fetch multi-year IRS filing records, total assets, functional expenses, and direct Form 990 PDF download URLs.

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

Maximum number of non-profit organization records to collect in this run.

## Actor input object example

```json
{
  "searchQuery": "foundation",
  "state": "NY",
  "cCode": 3,
  "minRevenue": 100000,
  "fetchFilingDetails": true,
  "maxItems": 25
}
```

# Actor output Schema

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

501(c)(3) nonprofit organizations, total revenues, assets, executive compensation, and official IRS Form 990 PDF download links.

# 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 = {
    "searchQuery": "foundation",
    "state": "NY"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jaiveda/nonprofit-form-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 = {
    "searchQuery": "foundation",
    "state": "NY",
}

# Run the Actor and wait for it to finish
run = client.actor("jaiveda/nonprofit-form-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 '{
  "searchQuery": "foundation",
  "state": "NY"
}' |
apify call jaiveda/nonprofit-form-990-scraper --silent --output-dataset

```

## MCP server setup

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