# NYC Building Permits Scraper (`parseforge/nyc-building-permits-scraper`) Actor

Collects NYC building permits from the Department of Buildings public feeds. Each row returns job number, address, owner, filing date, and work description, filtered by borough, ZIP code, job type, or date range.

- **URL**: https://apify.com/parseforge/nyc-building-permits-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 11 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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

### NYC Building Permits Scraper

**Scrape NYC building permits from the Department of Buildings, filtered by borough, ZIP code, job type, or date range.** Each permit includes job number, address, owner, filing date, and work description. Export to CSV, JSON, Excel, or XML.

The NYC Department of Buildings public dataset holds millions of permits, but querying it manually means clicking through a web portal one page at a time. This Actor reads the DOB NOW and historical permit feeds directly, applies your filters as it goes, and returns every matching record in a flat, consistent schema. No API key, no browser automation, no manual downloads.

| Who uses it | What they scrape NYC Department of Buildings for |
|---|---|
| Contractors and subcontractors | Find new construction and alteration jobs filed in their service ZIP codes this week. |
| Real estate developers | Track demolition and new building filings across a borough to spot development hot spots. |
| Building material suppliers | Identify active job sites by permit type and filing date to target sales outreach. |
| Insurance underwriters | Audit recent major alteration permits for a portfolio of addresses to assess risk. |

### What it does

This Actor collects NYC building permits from the DOB NOW and historical datasets and returns each permit as a flat row with job number, address, owner, filing date, and work description.

- 🏗️ **Borough and ZIP filters:** narrow results to a single borough, a ZIP code, or both together.
- 📋 **Job type selection:** isolate New Buildings (NB), Major Alterations (A1), Minor Alterations (A2/A3), or Demolitions (DM).
- 📅 **Date range control:** pull only permits filed between two dates, so you get fresh leads or a historical snapshot.
- 🗄️ **Dual dataset support:** query the active DOB NOW permits, the historical archive, or both in one run.

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

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

**📬 Build a contractor lead list.**

A construction lead service runs the Actor weekly for all five boroughs, filters to NB and A1 job types filed in the last seven days, and delivers fresh permit leads to subscribers.

**🏘️ Monitor a neighborhood for new development.**

A community board pulls all New Building and Demolition permits in their ZIP codes each month to track changing land use before public hearings.

**📊 Analyze alteration activity by borough.**

A market analyst collects a full year of A1 permits across Brooklyn and Queens, groups them by ZIP code, and ranks neighborhoods by renovation investment.

**🚚 Find active job sites for material delivery.**

A lumber supplier filters for New Building permits filed in the last 90 days in Staten Island and uses the address list to plan delivery routes.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key or registration** | Reads the public DOB feeds directly, no account needed. |
| **Fixed flat schema** | Every permit lands as the same columns, ready for a spreadsheet or database. |
| **Up to 1,000,000 permits per run** | One click pulls a full borough year without pagination scripts. |
| **CSV, JSON, Excel, XML export** | Drop the dataset into your existing lead list or GIS tool. |

### How it compares

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

| | NYC Building Permits 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 Buildings 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 with borough, ZIP code, job type, and a date range, alone or in combination, and filters run as each permit is read so only matches 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.003 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.30 |
| 1,000 results | $3.00 |
| 10,000 results | $30.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 Building Permits Scraper](https://apify.com/parseforge/nyc-building-permits-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 Buildings 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-building-permits-scraper"
```

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

### Troubleshooting

**Why am I getting no results?**

Check that your date range and filters are not too narrow. Try widening the date range, removing the ZIP code filter, or setting the dataset to 'both'. Also confirm the borough name is spelled exactly as shown in the dropdown.

**The run stopped before collecting all permits I expected.**

Check the 'Maximum permits' setting. If it is set to a number lower than the total matching permits, the Actor stops early. Increase the maxItems value and rerun.

**Some permits are missing from my results.**

If you set the dataset to 'dob_now' only, older permits will not appear. Switch to 'historical' or 'both'. Also verify that your date range covers the filing dates of the permits you expect.

**The date filter is not working as I expected.**

Use the YYYY-MM-DD format exactly. The dateFrom and dateTo fields compare against the permit filing date. If a permit was filed on the boundary date, it is included.

**Can I get the full plan or document for a permit?**

This Actor returns the permit metadata only. Full plan documents and filings are not included in the public data feed and must be requested separately from the NYC Department of Buildings.

### FAQ

| Question | Answer |
|---|---|
| What data does each permit row contain? | Each row includes the job number, filing date, work type, job description, owner name, address, borough, ZIP code, and the dataset source (DOB NOW or historical). The exact field list is shown in the sample output on the Actor's page. |
| Can I filter by a specific address? | The input schema supports borough, ZIP code, job type, and date range filters. Address-level filtering is not a direct input, but you can filter the exported dataset by the address column after the run completes. |
| What is the difference between DOB NOW and historical datasets? | DOB NOW contains active and recently filed permits. The historical dataset covers older records. Setting the dataset input to 'both' merges the two sources into one output. |
| How far back do the historical permits go? | The NYC Department of Buildings historical dataset includes permits filed over many years. The exact start date varies by borough and job type, but records often reach back decades. |
| Does this Actor require a login or API key? | No. It reads the public NYC Open Data feeds directly. You do not need a DOB account, an API key, or any registration. |
| Can I run this on a schedule? | Yes. You can set the Actor to run daily or weekly on Apify. Each run will collect permits filed within your chosen date range, so a weekly run with a rolling seven-day window keeps your dataset fresh. |
| What export formats are supported? | You can export the results as CSV, JSON, Excel, or XML from the Apify dataset tab. |
| Is there a limit on how many permits I can collect? | You set the maximum permits per run, up to 1,000,000. The Actor stops when it reaches that count or when no more permits match your filters. |
| Which NYC boroughs are supported? | All five: Manhattan, Brooklyn, Queens, Bronx, and Staten Island. You can select one borough or leave the field empty to search across all five. |
| What job types can I filter by? | NB (New Building), A1 (Major Alteration), A2 and A3 (Minor Alterations), and DM (Demolition). Leave the field empty to include all job types. |

### 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 City of New York. 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

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

Filter permits by NYC borough. Leave empty for all boroughs.

## `zipCode` (type: `string`):

Filter permits by ZIP code (e.g. 10001).

## `jobType` (type: `string`):

Filter by job type: NB=New Building, A1=Major Alteration, A2/A3=Minor, DM=Demolition.

## `dateFrom` (type: `string`):

Only include permits filed on or after this date (YYYY-MM-DD).

## `dateTo` (type: `string`):

Only include permits filed on or before this date (YYYY-MM-DD).

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

Which dataset to query: dob_now (active), historical, or both (default).

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

Maximum number of building permits to collect per run.

## Actor input object example

```json
{
  "dataset": "both",
  "maxItems": 10
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/nyc-building-permits-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-building-permits-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-building-permits-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/nyc-building-permits-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/8brGigPBm8p7iYeNc/builds/RBmEFrWjdQB7iMz1V/openapi.json
