# IRS Exempt Organizations Scraper (`acquistion-automation/irs-eo-master-file-scraper`) Actor

Scrapes the IRS Exempt Organizations Master File by state and optional subsection code. Returns each organization as a flat row with EIN, name, and status.

- **URL**: https://apify.com/acquistion-automation/irs-eo-master-file-scraper.md
- **Developed by:** [Acquisition Automation Co.](https://apify.com/acquistion-automation) (community)
- **Categories:** Other, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.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

![Acquisition Automation Co. Search less. Close more.](https://api.apify.com/v2/key-value-stores/AOdPHdOpeDpzEPS5f/records/banner.jpg)

## 🏛 IRS Exempt Organizations Scraper

> **Export the IRS Exempt Organizations Master File one state at a time, as flat rows with EIN, name, full address, subsection code, exemption status and, where the IRS publishes them, asset, income and revenue figures.** No API key, no registration, no login.

The IRS publishes the Exempt Organizations Business Master File as fixed state extracts. It is the authoritative list of every organization recognised as tax exempt, and it is distributed as bulk files that nobody wants to parse by hand. This Actor reads a state extract, optionally filters it to one 501(c) subsection, and writes each organization as a row you can open in a spreadsheet.

| Who uses it | What they use the file for |
|---|---|
| 🎯 Sales and lead teams selling to nonprofits | Building a state list with EIN, mailing address and a size figure attached |
| 💼 Buyers of businesses serving the sector | Sizing the addressable base of churches, schools and associations in a target's territory |
| 🧾 Finance and compliance teams | Confirming an organization's EIN, subsection and exemption status before a grant or a payment |
| 📊 Researchers and journalists | Counting exempt organizations by state, subsection or asset size |

### 📋 What it does

> 💡 **Why it matters:** when the customer base of a business is nonprofits, the total addressable market is a published list. You can count it instead of estimating it.

- 🗺 **One state per run.** Pick a two-letter code from the list, including `DC` and `PR`.
- 🔢 **Optional subsection filter.** Set `subsection` to `03` for 501(c)(3) organizations, or leave it blank for every subsection in the state.
- 📮 **Full mailing address** on every row: care-of line, street, city, state and ZIP+4.
- 💵 **Asset, income and revenue amounts** where the IRS publishes them for the organization's tax period.
- 📦 **One row per organization**, the same 21 fields every run, so several states append into one dataset.
- 💾 **Exports to CSV, Excel, JSON or XML**, from the run page or the API.

### 📊 Output

Every organization is one flat row with 21 fields. Several fields are IRS codes, published as codes rather than words. `null` means the IRS publishes no value for that organization.

| Field | Type | Description |
|---|---|---|
| 🆔 `ein` | string | Employer Identification Number, nine digits, zero padded |
| 🏷 `name` | string | Organization name as the IRS records it |
| ✉️ `inCareOf` | string | Care-of line on the mailing address, for example `% ELIJAH MARENTETTE` |
| 📍 `street` | string | Street address |
| 🏙 `city` | string | City |
| 🗺 `state` | string | Two-letter state or territory code |
| 📮 `zip` | string | ZIP or ZIP+4 |
| 📑 `subsection` | string | 501(c) subsection code, for example `03` for a 501(c)(3) |
| 🗂 `classification` | string | IRS classification code for the organization's activity grouping |
| 📅 `ruling` | string | Ruling date, as `YYYYMM`, when exemption was recognised |
| 🎁 `deductibility` | string | Deductibility code, for example `1` where contributions are deductible |
| 🏛 `foundation` | string | Foundation code, for example `10` for a church and `11` for a school |
| 🏢 `organization` | string | Organization type code, for example `1` for a corporation and `5` for an association |
| ✅ `status` | string | Exemption status code, for example `01` for an unconditional exemption |
| 🗓 `taxPeriod` | string | Tax period the financial figures belong to, as `YYYYMM` |
| 🔤 `nteeCd` | string | NTEE code where the IRS assigns one |
| 💰 `assetAmount` | integer | Assets reported for that tax period, in dollars |
| 📥 `incomeAmount` | integer | Income reported for that tax period, in dollars |
| 📈 `revenueAmount` | integer | Revenue reported for that tax period, in dollars |
| 🕒 `scrapedAt` | string | ISO timestamp of collection |
| ⚠️ `error` | string | `null` on a normal row |

#### Example rows

```json
{
  "ein": "010123106",
  "name": "MORNING STAR BAPTIST CHURCH",
  "inCareOf": null,
  "street": "3204 BROTHERS PL SE",
  "city": "WASHINGTON",
  "state": "DC",
  "zip": "20032-1501",
  "subsection": "03",
  "classification": "7000",
  "ruling": "196811",
  "deductibility": "1",
  "foundation": "10",
  "organization": "5",
  "status": "01",
  "taxPeriod": null,
  "nteeCd": null,
  "assetAmount": null,
  "incomeAmount": null,
  "revenueAmount": null,
  "scrapedAt": "2026-09-14T17:30:49.804Z",
  "error": null
}
```

```json
{
  "ein": "010262891",
  "name": "SMALL POINT SUMMER SCHOOL INC",
  "inCareOf": "% ELIJAH MARENTETTE",
  "street": "2810 BRANDYWINE ST NW",
  "city": "WASHINGTON",
  "state": "DC",
  "zip": "20008-2136",
  "subsection": "03",
  "classification": "2000",
  "ruling": "196001",
  "deductibility": "1",
  "foundation": "11",
  "organization": "1",
  "status": "01",
  "taxPeriod": "202512",
  "nteeCd": null,
  "assetAmount": 1028134,
  "incomeAmount": 186420,
  "revenueAmount": 186420,
  "scrapedAt": "2026-09-14T17:30:49.804Z",
  "error": null
}
```

### ✨ Why choose this Actor

| | What you get |
|---|---|
| **The IRS record itself** | Rows come from the Exempt Organizations Master File, not from a directory that resells it behind a login. |
| **A size figure attached** | Asset, income and revenue amounts let you sort a state list by how big the organization actually is. |
| **No credentials** | The extracts are public. No API key, no account, no request quota. |
| **The same fields every run** | Append ten states into one dataset without cleaning columns. |
| **You pay per row** | No subscription. A run that returns nothing costs nothing. |

### 🚀 How to use it

1. [Create a free Apify account](https://console.apify.com/sign-up). New accounts start with $5 of credit.
2. Open the Actor and select **Try for free**.
3. Pick a `state`. It defaults to `DC`, which is small and fast to test with.
4. Set `subsection` if you want one 501(c) class only, and `maxItems` to cap the run.
5. Select **Start**, then export from the **Dataset** tab as CSV, Excel, JSON or XML.

A first run:

```json
{
  "state": "DC",
  "maxItems": 10
}
```

Every 501(c)(3) in a large state:

```json
{
  "state": "CA",
  "subsection": "03",
  "maxItems": 5000
}
```

### ⚙️ Input

| Field | Required | Description |
|---|---|---|
| `state` | No | Two-letter US state or territory code, for example `CA`, `DC` or `PR`. Defaults to `DC` |
| `subsection` | No | IRS subsection code, for example `03` for 501(c)(3). Blank returns every subsection |
| `maxItems` | No | How many organizations to collect per run |

### 💰 Pricing

Pay per result. No subscription, and no Apify platform usage on top.

| Apify plan | Free | Bronze | Silver | Gold | Platinum | Diamond |
|---|---|---|---|---|---|---|
| Per organization row | $0.021 | $0.02033 | $0.01967 | $0.019 | $0.019 | $0.019 |

| Rows collected | Cost on the Free plan |
|---|---|
| 100 | $2.10 |
| 1,000 | $21.00 |
| 10,000 | $210.00 |

**Free plan runs** return a preview. Any paid Apify plan lifts the ceiling for a full run.

### 🔌 Integrate with any app

The dataset is available through the Apify API as soon as the run finishes. Use `run-sync-get-dataset-items` for a one-shot call, webhooks to trigger what happens next, or the Make, Zapier, Airbyte and LangChain integrations listed on the Actor page. A monthly schedule keeps a state list current as the IRS republishes the file.

### 🤖 Use with an AI agent

Give an agent live access to the master file over the Model Context Protocol:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=acquistion-automation/irs-eo-master-file-scraper"
```

Then ask it in plain language for the exempt organizations in a state and have it read the rows back.

### ❓ Frequently asked questions

**Does this return Form 990 filings?**
No. It returns the Business Master File record: identity, address, the IRS codes, and the asset, income and revenue amounts the IRS carries for the organization's tax period. The full 990 is a separate filing.

**Why are `assetAmount`, `incomeAmount` and `taxPeriod` empty on some rows?**
The IRS does not carry financial figures for every organization. Small organizations and many churches appear with identity and status only.

**What do the code fields mean?**
They are the IRS's own codes, published as codes. `subsection` `03` is a 501(c)(3). `status` `01` is an unconditional exemption. `foundation` distinguishes the reason for public charity status, for example `10` for a church and `11` for a school. The IRS publishes the full code tables alongside the file.

**Can I pull every state at once?**
Not in one run. The extracts are per state, so set `state` and run once per state, then append the datasets. Every row carries its own `state`, so a merged file stays sortable.

**Is the EIN formatted with a dash?**
No. It comes through as nine digits with a leading zero where the IRS uses one, for example `010123106`. Format it after export if your system expects `01-0123106`.

**What can I export?**
CSV, Excel, JSON and XML from the run page, or JSON straight from the API.

### 🔗 More from Acquisition Automation Co.

- [SAM.gov Contract Opportunities Scraper](https://apify.com/acquistion-automation/sam-gov-contracts-scraper)
- [PublicSurplus Scraper](https://apify.com/acquistion-automation/publicsurplus-scraper)
- [Clutch Agencies Scraper](https://apify.com/acquistion-automation/clutch-agencies-scraper)
- [AIA Architect Finder Scraper](https://apify.com/acquistion-automation/aia-architect-finder-scraper)
- [BizBuySell Scraper](https://apify.com/acquistion-automation/bizbuysell-scraper)

### About Acquisition Automation Co.

We build automation for people buying businesses. The repetitive part of an acquisition search, checking listings, pulling public records, tracking owners and assets, is work a machine should do, so the buyer's time goes into judging deals instead of collecting them.

We add new Actors regularly. If there is a source you need and do not see here, tell us.

### 🆘 Support

Open an issue in the **Issues** tab of this Actor with your run ID, the input you used, and what you expected to get back.

### ⚠️ Disclaimer

This Actor is independent and is not affiliated with, endorsed by, or sponsored by the Internal Revenue Service or any government agency. It collects only publicly available data. You are responsible for using that data in compliance with the source's terms of service and applicable law.

# Actor input Schema

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

Two-letter US state/territory code (e.g. CA, DC, PR). Defaults to DC for fast tests.

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

How many organizations to collect per run.

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

Optional. Filter by IRS subsection code (e.g. 03 for 501(c)(3)). Leave blank for all.

## Actor input object example

```json
{
  "state": "DC",
  "maxItems": 10
}
```

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("acquistion-automation/irs-eo-master-file-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("acquistion-automation/irs-eo-master-file-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 '{
  "maxItems": 10
}' |
apify call acquistion-automation/irs-eo-master-file-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,acquistion-automation/irs-eo-master-file-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/1IVN3p1JDa3GOcxrH/builds/C8Ib7HGPblQn2hEjd/openapi.json
