# IRS Charity EIN Status Change Watch (`natstandridge/irs-charity-ein-status-watch`) Actor

Check a small EIN watchlist against complete official IRS Publication 78 and automatic revocation bulk files, then compare source records with a prior delivered snapshot for human review.

- **URL**: https://apify.com/natstandridge/irs-charity-ein-status-watch.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 completed irs ein bulk-file status checks

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

## IRS Charity EIN Status Change Watch

Check a small list of known EINs against two complete official IRS monthly bulk files: Publication 78 and the automatic revocation list. Each delivered EIN row shows the matching source records and whether those records changed from a prior delivered snapshot. Use the review queue to decide which organizations need a current manual IRS check before a grant or payment decision.

### Input and repeat use

Enter 0–100 EINs as nine digits or `XX-XXXXXXX`. Duplicate formats are checked once. No names, donor records, URLs, credentials or state filters are accepted. For a repeat run, copy the `snapshot` array from the previous run's `OUTPUT` record into `previousSnapshot`. The first run labels rows `first_seen`; later runs label identical records `unchanged` or list exact `before`/`after` source-record changes. A changed record is a change in the bulk files, not proof of a legal status change on that date.

```json
{"eins":["53-0196605","00-0003154"],"maxEins":100,"maxRunSeconds":180}
```

These two sample EINs appeared, respectively, in the Publication 78 and automatic revocation files downloaded for local validation on 2026-11-06. Their presence can change; the Actor reads the current files. `examples/synthetic-input.json` and `examples/synthetic-output.json` illustrate comparison fields with invented records and are explicitly synthetic.

### What the result means

`pub78Listed` means the EIN had at least one matching row in the complete Publication 78 bulk file read in this run; the corresponding names and deductibility codes are preserved. `autoRevocationListed` means it had at least one row in the complete automatic revocation bulk file; revocation, posting and reinstatement dates are shown separately. The revocation list can include reinstated organizations. A missing EIN in these two files is reported as absent from those files, **not** as an IRS-wide determination or a statement that contributions are deductible or ineligible. No Business Master File, Internal Revenue Bulletin, state registry, OFAC, determination letter or current TEOS search is checked.

Every row includes both fixed source URLs, SHA-256 hashes, compressed and scanned sizes, row counts, HTTP `Last-Modified` as UTC when supplied, HTTP ETag, and the ZIP member's local timestamp without an asserted time zone. `observedAt` is the Actor's check time. These timestamps are kept distinct: the IRS web page's last-updated label may differ from the files' HTTP headers. For the local 2026-11-06 probe, the page said September while the two ZIP headers were October 13 and November 6. Neither header proves the date a particular EIN status became effective.

The `OUTPUT` record reports source completeness, all EIN coverage, errors, delivered rows, a `reviewQueueEins` list and the next snapshot. If either file cannot be fully downloaded and scanned, the Actor delivers **no** status rows and charges no per-EIN events. A partial cap retains prior snapshot records for skipped EINs. `reviewRequired` flags absence from Publication 78, automatic revocation history, multiple source records or a changed record; it is a triage flag for a human, not a legal conclusion.

