# Ny Real Estate Agents Brokers Scraper (`real-estate-api/ny-real-estate-agents-brokers-scraper`) Actor

NY Real Estate Agents & Brokers Scraper is a Python tool to extract agent names, license types, statuses, expiration dates, and associated brokerages from the NYS Department of State registry. It exports structured real estate datasets into clean CSV or JSON format

- **URL**: https://apify.com/real-estate-api/ny-real-estate-agents-brokers-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Security:** 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 Real Estate Agents and Brokers Scraper — New York License Records

![NY Real Estate Agents and Brokers Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/ny-real-estate-agents-brokers-scraper-cover.png)

Collect publicly available real estate salesperson and broker license records from the New York State Department of State open data portal. Retrieve business details, license holder names, license numbers, license types, addresses, and expiration dates. Filter records, explore dataset metadata, and export structured results as JSON, CSV, Excel, and other supported formats.

### Overview

This actor collects records from the Active Real Estate Salespersons and Brokers dataset published by New York State.

It supports full dataset collection, filtered searches, and dataset metadata retrieval. Use it to organize real estate agent and broker license records into an Apify dataset for research, business analysis, and lead discovery.

### Features

- Collect active New York real estate salesperson and broker records.
- Retrieve business names and addresses.
- Extract license holder names and license numbers.
- Identify license types, including salesperson and broker categories.
- Collect license expiration dates.
- Filter records by county or other available dataset fields.
- Retrieve dataset column names, types, and descriptions.
- Export results in JSON, CSV, Excel, and other supported formats.

### Collection Modes

**All Rows**

Collects records from the public dataset, up to the configured item limit.

**Filtered Rows**

Collects records matching supplied filter conditions. Use this mode to narrow results by county, business name, or other available fields.

**Dataset Metadata**

Retrieves information about the dataset's columns, including their names, types, and descriptions.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode: `rows`, `filtered`, or `metadata`. |
| `maxItems` | Integer | Maximum number of records to collect. |
| `orderBy` | String | Field or expression used to order collected records. |
| `where` | String | Optional filter condition for the filtered mode. |
| `requestDelaySecs` | Number | Delay between collection requests in seconds. |

### Example Input

**Collect real estate license records**

```json id="a8f4kv"
{
  "mode": "rows",
  "maxItems": 50,
  "orderBy": ":id",
  "requestDelaySecs": 1
}
```

**Filter by county**

```json id="m2x7qp"
{
  "mode": "filtered",
  "where": "county='KINGS'",
  "maxItems": 25,
  "requestDelaySecs": 1
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `business_name` | Real estate business or brokerage name. |
| `business_address_1` | Business street address. |
| `business_city` | Business city. |
| `business_state` | Business state. |
| `business_zip` | Business ZIP code. |
| `county` | County associated with the license record. |
| `license_holder_name` | Name of the licensed individual. |
| `license_expiration_date` | License expiration date. |
| `license_number` | Unique license number. |
| `license_type` | License classification, such as associate broker. |
| `scraped_at` | Date and time when the record was collected. |

**Note:** Some business or license details may be missing depending on the dataset record. License expiration dates should be checked before relying on a record for current licensing status.

### Example Output

```json id="p6w9jc"
{
  "business_name": "COLDWELL BANKER REALTY",
  "business_address_1": "278 MAMARONECK AVE",
  "business_city": "WHITE PLAINS",
  "business_state": "NY",
  "business_zip": "10605",
  "county": "NONE",
  "license_holder_name": "ACOCELLA BETH A",
  "license_expiration_date": "2028-02-24T00:00:00.000",
  "license_number": "30AC0961210",
  "license_type": "ASSOCIATE BROKER",
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Real Estate Research:** Explore licensed real estate professionals and brokerages across New York.
- **Business Prospecting:** Identify brokerages and licensed professionals for business research.
- **Market Analysis:** Study real estate license records across different counties.
- **Lead Discovery:** Build structured business contact research lists using publicly available business details.
- **Data Management:** Organize license records in spreadsheets, databases, and internal tools.
- **License Research:** Review license types and expiration dates for further verification.

### Working with Your Dataset

After the actor completes a run:

1. Open the actor's **Dataset** tab.
2. Review the collected agent and broker records.
3. Export the results as JSON, CSV, Excel, or another supported format.
4. Use the exported data for research, reporting, and business workflows.

### FAQ

**Who is this actor for?**

It is useful for real estate professionals, analysts, researchers, marketers, and developers who need structured New York real estate license records.

**Can I filter records by county?**

Yes. Use filtered mode with a condition matching the `county` field, such as `county='KINGS'`.

**Can I search for a specific brokerage?**

You can use filtered mode with conditions matching available dataset fields, including business names.

**Does the dataset include license expiration dates?**

Yes. The actor extracts the `license_expiration_date` field when it is available.

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

Yes. Configure an Apify Schedule to refresh the dataset automatically at your preferred interval.

**Can I export the collected records?**

Yes. Apify supports JSON, CSV, Excel, and other dataset export formats.

### 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. It collects publicly available information. Users are responsible for how they use, store, and redistribute collected data.

### 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 thing 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 scrape.

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

SoQL $where clause, e.g. county='KINGS'

## `q` (type: `string`):

Full-text search ($q) across text columns

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

SoQL $order (stable paging needs a unique order)

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

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

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `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": "rows",
  "where": "",
  "q": "",
  "orderBy": ":id",
  "maxItems": 100,
  "requestDelaySecs": 1,
  "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 = {};

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

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/ny-real-estate-agents-brokers-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 '{}' |
apify call real-estate-api/ny-real-estate-agents-brokers-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-real-estate-agents-brokers-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/OvziPwHOzeLeMeWzy/builds/5ycHMfPsWxYGbyqoe/openapi.json
