# New York State Active Corporations Scraper (`real-estate-api/new-york-state-active-corporations-scraper`) Actor

New York State Active Corporations Scraper is a Python tool to extract Department of State (DOS) ID numbers, current entity names, initial filing dates, counties of incorporation, and service of process addresses from the New York State Open Data active corporations registry

- **URL**: https://apify.com/real-estate-api/new-york-state-active-corporations-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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

### New York State Active Corporations Scraper — Active Business Registry Data Extraction

![New York State Active Corporations Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/new-york-state-active-corporations-scraper-cover.png)

Collect active corporation records from the New York State Department of State and export them as structured JSON, CSV, or Excel datasets. Retrieve DOS identification numbers, entity names, filing dates, counties, jurisdictions, entity types, and process addresses for company research, compliance checks, and business lead generation.

### Overview

The New York State Active Corporations Scraper helps researchers, analysts, and developers collect publicly available active corporation records from New York State's open data.

Choose between keyword search, custom filtering, and newest-first collection to find the records you need. Results are saved to your Apify dataset for further analysis, reporting, and data enrichment.

### Features

- **Keyword search:** Find active corporations using names, locations, and other searchable text.
- **Custom filtering:** Narrow results by county, entity type, or other available fields.
- **Latest records:** Retrieve the newest corporation filings first.
- **DOS identification:** Collect official Department of State identification numbers.
- **Entity information:** Retrieve corporation names, jurisdictions, and entity types.
- **Filing dates:** Collect initial DOS filing dates.
- **Process addresses:** Extract available registered process names and address details.
- **Configurable collection:** Set a maximum number of records per run.
- **Dataset exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Collection Modes

**1. Search Mode**

Search active corporation records using keywords or phrases. For example, search for `Westchester` to find matching records.

**2. Filter Mode**

Apply custom conditions to narrow results by county, entity type, or other available fields.

**3. Latest Mode**

Collect the newest corporation records first, ordered by initial DOS filing date in descending order.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `search` | Collection mode: `search`, `filter`, or `latest`. |
| `searchText` | String | Empty | Keyword or phrase used to search corporation records. |
| `where` | String | Empty | Optional filter condition for selecting records. |
| `maxItems` | Integer | 100 | Maximum number of records to collect. |
| `requestDelayMs` | Integer | 1000 | Delay between requests in milliseconds. |

### Example Input

**Search Mode**

```json
{
  "mode": "search",
  "searchText": "Westchester",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

**Filter Mode**

```json
{
  "mode": "filter",
  "where": "county = 'Westchester'",
  "maxItems": 25,
  "requestDelayMs": 1000
}
```

**Latest Mode**

```json
{
  "mode": "latest",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### What Data Does This Actor Extract?

The actor collects active corporation registration and address information, including:

| Field | Description |
|---|---|
| `dos_id` | New York Department of State identification number |
| `current_entity_name` | Current registered entity name |
| `initial_dos_filing_date` | Initial DOS filing date |
| `county` | County associated with the corporation |
| `jurisdiction` | Entity jurisdiction |
| `entity_type` | Registered entity type |
| `dos_process_name` | Name associated with the DOS process address |
| `dos_process_address_1` | Process address street |
| `dos_process_city` | Process address city |
| `dos_process_state` | Process address state |
| `dos_process_zip` | Process address ZIP code |
| `scrapedAt` | Date and time the record was collected |

### Example Output

```json
{
  "dos_id": "4424185",
  "current_entity_name": "BUTCHY'S WINE & SPIRITS, INC.",
  "initial_dos_filing_date": "2013-06-27T00:00:00.000",
  "county": "Westchester",
  "jurisdiction": "New York",
  "entity_type": "DOMESTIC BUSINESS CORPORATION",
  "dos_process_name": "BUTCHY'S WINE & SPIRITS, INC.",
  "dos_process_address_1": "23 BUSHNEIL PLACE",
  "dos_process_city": "MOUNT VERNON",
  "dos_process_state": "NY",
  "dos_process_zip": "10550",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Company research:** Find active New York corporations and review their names, entity types, and filing dates.
- **Lead generation:** Build business prospect lists using corporation names and available address information.
- **Compliance checks:** Review public corporation records for business verification and due diligence.
- **Market research:** Analyse active corporations by county, jurisdiction, and entity type.
- **Registry monitoring:** Repeat collections and compare corporation records over time.
- **Data enrichment:** Add DOS identifiers, filing dates, and process addresses to existing business datasets.

### Working with Your Dataset

After the actor completes a run, access your collected corporation records in the Apify dataset.

Export your results in formats such as:

- JSON
- CSV
- Excel
- Other supported Apify dataset formats

Use the exported records for company research, reporting, compliance workflows, CRM enrichment, or further data processing.

### FAQ

**Who is this actor for?**

It is designed for researchers, compliance teams, analysts, and developers who need structured New York State active corporation records.

**What collection modes are available?**

You can choose Search, Filter, or Latest mode depending on how you want to retrieve corporation records.

**Can I filter corporations by county?**

Yes. Use Filter mode and provide a condition through the `where` parameter, such as `county = 'Westchester'`.

**How do I get the newest corporation records?**

Select `latest` mode. Records are ordered by initial DOS filing date, with the newest dates first.

**Can I export the results to Excel or CSV?**

Yes. You can export your Apify dataset in CSV, Excel, JSON, and other supported formats.

**Can I run it on a schedule?**

Yes. Configure Apify schedules to refresh your corporation dataset at your preferred intervals.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with the New York State Department of State or its owners. It collects information from publicly available records. Users are responsible for ensuring that their use of collected data complies with applicable laws and relevant terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to fetch. Search uses full-text $q, filter uses SoQL $where, latest orders by initial DOS filing date descending.

## `searchText` (type: `string`):

Full-text query sent as $q (search mode).

## `where` (type: `string`):

Raw SoQL $where clause, e.g. county = 'Westchester' (filter mode).

## `orderBy` (type: `string`):

SoQL $order override, e.g. initial_dos_filing_date DESC. Latest mode defaults to initial_dos_filing_date DESC.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds. Raise if you see HTTP 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "searchText": "Westchester",
  "where": "county = 'Westchester'",
  "orderBy": "",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "searchText": "Westchester"
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/new-york-state-active-corporations-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 = { "searchText": "Westchester" }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/new-york-state-active-corporations-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 '{
  "searchText": "Westchester"
}' |
apify call real-estate-api/new-york-state-active-corporations-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/new-york-state-active-corporations-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/c8XHL5fGraUiH8TEg/builds/h8esqDpFL8hFe03DG/openapi.json
