# Ny Corporation Filings Scraper (`real-estate-api/ny-corporation-filings-scraper`) Actor

NY Corporation Filings Scraper is a Python tool to extract Department of State (DOS) ID numbers, filing IDs, entity names, filing dates, effective dates, governing statutory laws, and registered addresses from New York State Open Data

- **URL**: https://apify.com/real-estate-api/ny-corporation-filings-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

### NY Corporation Filings Scraper — New York Business Filing Records Extraction

![NY Corporation Filings Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/ny-corporation-filings-scraper-cover.png)

Collect New York Department of State (NY DOS) corporation filing records and export them as structured JSON, CSV, or Excel datasets. Retrieve filing numbers, filing dates, approval dates, effective dates, entity types, and document types for company research, compliance checks, and business intelligence.

### Overview

The NY Corporation Filings Scraper helps researchers, analysts, and developers collect public entity filing records from New York State's open data.

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

### Features

- **Keyword search:** Find filing records using text searches.
- **Custom filtering:** Narrow results using conditions such as entity type or filing date.
- **Latest filings:** Retrieve newest records first using filing dates.
- **Filing identifiers:** Collect official filing numbers.
- **Date information:** Retrieve filing, approval, and effective dates.
- **Entity classification:** Identify corporation and entity types.
- **Document details:** Collect associated filing document types.
- **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 filing records using keywords or phrases. For example, search for `LIMITED LIABILITY` to find matching entity filing records.

**2. Filter Mode**

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

**3. Latest Mode**

Collect the newest filing records first, ordered by 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 filing 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": "LIMITED LIABILITY",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

**Filter Mode**

```json
{
  "mode": "filter",
  "where": "entitytype = 'DOMESTIC LIMITED LIABILITY COMPANY'",
  "maxItems": 25,
  "requestDelayMs": 1000
}
```

**Latest Mode**

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

### What Data Does This Actor Extract?

The actor collects New York corporation filing information, including:

| Field | Description |
|---|---|
| `film_num` | Filing identification number |
| `date_filed` | Date the filing was submitted |
| `approved_date` | Filing approval date |
| `eff_date` | Effective date of the filing |
| `mod_certcode` | Modification or certificate code |
| `entitytype` | Registered entity type |
| `documenttype` | Filing document type |
| `scrapedAt` | Date and time the record was collected |

### Example Output

```json
{
  "film_num": "210621000105",
  "date_filed": "2021-06-21T00:00:00.000",
  "approved_date": "2021-06-21T00:00:00.000",
  "eff_date": "2021-06-21T00:00:00.000",
  "mod_certcode": "01DA A",
  "entitytype": "DOMESTIC LIMITED LIABILITY COMPANY",
  "documenttype": "ARTICLES OF ORGANIZATION",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Company research:** Find New York business filings and review entity types and filing dates.
- **Compliance checks:** Examine public filing records for business verification and due diligence.
- **Business intelligence:** Analyse corporation filing activity and identify trends.
- **Lead generation:** Build datasets of newly filed business entities for research and prospecting.
- **Registry monitoring:** Track new filings and compare records across scheduled collections.
- **Data enrichment:** Add filing identifiers and registration details to existing business datasets.

### Working with Your Dataset

Once the actor completes a run, access your collected 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, or further data processing.

### FAQ

**Who is this actor for?**

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

**What collection modes are available?**

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

**How do I collect the newest filings?**

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

**Can I filter by entity type?**

Yes. Use `filter` mode and provide a condition through the `where` parameter.

**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 filing 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 date filed descending.

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

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

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

Raw SoQL $where clause, e.g. date_filed > '2021-01-01' (filter mode).

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

SoQL $order override, e.g. date_filed DESC. Latest mode defaults to date_filed 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": "LIMITED LIABILITY",
  "where": "entitytype = 'DOMESTIC LIMITED LIABILITY COMPANY'",
  "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": "LIMITED LIABILITY"
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/ny-corporation-filings-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": "LIMITED LIABILITY" }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/ny-corporation-filings-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": "LIMITED LIABILITY"
}' |
apify call real-estate-api/ny-corporation-filings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/ny-corporation-filings-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/r5nW3Pbgl9ptjdPTu/builds/NeVqBr8enrFDPMKfc/openapi.json
