# Nonprofit Data API - US Charity Search & IRS 990 Finder (`captainhandsome/us-nonprofit-search`) Actor

A 990 finder for US nonprofit and charity search by name or keyword. Look up nonprofits against ProPublica Nonprofit Explorer, built on IRS 990 data, and get organization, location, category and revenue as structured records for research and enrichment. 47 columns per record.

- **URL**: https://apify.com/captainhandsome/us-nonprofit-search.md
- **Developed by:** [Joseph McRell](https://apify.com/captainhandsome) (community)
- **Categories:** Business, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.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.
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 Nonprofit & Charity Search - IRS 990 Data

Search public US nonprofit and charity records from ProPublica Nonprofit Explorer and export up to 47 columns per organization: EIN, name, address, NTEE category, reported revenue and the full Form 990 financial summary. This Actor turns ProPublica Nonprofit Explorer, derived from public IRS Form 990 filings, into bounded, structured datasets for analysis, enrichment, monitoring, and AI-agent workflows.

### What data can I extract?

Returned on every run, at no extra request cost:

- **Identity** - organization name, EIN (both `133971298` and `13-3971298` forms), Nonprofit Explorer profile URL
- **Location** - city and state as separate columns, plus the original combined summary
- **Classification** - NTEE major group and activity description
- **Revenue** - the formatted figure, the same figure as a plain integer you can sum in a spreadsheet, and the fiscal year it covers
- **Provenance** - the search term that returned each record

Add `"include_details": true` for the full IRS record of each organization:

- **Address and contact** - street address, ZIP+4, the IRS "in care of" contact name
- **IRS status** - NTEE code, subsection code (501(c)(3) and others), foundation code, deductibility code, exempt status code, filing requirement code, ruling date
- **Business Master File totals** - total assets, total income, tax period, last-updated timestamp
- **Filing history** - most recent filing year, direct PDF download link, count of filings with and without extracted financials, and every tax year on record
- **Form 990 financials** - total revenue, functional expenses, assets, liabilities, net assets, contributions and grants, program service revenue, investment income, grants paid, officer compensation, other salaries and wages, payroll taxes, professional fundraising fees, net fundraising income

Every run writes flat records to the default dataset - no nested objects, so a CSV export is usable as-is. Download results as JSON, CSV, Excel, XML, or access them through the Apify API.

### Input example

```json
{
  "search_terms": [
    "food bank",
    "animal rescue"
  ],
  "max_items": 100,
  "include_details": true
}
```

`max_items` is a hard output and billing ceiling. The default input is intentionally limited to 10 records so Store tests and first runs stay inexpensive.

### Output example

One real record, exactly as pushed:

```json
{
  "name": "nyu langone hospitals",
  "summary": "new york, ny • health — general and rehabilitative - hospitals and related primary medical care facilities",
  "revenue": "$10,489,477,025",
  "ein": "133971298",
  "strein": "13-3971298",
  "profile_url": "https://projects.propublica.org/nonprofits/organizations/133971298",
  "city": "New York",
  "state": "NY",
  "ntee_classification": "Health — General and Rehabilitative - Hospitals and Related Primary Medical Care Facilities",
  "revenue_amount": 10489477025,
  "revenue_year": "2024–2025",
  "search_term": "nyu langone hospitals",
  "address": "550 1ST AVE",
  "zipcode": "10016-6402",
  "care_of_name": "% FRANK FRANZI",
  "ntee_code": "E20G",
  "subsection_code": 3,
  "foundation_code": 12,
  "deductibility_code": 1,
  "exempt_status_code": 1,
  "filing_requirement_code": 1,
  "ruling_date": "1998-05-01",
  "tax_period": "2025-08-01",
  "asset_amount": 13091045206,
  "income_amount": 12461983667,
  "record_updated": "2026-08-19T19:29:49.506Z",
  "latest_filing_year": 2024,
  "latest_filing_pdf_url": "https://projects.propublica.org/nonprofits/download-filing?path=IRS%2F133971298_202408_990_2025082223669055.pdf",
  "filings_with_data_count": 13,
  "filings_without_data_count": 12,
  "filing_years": "2024, 2023, 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000",
  "financials_tax_year": 2023,
  "financials_form_type": "990",
  "total_revenue": 8868510832,
  "total_expenses": 7561157803,
  "total_assets": 11633275920,
  "total_liabilities": 5511014423,
  "net_assets": 6122261497,
  "contributions_and_grants": 225454549,
  "program_service_revenue": 7810330514,
  "investment_income": 104640245,
  "grants_paid": null,
  "officer_compensation": 41930798,
  "other_salaries_and_wages": 2346013129,
  "payroll_taxes": 176513858,
  "professional_fundraising_fees": 0,
  "net_fundraising_income": -102826
}
```

`grants_paid` is a Form 990-PF line, so it is empty here and populated for private foundations. Every record carries the same columns in the same order whether or not a value was available.

The dataset schema documents every field with a title, type, description, and example so humans and AI tools can inspect the contract before running it.

### Use with AI agents and MCP

Apify's hosted MCP server can discover and call this Actor. A suitable agent request is:

> Find US nonprofits matching food bank or animal rescue and return the EIN, address, NTEE category, reported revenue and latest Form 990 totals for each.

Use this exact Actor input:

```json
{
  "search_terms": [
    "food bank",
    "animal rescue"
  ],
  "max_items": 100,
  "include_details": true
}
```

The Actor succeeds with a nonempty default dataset and exposes its default dataset through the top-level Output schema.

### Pricing and cost control

Output is billed per result at **$0.01 per result** (about $10.00 per 1,000 results), plus a $0.0005 Actor-start charge billed once per gigabyte of memory at run start. Use `max_items` to cap both output volume and charges. The price shown on the Apify Store listing is authoritative.

Use `max_items` to cap returned and billable records. Invalid input is rejected before unnecessary work wherever possible.

`include_details` does not change what you are billed per result, but it does add one upstream request per organization, so runs take longer. Leave it off when you only need name, EIN, location and revenue.

### Common use cases

- Source-specific research and market intelligence
- Structured exports for spreadsheets, warehouses and BI systems
- Entity enrichment and monitoring pipelines
- Retrieval and data collection by AI agents

### Reliability

The Actor uses bounded pagination, retries transient upstream failures, deduplicates records where the source exposes stable identifiers, and fails explicitly when the source cannot provide usable output. Production default-input canaries verify a nonempty structured dataset in under five minutes.

### Limitations and responsible use

- Coverage, field availability and update timing are controlled by the upstream public source.
- Optional fields can be null or absent when the source does not publish them.
- The Form 990, 990-EZ and 990-PF report different line items. A private foundation has no program service revenue line and a 990 filer has no grants-paid line, so those columns are empty by design rather than by failure.
- The financial columns come from the most recent filing the IRS has released as machine-readable data. That is often a year behind `latest_filing_year`, which counts PDF-only filings too; both years are in every record so you can see the lag.
- This Actor does not bypass authentication, access controls, CAPTCHAs, or source rate limits.
- Customers remain responsible for lawful use, applicable source terms, and restrictions on downstream decisions.

### FAQ

#### What is the best way to run this US nonprofit search Actor?\n\nStart with the 10-record default, inspect the dataset, then increase `max_items` and narrow the available filters for your use case.

#### Do I need my own API key?

No external API key is required unless the Input tab explicitly says otherwise. Apify credentials are used normally when invoking the Actor through Apify APIs or MCP.

#### Can an AI agent call it?

Yes. The strict input schema acts as the tool signature, and the dataset plus Output schemas describe the returned records.

#### Can I export the results?

Yes. Apify datasets support JSON, CSV, Excel, XML and API retrieval.

### Support and changes

Open an issue on the Actor page with a redacted input and run ID. See [CHANGELOG.md](./CHANGELOG.md) for contract and maintenance updates.

# Changelog

This Actor's version history is a separate document: https://apify.com/captainhandsome/us-nonprofit-search/changelog.md

# Actor input Schema

## `start_urls` (type: `array`):

Optional ProPublica Nonprofit Explorer result URLs. Use search\_terms for simpler calls.

## `max_items` (type: `integer`):

Hard maximum number of dataset records returned and billed.

## `search_terms` (type: `array`):

One or more organization-name or keyword searches to run in Nonprofit Explorer.

## `include_details` (type: `boolean`):

Look up each organization's full IRS Business Master File record and latest Form 990 financials: address, ZIP, NTEE code, ruling date, assets, revenue, expenses, net assets, officer compensation and the filing PDF link. Costs one extra request per organization, so runs take longer. Leave off for name, EIN, location and revenue only.

## Actor input object example

```json
{
  "max_items": 10,
  "search_terms": [
    "hospital"
  ],
  "include_details": false
}
```

# Actor output Schema

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

Extracted records, one object per row on the source page.

# 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 = {
    "search_terms": [
        "hospital"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("captainhandsome/us-nonprofit-search").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 = { "search_terms": ["hospital"] }

# Run the Actor and wait for it to finish
run = client.actor("captainhandsome/us-nonprofit-search").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 '{
  "search_terms": [
    "hospital"
  ]
}' |
apify call captainhandsome/us-nonprofit-search --silent --output-dataset

```

## MCP server setup

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

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/r5BUcSjqhMXy53GSc/builds/gDeT20oNM3T6bFdyc/openapi.json
