# Business Entity Change Watch: New York Status and Agent Alerts (`praise-most-high/business-entity-change-watch`) Actor

New York business entity watch by DOS ID: entity name, type, county, filing date, registered agent and process address, from NY's Active Corporations data. Each run returns one event per change of status, name, agent, chairman or process address, and a second mode lists new formations.

- **URL**: https://apify.com/praise-most-high/business-entity-change-watch.md
- **Developed by:** [angel nguyen](https://apify.com/praise-most-high) (community)
- **Categories:** 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.50 / 1,000 watched entity checkeds

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

## Business Entity Change Watch: New York Status and Agent Alerts

Give this Actor a list of New York business entities. Each run reads their current rows from the New York State Department of State's dataset "Active Corporations: Beginning 1800" and compares them with the previous run of the same list. It returns one change event for each change of:

- status: the entity left the State's active list, or joined it;
- name;
- registered agent (name and address);
- the address the State holds for service of process (the `dos_process` fields);
- chairman (name and address), where the State holds one.

A second mode returns a new-formations feed: entities whose initial filing date falls in a date window, with optional county and entity-type filters.

### Input

| Field | Meaning |
|---|---|
| `mode` | `watch` (default), `formations` or `both`. |
| `watchlist` | DOS IDs or exact entity names. An entry of digits only is a DOS ID, and a string keeps its leading zeros. Anything else is a name. Required in `watch` and `both`. |
| `watchName` | Name of the saved state the list is compared against. Default `default`. Use one name per list. |
| `maxEntities` | The run reads at most this many watchlist entries. Default 1,000. Later entries get no row and are counted as `notRead` in the SUMMARY record. |
| `formationsFrom`, `formationsTo` | The date window for new formations, written YYYY-MM-DD. Both ends are included. |
| `counties`, `entityTypes` | Optional filters for new formations. |

A name entry matches the State's spelling after trimming, collapsing spaces and upper-casing only. A partial name matches nothing. If two entities have the same name, both match, each with its own row flagged `ambiguous`.

The first run of a list records a baseline and returns no change events. An entry added to a list later also gets a baseline row first.

### Output

Every row has `recordType` and `source` (New York State Department of State, data.ny.gov dataset n9v6-gdp6).

- **Entity rows** (`recordType: entity`), one per watchlist entry: `input`, `entryKind`, `dosId`, `status` (`found`, `left-active-list`, `not-found`, `invalid-input` or `fetch-error`), `baseline`, `ambiguous`, `entityName`, `initialFilingDate`, `county`, `entityType`, `jurisdiction`, the current `registered_agent_*`, `chairman_*` and `dos_process_*` values as the State writes them, `checkedAt` (UTC) and `dataAsOf`.
- **Change rows** (`recordType: change`), one per change: `dosId`, `entityName`, `eventType` (`status`, `agent`, `chairman`, `dos-process` or `name`), `before` and `after` (the group's fields with the State's values as written; for a status event `{ "status": "active" }` and `{ "status": "absent" }`), `detectedAt` (UTC) and `dataAsOf` (the dataset's Last-Modified header).
- **Formation rows** (`recordType: formation`): `dosId`, `entityName`, `initialFilingDate`, `entityType`, `county`, `jurisdiction`, the `dos_process_*` fields, `registered_agent_name` and `dataAsOf`.

Values compare after trimming, collapsing spaces and upper-casing, so a change of letter case or spacing alone is not an event. A `SUMMARY` record in the run's key-value store gives the counts by status and event type, the charge attempts, `notRead` and `notDeliveredAfterLimit`.

#### Sample output

Taken from the test fixture's local run (row 41 of its dataset). The change in it was planted for testing on a real row, so the DOS ID and entity name are left out: no real business is shown with a change it did not make. `dataAsOf` names the fixture file here; on the platform it holds the dataset's Last-Modified header. An agent, chairman or service-of-process change has the same shape, with that group's six fields in `before` and `after`; a name change carries `current_entity_name`.

```json
{
  "recordType": "change",
  "dosId": "(left out)",
  "entityName": "(left out)",
  "eventType": "status",
  "before": {
    "status": "active"
  },
  "after": {
    "status": "absent"
  },
  "detectedAt": "2026-11-07T00:42:11.181Z",
  "dataAsOf": "snapshot-B.json",
  "source": "New York State Department of State, data.ny.gov dataset n9v6-gdp6"
}
```

### Price (pay per event)

| Event | Price | When |
|---|---|---|
| `entity-checked` | $0.0015 ($1.50 per 1,000) | once per watched entity found in the State's data and compared |
| `change-event` | $0.004 ($4.00 per 1,000) | once per change event, an entity leaving the active list included |
| `formation-record` | $0.0015 ($1.50 per 1,000) | once per new-formation row |

No charge for an invalid entry, an entry not found, the entity row of an entity that left the active list (only its change event is charged), or a batch that could not be fetched.

### Source and how current it is

- Data: the dataset "Active Corporations: Beginning 1800", dataset n9v6-gdp6 on data.ny.gov (`https://data.ny.gov/d/n9v6-gdp6`), owned by the Department of State, Division of Corporations. The Actor reads it through the dataset's published API, with no account and no app token.
- On 7 November 2026 (UTC) the dataset held 4,312,803 rows. It lists active entities only, so a status change shows as an entity leaving or rejoining the active list. The dataset does not say why an entity left.
- Refresh: the dataset's metadata gives its posting frequency as monthly and says the data is accurate as of the last business day of the posted month. Its rows were last updated on 6 November 2026 and then ran to a filing date of 5 November 2026, so how often it really changes is not yet measured. `dataAsOf` on each row tells you which posting a run read. The Actor reads the dataset each time you run it, so your schedule decides how often you check.
- The State's terms say: "The State also does not vouch for the continued accuracy or currency of Content after it has been downloaded from OPEN-NY, nor the quality or accuracy of any analyses or re-uses of that Content."

### Limits

- New York only for now.
- Not legal advice, and not a KYB or compliance certification. The output is public business-entity data from a State registry. It is not a consumer report on any person.
- Not affiliated with or endorsed by the New York State Department of State.
- Some rows name individuals: a registered agent, chairman or service-of-process addressee can be a person, and the Actor returns the name and address as the State publishes them.
- Chairman events can fire only where the State holds a chairman: 471,673 of the 4,312,803 rows carried a chairman name on 7 November 2026 (UTC).
- If a run reaches your maximum charge for the run, it stops delivering rows there, and the changes it found but did not deliver are not sent again on a later run. The SUMMARY record counts them as `notDeliveredAfterLimit`. To avoid this, set the maximum charge per run above the number of watched entities times $0.0015, plus $0.004 for each change you expect, plus $0.0015 for each formation row you expect in `formations` or `both` mode.
- At most one request a second to the dataset, and watchlist DOS IDs are looked up in batches of at most 100. On HTTP 429 the Actor waits for the Retry-After time, at most 30 seconds, and retries once. A second 429 ends the run's fetching; the entries not read are returned as `fetch-error` rows, are not charged and are not written to the saved state.

### Testing

Before release the change detection was run on a frozen sample of 500 real rows from the dataset, with 22 changes planted between two snapshots. It reported all 22 changes and no others. A copy with its registered-agent comparison switched off missed exactly the 5 agent changes, so the test can fail.

### Support and feedback

This Actor is maintained by the praise-most-high account on Apify. To report a problem or ask for a change, open an issue on this Actor's Issues tab and give the run ID and the input you used.

# Actor input Schema

## `mode` (type: `string`):

watch compares each watched entity with the previous run. formations returns entities whose initial filing date falls in the window. both does the two.

## `watchlist` (type: `array`):

New York DOS IDs or exact entity names. An entry of digits only is a DOS ID (leading zeros kept); anything else is a name, matched against the State's spelling after trimming and upper-casing only. Required in watch and both modes. The first run for a list records a baseline and emits no change events.

## `watchName` (type: `string`):

Name of the saved state this list is compared against. Use a different name for each separate list.

## `maxEntities` (type: `integer`):

The run reads at most this many watchlist entries; later entries get no row and are counted in the SUMMARY record as notRead.

## `formationsFrom` (type: `string`):

First initial filing date to include, as YYYY-MM-DD. Used in formations and both modes.

## `formationsTo` (type: `string`):

Last initial filing date to include, as YYYY-MM-DD (inclusive).

## `counties` (type: `array`):

Optional. Only return formations in these counties, for example Kings or New York.

## `entityTypes` (type: `array`):

Optional. Only return formations of these entity types, as the State writes them, for example DOMESTIC LIMITED LIABILITY COMPANY.

## Actor input object example

```json
{
  "mode": "watch",
  "watchlist": [
    "30059",
    "28021",
    "15772"
  ],
  "watchName": "default",
  "maxEntities": 1000,
  "formationsFrom": "2026-11-05",
  "formationsTo": "2026-11-05",
  "counties": [
    "Schuyler"
  ],
  "entityTypes": [
    "DOMESTIC LIMITED LIABILITY COMPANY"
  ]
}
```

# Actor output Schema

## `rows` (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 = {
    "watchlist": [
        "30059",
        "28021",
        "15772"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("praise-most-high/business-entity-change-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 = { "watchlist": [
        "30059",
        "28021",
        "15772",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("praise-most-high/business-entity-change-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 '{
  "watchlist": [
    "30059",
    "28021",
    "15772"
  ]
}' |
apify call praise-most-high/business-entity-change-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,praise-most-high/business-entity-change-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/Qx3SlZgMv18elsCKb/builds/xgrG6a4YDE12MJ6LR/openapi.json
