# NYC Property Sales Scraper (`parseforge/nyc-property-sales-scraper`) Actor

Scrapes NYC property sales from the DOF Rolling Sales dataset and returns each sale as a flat row with price, address, borough, tax class, and building details. Filter by borough and export up to a million records.

- **URL**: https://apify.com/parseforge/nyc-property-sales-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 2 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### NYC Property Sales Scraper

**Scrape NYC property sales records from the official DOF Rolling Sales dataset, up to a million per run.** Every sale includes price, address, borough, tax class, and building details. No API key or registration. Export to CSV, JSON, Excel, or XML.

The NYC Department of Finance publishes every property sale as a public rolling sales file, but the raw data is a large, periodically updated spreadsheet that is hard to filter and query. This Actor reads that dataset directly, lets you narrow by borough, and returns each sale as a clean, flat row you can download immediately. No manual downloads, no parsing PDFs, no wrangling Excel files.

| Who uses it | What they scrape NYC Department of Finance for |
|---|---|
| Real estate investors | Screen recent sales in a target borough to find comps and off-market leads. |
| Appraisers and assessors | Pull verified sale prices and property details for valuation reports. |
| Data journalists | Analyze sales patterns across boroughs to report on housing market shifts. |
| Academic researchers | Build longitudinal datasets of NYC property transactions for urban economics studies. |

### What it does

This Actor collects NYC property sales from the DOF Rolling Sales dataset and returns each sale as a flat row with price, address, borough, tax class, and building characteristics.

- 🏙️ **Borough filter:** limit results to Manhattan, Bronx, Brooklyn, Queens, or Staten Island.
- 📊 **Flat row output:** every sale is one row with price, address, tax class, square footage, and sale date.
- 📦 **Bulk extraction:** collect up to a million sales in a single run for large-scale analysis.
- 💾 **Multi-format export:** download your dataset as CSV, JSON, Excel, or XML.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with NYC Department of Finance data

**🏠 Find comparable sales.**

An investor pulls the last 500 sales in Brooklyn to identify recent comps for a multifamily property they are underwriting.

**📈 Track borough price trends.**

A market analyst collects quarterly sales for Queens and builds a time-series dashboard of median prices by neighborhood.

**📰 Investigate property flips.**

A journalist scrapes Manhattan sales over two years to flag properties bought and resold within six months at large markups.

**🏛️ Study tax class shifts.**

A researcher extracts all Staten Island sales to measure how often residential properties are reclassified after a sale.

### Why choose this scraper

|  | What you get |
|---|---|
| **Official source** | Data comes directly from the NYC DOF Rolling Sales file, the same dataset used by assessors and title companies. |
| **No manual work** | Skip the periodic spreadsheet download and get structured data on demand. |
| **Borough precision** | Target one borough at a time to keep datasets focused and manageable. |
| **Scalable volume** | Pull a handful of comps or a million records for a citywide study in one run. |

### How it compares

No other Store actor targets NYC Department of Finance the same way, so the honest comparison is with the alternatives teams actually weigh.

| | NYC Property Sales Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When NYC Department of Finance changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Drive the Actor by setting a maximum number of sales and optionally filtering to a single borough; the filter runs as records are read so only matching sales reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10
}
```

A larger pull:

```json
{
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [NYC Property Sales Scraper](https://apify.com/parseforge/nyc-property-sales-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to NYC Department of Finance through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/nyc-property-sales-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting fewer results than my maxItems setting?**

The Actor returns only the records available in the current DOF file. If you set maxItems to 100,000 but the borough you selected has only 5,000 sales, you will receive 5,000 rows. Try removing the borough filter to pull from all five boroughs.

**Why are some sale prices zero or blank?**

The DOF dataset includes non-arms-length transfers such as foreclosures, estate settlements, and nominal transfers, which may show a zero or blank sale price. This is normal and reflects the source data.

**The run timed out. What should I do?**

Large extractions can take time. Try reducing maxItems or filtering to a single borough to keep the run within Apify's memory and time limits. You can also increase the run timeout in your Actor settings.

**Why do I see duplicate sales?**

The DOF occasionally lists the same property transfer more than once, especially when multiple lots are involved. Deduplicate on the address and sale date columns in your analysis tool if needed.

**The data looks different from the last time I ran this Actor.**

The DOF updates the rolling sales file periodically, and older records may be revised or removed. Changes in the output reflect updates to the source dataset, not a change in the Actor.

### FAQ

| Question | Answer |
|---|---|
| What is the NYC DOF Rolling Sales dataset? | It is the official public record of every property sale in New York City, published periodically by the Department of Finance. It includes sale price, date, address, tax class, building dimensions, and other characteristics. |
| How often is the data updated? | The DOF publishes new rolling sales files several times a year. This Actor reads the latest available file each time it runs, so you always get the most current public release. |
| Can I filter by sale price or date? | The Actor currently supports filtering by borough only. You can apply price and date filters on the exported dataset using your own analysis tools. |
| Does this include commercial property sales? | Yes. The dataset covers all tax classes, including commercial, residential, industrial, and vacant land. Use the tax class field in your output to separate them. |
| What does the borough code mean? | 1 is Manhattan, 2 is the Bronx, 3 is Brooklyn, 4 is Queens, and 5 is Staten Island. Leave the filter empty to collect sales from all five boroughs. |
| Is there a limit on how many records I can pull? | You can set a maximum of up to one million sales per run. The full dataset typically contains fewer records than that, so setting a high number will return everything available. |
| Does this Actor require an API key or login? | No. It reads the public DOF dataset directly. You do not need to register, authenticate, or obtain an API key. |
| Can I get the data as a spreadsheet? | Yes. You can export your results as CSV or Excel, both of which open directly in spreadsheet applications. |
| What if a sale has missing fields? | Some records in the DOF dataset have blank fields. The Actor returns whatever the source provides; missing values appear as empty cells in your output. |
| Does this include co-op and condo sales? | Yes. Co-op and condo transactions are included and can be identified by their tax class codes in the output. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by New York City Department of Finance. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

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

How many property sales to collect per run.

## `borough` (type: `string`):

Filter to one borough by code (1=Manhattan, 2=Bronx, 3=Brooklyn, 4=Queens, 5=Staten Island).

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped NYC Property Sales records

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/nyc-property-sales-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parseforge/nyc-property-sales-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 '{
  "maxItems": 10
}' |
apify call parseforge/nyc-property-sales-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/nyc-property-sales-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/RftL6lSrmK9TJXTBy/builds/3fp7FbJmbyToBzbPJ/openapi.json