The IRS warns that Publication 78 may lag other revocation notices, and automatic revocation history can include reinstated organizations. Before relying on a result, review current [IRS Tax Exempt Organization Search](https://apps.irs.gov/app/eos/) and relevant letters/notices. Source definitions: [IRS bulk downloads](https://www.irs.gov/charities-non-profits/tax-exempt-organization-search-bulk-data-downloads), [Publication 78 dictionary](https://www.irs.gov/pub/irs-tege/pub-78-data-dictionary.pdf), [automatic revocation dictionary](https://www.irs.gov/pub/irs-tege/auto-revocation-data-dictionary.pdf), [automatic revocation explanation](https://www.irs.gov/charities-non-profits/automatic-revocation-of-exemption).

### Bounds, costs and billing

The Actor requests only `https://apps.irs.gov/pub/epostcard/data-download-pub78.zip` and `.../data-download-revocation.zip`, never a user-supplied destination or link inside a file. HTTPS redirects are refused. Each compressed file is capped at 80 MiB; each single expected ZIP member at 250 MiB and 3 million rows. Files stream to temporary disk, are scanned line by line, and are deleted after collection. An unexpected member, invalid row shape, bad archive, implausibly small file or invalid watched date stops all output. The work budget is 45–180 seconds; the platform timeout should be at least 300 seconds. One complete live pair on 2026-11-06 was about 78 MB compressed and 251 MB expanded, so small watchlists still incur that fixed transfer. Cloud transfer, compute cost and margin are unmeasured.

Proposed price: **$0.01 per delivered EIN status row**. One native `apify-default-dataset-item` event is charged for each successful dataset row, including unchanged rows. `OUTPUT`, empty runs, source failures and skipped EINs are uncharged. The result plan is frozen before dataset delivery; restart checks the exact rows and native event count. Dataset writes disable automatic retries, use a pending checkpoint, and stop on an uncertain response until the same run is reconciled. A $1 charge cap covers at most 100 rows; the Actor never silently exceeds the native cap. This price is a test hypothesis, not an earnings or profit forecast.

### Local development and release gate

Run `uv run --locked python -B -m unittest discover -s tests -v` in this directory. `tools/local_smoke.py` can scan previously downloaded official ZIPs in ignored private evidence; it never alters Apify. Tests use tiny synthetic ZIP fixtures for source changes, malformed data, input caps, native billing parity and lost-response restart. The validated local source scale and source headers are recorded in `examples/local-validation.json`.

Before publication, run the private full, empty, capped and malformed cases in `examples/cloud-cases.json`, preserve the exact run, dataset, `OUTPUT` and `RESULT_PLAN`, and check each with `tools/validate_cloud.py RUN_DIRECTORY examples/cloud-cases.json CASE`. Independently compare watched EIN source rows with the same official file versions, verify native charges, measure cloud cost per delivered EIN and re-evaluate the price. A successful run status alone is insufficient.

An explicit `"eins": []` is a valid no-op with zero rows and charges; omitting `eins` is invalid.

# Actor input Schema

## `eins` (type: `array`):

0–100 EINs as 9 digits or XX-XXXXXXX. Only EINs are accepted; no organization names, donor records or URLs. Duplicate formats are checked once.

## `previousSnapshot` (type: `array`):

Paste OUTPUT.snapshot from a prior delivered run. Source failures and undelivered EINs retain their prior state.

## `maxEins` (type: `integer`):

Process at most this many unique EINs from the sorted watchlist. Remaining EINs are reported as not attempted and are not charged.

## `maxRunSeconds` (type: `integer`):

Maximum time for both official-file downloads, scans, and row delivery. A timeout does not produce a partial source-status row.

## `requestTimeoutSeconds` (type: `integer`):

Network timeout for each fixed IRS bulk-file request. Only the two documented IRS URLs are fetched.

## Actor input object example

```json
{
  "eins": [
    "53-0196605",
    "00-0003154"
  ],
  "previousSnapshot": [],
  "maxEins": 100,
  "maxRunSeconds": 180,
  "requestTimeoutSeconds": 20
}
```

# Actor output Schema

## `checks` (type: `string`):

No description

## `summary` (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 = {
    "eins": [
        "53-0196605",
        "00-0003154"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/irs-charity-ein-status-watch").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 = { "eins": [
        "53-0196605",
        "00-0003154",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/irs-charity-ein-status-watch").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 '{
  "eins": [
    "53-0196605",
    "00-0003154"
  ]
}' |
apify call natstandridge/irs-charity-ein-status-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,natstandridge/irs-charity-ein-status-watch"
        }
    }
}
```

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/MqN6eR286W00LbZc9/builds/f99APBywGwp0MKFOh/openapi.json
