# IRS 990 Nonprofit, Foundation & Grant Leads Scraper (`apex-b2b-data/irs-990-nonprofit-grant-leads`) Actor

Scrapes the ProPublica Nonprofit Explorer API v2 for 501(c)(3) charities and grantmaking foundations. Enriched with revenue, expenses, net assets, direct IRS 990 PDF download links, and financial health scoring.

- **URL**: https://apify.com/apex-b2b-data/irs-990-nonprofit-grant-leads.md
- **Developed by:** [George Barnes](https://apify.com/apex-b2b-data) (community)
- **Categories:** Lead generation, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 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.
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

## IRS 990 Nonprofit & Foundation Grant Leads Scraper (`$1.50 / 1K`)

**Extract verified 501(c)(3) charities, private grantmaking foundations, endowments, and community funds from the IRS Form 990 database—complete with total revenue, expenses, net assets, direct IRS PDF download links, executive care-of contacts, and automated financial health scoring.**

Powered by the **ProPublica Nonprofit Explorer API v2**, this Actor extracts and joins IRS Business Master File (BMF) data and detailed Form 990/990-PF/990-EZ filings into clean, actionable B2B leads for fundraisers, grant writers, SaaS vendors, audit firms, and philanthropy advisors.

***

### Why Choose This IRS 990 Actor? (Competitive Comparison)

| Capability | This Actor | ProPublica Web Search | GuideStar / Candid API | Generic B2B Scrapers |
| :--- | :--- | :--- | :--- | :--- |
| **Price per 1,000 Records** | **`$1.50 / 1K` (`$0.0015`/lead)** | Manual copy-paste only | `$2,000 – $10,000+` / year | `$5.00 – $20.00 / 1K` + Proxies |
| **Direct IRS Form 990 PDF Download Links** | ✅ Included (`pdf_url`) | ⚠️ Web link only | ⚠️ Paywalled tier | ❌ Not available |
| **Financial Health Score (`0–100`)** | ✅ Automated algorithm | ❌ No | ⚠️ Paid proprietary metric | ❌ No |
| **Grantmaker & Endowment Segmentation** | ✅ `grantmaker_segment` & `lead_segments` | ❌ No | ⚠️ Complex manual tags | ❌ No |
| **Balance Sheet & P\&L Join** | ✅ Revenue, expenses, net assets, margin % | ⚠️ Separate page clicks | ✅ Yes | ❌ Superficial directory info |
| **NTEE Taxonomy Translation** | ✅ Code + human-readable desc | ⚠️ Raw codes (e.g. `T20`) | ✅ Yes | ❌ Raw unmapped strings |
| **Executive / Care-of Officer Contact** | ✅ Cleaned name (`officer_name`) | ⚠️ Raw `% NAME` string | ✅ Yes | ⚠️ Often stale |
| **Required API Keys & Proxies** | **`$0.00` (Zero keys, zero proxies needed)** | Browser required | Mandatory enterprise key | Expensive residential proxies |
| **Execution Reliability** | **`100%` (Direct unauthenticated REST)** | Cloudflare challenges | Strict query quotas | High block rates |

***

### Transparent Pricing (`$1.50` per 1,000 Leads)

You pay **only for nonprofit records actually delivered** (`$0.0015` per record via Apify Pay-Per-Event pricing), with no subscriptions, commitments, or hidden platform fees:

| Workflow | Records Delivered | Total Cost |
| :--- | :--- | :--- |
| **Quick Test Run** (verify data structure & fields) | `20` records | **`$0.03` (3 cents)** |
| **Daily Targeted Regional Lead Pull** | `200` records / day | **`$0.30 / day` (`~$9/mo`)** |
| **Statewide Foundation & Charity Export** | `1,000` records | **`$1.50`** |
| **Major Metropolitan Area TAM Harvester** | `5,000` records | **`$7.50`** |
| **Full Nationwide Grantmaker Database Export** | `20,000` records | **`$30.00`** |

***

### High-Intent B2B Playbooks (Copy-Paste JSON Inputs)

#### 1. Grant Seekers & Fundraisers: "Top Grantmaking Foundations with >$1M Assets"

Target private grantmaking foundations (`subsectionCode: 3`, `nteeMajorGroup: 7`) with over **$1,000,000 in net assets** and verified **direct IRS Form 990 PDF download links** to research their grant distribution history and trustee lists:

```json
{
  "query": "foundation",
  "state": "CA",
  "subsectionCode": 3,
  "minAssets": 1000000,
  "enrichFilings": true,
  "onlyWithPdfs": true,
  "limit": 100
}
```

#### 2. B2B Non-Profit SaaS & Managed IT: "Growing Nonprofits with >$500k Annual Revenue"

Prospect established 501(c)(3) charities with healthy operating revenue and named executive officers on file for donor management software, cloud hosting, cybersecurity, or HR/payroll services:

```json
{
  "query": "community",
  "state": "NY",
  "subsectionCode": 3,
  "minRevenue": 500000,
  "enrichFilings": true,
  "limit": 50
}
```

#### 3. Wealth Advisors & Philanthropy Consultants: "Family Foundations & Endowments"

Discover private foundations and charitable trusts in wealth-heavy states (e.g. Florida, Texas, California) with automated endowment segmentation:

```json
{
  "query": "family foundation",
  "state": "FL",
  "subsectionCode": 3,
  "minAssets": 500000,
  "enrichFilings": true,
  "limit": 50
}
```

#### 4. Instant Single EIN Financial Audit & Form 990 PDF Retrieval

Pass an exact 9-digit Employer Identification Number (EIN) to instantly pull the organization's latest balance sheet, operating margin, and PDF download link:

```json
{
  "query": "270549307",
  "state": "",
  "enrichFilings": true,
  "limit": 1
}
```

***

### Sample Output Record

Each returned item contains all **14 overview transformation fields** plus rich B2B enrichment metadata:

```json
{
  "ein": 270549307,
  "organization_name": "Ujimaa Foundation",
  "city": "Oakland",
  "state": "CA",
  "ntee_code": "B80",
  "ntee_desc": "Graduate and Professional Schools",
  "subsection_code": 3,
  "total_revenue": 372089.0,
  "total_expenses": 399387.0,
  "net_assets": 84810.0,
  "pdf_url": "https://projects.propublica.org/nonprofits/download-filing?path=04_2021_prefixes_26-27%2F270549307_201908_990_2021040517885319.pdf",
  "financial_health_score": 50,
  "grantmaker_segment": "COMMUNITY_GRASSROOTS",
  "extracted_at": "2026-11-04T00:21:33Z",
  "ein_formatted": "27-0549307",
  "address": "835 ISABELLA ST",
  "zip_code": "94607-3429",
  "officer_name": "BRIAN PRIDE",
  "care_of_name": "% BRIAN PRIDE",
  "tax_period_year": 2019,
  "form_type": "990",
  "operating_margin_pct": -7.34,
  "propublica_url": "https://projects.propublica.org/nonprofits/organizations/270549307",
  "lead_segments": [
    "GRANT_MAKING_FOUNDATION",
    "501C3_CHARITABLE",
    "HAS_DIRECT_IRS_PDF",
    "NAMED_OFFICER_ON_FILE"
  ]
}
```

***

### Field Dictionary

| Field | Type | Description |
| :--- | :--- | :--- |
| `ein` | `integer` | 9-digit IRS Employer Identification Number |
| `organization_name` | `string` | Legal corporate name registered with the IRS |
| `city` | `string` | Headquarters / practice city |
| `state` | `string` | 2-letter US state code |
| `ntee_code` | `string` | National Taxonomy of Exempt Entities code (e.g. `T20`, `B80`, `P32`) |
| `ntee_desc` | `string` | Human-readable NTEE taxonomy classification description |
| `subsection_code` | `integer` | IRS 501(c) subsection (e.g. `3` for 501(c)(3) charities) |
| `total_revenue` | `number` | Latest Form 990 total revenue in USD |
| `total_expenses` | `number` | Latest Form 990 total functional expenses in USD |
| `net_assets` | `number` | Latest Form 990 total net assets / fund balances in USD |
| `pdf_url` | `string` | Direct download URL for the official IRS Form 990 PDF filing |
| `financial_health_score` | `integer` | Algorithmic solvency & operational sustainability score (`0–100`) |
| `grantmaker_segment` | `string` | Classification (`MEGA_FOUNDATION_10M_PLUS`, `LARGE_GRANTMAKER_1M_10M`, etc.) |
| `extracted_at` | `string` | ISO 8601 UTC extraction timestamp |
| `ein_formatted` | `string` | Hyphenated EIN display string (`XX-XXXXXXX`) |
| `address` | `string` | Physical or registered mailing street address |
| `zip_code` | `string` | 5-digit ZIP or ZIP+4 |
| `officer_name` | `string` | Primary trustee or care-of officer name |
| `operating_margin_pct` | `number` | Operating surplus/deficit percentage (`((revenue - expenses) / revenue) * 100`) |
| `tax_period_year` | `integer` | Tax year of the most recent Form 990 filing |
| `propublica_url` | `string` | Direct ProPublica Nonprofit Explorer profile page |
| `lead_segments` | `array` | Marketing and prospecting tags for immediate CRM routing |

***

### Integration Code Snippets

#### Python (Apify Client SDK)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run_input = {
    "query": "foundation",
    "state": "CA",
    "subsectionCode": 3,
    "minAssets": 1000000,
    "limit": 25,
}

