# IRS Tax-Exempt Organizations Database Exporter (`logiover/irs-tax-exempt-organizations-scraper`) Actor

Export nearly 2 million US tax-exempt organizations from the official IRS EO BMF. Get EIN, name, address, NTEE, filing status, assets, income and revenue by state. No API key required.

- **URL**: https://apify.com/logiover/irs-tax-exempt-organizations-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## IRS Tax-Exempt Organizations Database Exporter

Export the official IRS Exempt Organizations Business Master File (EO BMF) as clean, structured Apify datasets. Search nearly **2 million active and formerly recognized tax-exempt organizations** by geography, name, NTEE classification, Internal Revenue Code subsection and financial thresholds.

### Commercial use cases

- Nonprofit prospecting and B2B enrichment
- Grant, fundraising and philanthropy research
- Vendor/customer verification by EIN
- Market sizing by nonprofit activity and geography
- Compliance, academic and civic-data pipelines

The Actor downloads IRS state files directly—no third-party API, account or per-record limit. A run can store up to **500,000 organizations**; partition full exports by state when needed.

### Input

| Field | Description | Default |
|---|---|---|
| `stateCodes` | State codes; `ALL`, `PR`, and `XX` are supported | `["CA"]` |
| `nameContains` | Case-insensitive organization-name fragment | empty |
| `city` | Exact city, case-insensitive | empty |
| `nteePrefix` | NTEE activity-code prefix | empty |
| `subsection` | IRC subsection, e.g. `03` | empty |
| `minAssets` | Minimum reported assets | none |
| `minRevenue` | Minimum reported revenue | none |
| `maxResults` | Maximum records, 1–500,000 | `1000` |

Example — large education nonprofits in New York and New Jersey:

```json
{
  "stateCodes": ["NY", "NJ"],
  "nteePrefix": "B",
  "minAssets": 1000000,
  "maxResults": 50000
}
```

Example — full multi-state lead export:

```json
{
  "stateCodes": ["CA", "TX", "FL"],
  "subsection": "03",
  "maxResults": 500000
}
```

### Output

Records include EIN as a leading-zero-safe string, legal name, mailing address, group exemption, subsection/classification/activity codes, ruling and filing fields, tax period, assets, income, revenue, NTEE code, a source file URL and an IRS search link.

```json
{
  "ein": "123456789",
  "name": "EXAMPLE FOUNDATION",
  "city": "NEW YORK",
  "state": "NY",
  "subsectionCode": "03",
  "nteeCode": "B20",
  "assets": 4500000,
  "revenue": 1250000
}
```

### API usage

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~irs-tax-exempt-organizations-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"stateCodes":["TX"],"nteePrefix":"E","maxResults":10000}'
```

### Data source and limitations

The Actor reads the [IRS EO BMF state extracts](https://www.irs.gov/charities-non-profits/exempt-organizations-business-master-file-extract-eo-bmf). Financial values are BMF fields rather than complete Form 990 filings and may be zero, stale or unavailable. Check the IRS record and source definitions before making compliance, credit or eligibility decisions.

### Changelog

- **2026-08-01 — v1.0.0:** Initial release. Added official state/territory/international bulk extraction, financial and classification filters, stable EIN handling, 500,000-item runs, schema-backed overview and default/filtered live-source validation.

# Actor input Schema

## `stateCodes` (type: `array`):

Two-letter codes. Use ALL for the full US database, PR for Puerto Rico, or XX for international records.

## `nameContains` (type: `string`):

Optional case-insensitive organization name fragment.

## `city` (type: `string`):

Optional exact city name, matched case-insensitively.

## `nteePrefix` (type: `string`):

Optional nonprofit activity classification prefix, such as B for education or E for health.

## `subsection` (type: `string`):

Optional numeric subsection code, for example 03 for 501(c)(3).

## `minAssets` (type: `number`):

Optional minimum reported asset amount.

## `minRevenue` (type: `number`):

Optional minimum reported revenue amount.

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

Maximum matching organizations to save; supports bulk exports up to 500,000 items per run.

## Actor input object example

```json
{
  "stateCodes": [
    "CA"
  ],
  "nameContains": "",
  "city": "",
  "nteePrefix": "",
  "subsection": "",
  "maxResults": 1000
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/irs-tax-exempt-organizations-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("logiover/irs-tax-exempt-organizations-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call logiover/irs-tax-exempt-organizations-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logiover/irs-tax-exempt-organizations-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IMTVPqcMi9rfU23jh/builds/6Jgt3QCGBZcf9cvUP/openapi.json