run = client.actor("irs-990-nonprofit-grant-leads").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"[{item['ein_formatted']}] {item['organization_name']} - Assets: ${item['net_assets']:,.0f} - PDF: {item['pdf_url']}")
```

#### Node.js / JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_API_TOKEN' });

const input = {
    query: 'foundation',
    state: 'CA',
    subsectionCode: 3,
    limit: 25,
};

const run = await client.actor('irs-990-nonprofit-grant-leads').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();

items.forEach(item => {
    console.log(`${item.organization_name} (${item.ein_formatted}): Score ${item.financial_health_score}/100`);
});
```

#### Standalone CLI Execution (Zero Dependencies)

You can run this Actor directly from the command line without the Apify SDK:

```bash
## Clone or navigate to the Actor directory
cd irs-990-nonprofit-grant-leads

## Run with zero inputs (defaults to CA foundations, limit 20)
python3 src/main.py

## Output records are instantly saved to:
cat storage/datasets/default/results.json
```

# Actor input Schema

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

Search keyword, organization name, or exact 9-digit EIN (e.g. 'foundation', 'cancer research', '270549307').

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

2-letter US state abbreviation (e.g. CA, NY, TX, FL). Leave empty to search nationwide.

## `limit` (type: `integer`):

Maximum number of nonprofit organizations to retrieve.

## `subsectionCode` (type: `integer`):

IRS 501(c) subsection (3 for public charities/foundations, 4 for social welfare, 6 for business leagues, 0 for all).

## `nteeMajorGroup` (type: `integer`):

Filter by National Taxonomy of Exempt Entities group ID (1: Arts, 2: Education, 3: Environment/Animals, 4: Health, 5: Human Services, 6: International, 7: Public Benefit, 8: Religion, 9: Membership, 10: Unknown, 0: All).

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

Filter out organizations with annual revenue below this USD threshold.

## `minAssets` (type: `integer`):

Filter out organizations with net assets below this USD threshold.

## `enrichFilings` (type: `boolean`):

Fetch detailed balance sheet metrics, revenue/expense breakdowns, and direct PDF download links via ProPublica organizations API.

## `onlyWithPdfs` (type: `boolean`):

Only return organizations that have a direct IRS Form 990 PDF download link available.

## Actor input object example

```json
{
  "query": "foundation",
  "state": "CA",
  "limit": 10,
  "subsectionCode": 3,
  "nteeMajorGroup": 0,
  "minRevenue": 0,
  "minAssets": 0,
  "enrichFilings": true,
  "onlyWithPdfs": false
}
```

# Actor output Schema

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

Structured JSON records produced by IRS 990 Nonprofit, Foundation & Grant Leads Scraper in the default dataset.

# 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": "foundation",
    "state": "CA",
    "limit": 10,
    "subsectionCode": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("apex-b2b-data/irs-990-nonprofit-grant-leads").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": "foundation",
    "state": "CA",
    "limit": 10,
    "subsectionCode": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("apex-b2b-data/irs-990-nonprofit-grant-leads").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": "foundation",
  "state": "CA",
  "limit": 10,
  "subsectionCode": 3
}' |
apify call apex-b2b-data/irs-990-nonprofit-grant-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex-b2b-data/irs-990-nonprofit-grant-leads"
        }
    }
}
```

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/JI6mzeQFdVvg48smG/builds/SpaG4nzcpr7EEHVyE/openapi.json
