# NYC Elevator, Boiler & Electrical Records & Permits (`j0401/nyc-building-equipment`) Actor

NYC DOB equipment records: electrical and elevator permits, elevator compliance and boiler filings (~1.69M, daily). BIN/BBL, address, contractor, fees, status and dates where the feed publishes them (boiler is BIN-only). Filter by borough, status, type, ZIP, BIN or year; profile a building.

- **URL**: https://apify.com/j0401/nyc-building-equipment.md
- **Developed by:** [Wenhao Yang](https://apify.com/j0401) (community)
- **Categories:** Business, Real estate, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.03 / 1,000 nyc building equipment records

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

## NYC DOB Equipment Records - Elevator, Boiler & Electrical Permits

Every elevator permit application, elevator device compliance record, boiler inspection filing and electrical permit application filed with the New York City Department of Buildings - four DOB feeds in one actor, keyed to the building by BIN.

### Low cost

**From $0.00005 per record, down to $0.00003 at Gold** - charged per record delivered (or per aggregate row). No subscription, no minimum.

### What you get

| `corpus` | Rows (2026-11-09) | One row is |
|---|---|---|
| `electrical-permits` *(default)* | **598,530** | one electrical permit application (DOB NOW), filed 2017-12 -> 2026-11 |
| `elevator-permits` | **72,095** | one elevator permit application, filed 2017-12 -> 2026-11 |
| `elevator-compliance` | **120,741** | one elevator device and its current compliance status |
| `boiler-compliance` | **899,345** | one boiler inspection filing, 2017 -> 2026 (131 Excel-epoch sentinel rows are blanked) |

**1,690,711 rows** in total. All four feeds read as updated **2026-11-08**.

Every record carries its own `sourceUpdatedAt`, so you can see how fresh that feed was without calling anything else.

#### What each record holds

- **The filing** - `status`, `filingType`, `recordId` (job filing number, device number or boiler tracking number) and `description` of the work. The electrical feed adds `statusDetail` (the job's workflow state) and the elevator permit feed adds `filingIncludes` (what the filing covers: Alteration/Replacement, New Installation, Remove, Dismantle).
- **The device** - `deviceType` (elevator, escalator, dumbwaiter, accessibility lift, personnel hoist, conveyor, manlift, moving walk), `equipmentType` where the city publishes it, `pressureType` for boilers, `inspectionType`, `defectsExist`, `boilerId`, `boilerMake`, `boilerModel`. The elevator permit feed also carries its fee class in `buildingCategory` (`Other`, `3 Family`, `2 Family`).
- **The building** - `bin`, `bbl`, `block`, `lot`, `houseNumber`, `streetName`, `fullAddress`, `borough`, `zipCode`, `communityDistrict`, `councilDistrict`, `censusTract`, `nta`, `latitude`, `longitude`.
- **The parties** - the filing firm and its licence number (electrical: 2,270 distinct firms, 2,265 distinct licence numbers), plus `licenseType`. Boiler filings publish their licence type (`BB`, `O`, `P`, `E`, plus `PR` and `GC` on a few rows); every electrical filing is made by a licensed electrician, so that feed's value is always `Electrician`. Property owner name, owner business name where published, and owner type are delivered for electrical and elevator permit applications, exactly as published.
- **The money and dates** - `filingFee`, `totalFee`, `workFee`, `amountPaid`, `amountDue`, `estimatedCost` where the feed publishes them, plus the filing / issuance / completion / expiry dates. Dates are normalised to ISO `YYYY-MM-DD`. On the electrical feed the completion date is the city's **planned** end date (`plannedCompletionDate`); on revised jobs it can precede the filing date, so it is not a record of work completed.
- **Insurance on file** - general liability and workers' compensation carrier names where the feed publishes them.

### Modes

| Mode | What it does |
|---|---|
| `search` *(default)* | Rows from **one corpus** matching your filters. 50 by default, up to 10,000. A `bin` here filters within the selected corpus - use `profile` for the whole building. |
| `profile` | **Every equipment record for one building** - pass a 7-digit `bin` and get the electrical permits, elevator permits, elevator devices and boiler filings for that building in one dataset. A 10-digit `bbl` covers the three corpora that carry a BBL (the boiler feed does not). Up to **1,000 rows per corpus** (4,000 in total at most - about $0.20 at the entry price). It runs the full-corpus guard on all four feeds first, so it can take a minute or more when the source is slow. |
| `aggregate` | One count row per group (`groupKey` / `groupCount` / `groupBy`), e.g. electrical permits per borough or per year. **Billed per group returned**, not limited by `maxResults`; every group is returned up to the 500-group ceiling, and a dimension that outgrows it fails the run loudly instead of silently dropping the tail. |

The boiler feed publishes **only a BIN** - no address, borough or BBL. Borough, ZIP and BBL filters are rejected on that corpus with an explicit message rather than ignored; use `mode=profile` with a BIN to see the building's address from its other records.

### Examples

Counts below are matching rows measured 2026-11-09. The default `maxResults` is 50, so raise it to return the full set.

**Default - the 50 most recently filed electrical permit applications:**

```json
{}
```

**Escalator permit applications in Manhattan (550 records):**

```json
{"corpus": "elevator-permits", "deviceType": "Escalator", "borough": "Manhattan"}
```

**Boiler filings in 2026 where the inspection found defects (5,766 filings):**

```json
{"corpus": "boiler-compliance", "defectsExist": "Yes", "year": 2026}
```

**One building, all four feeds - BIN 1014813 (17 records):**

```json
{"mode": "profile", "bin": "1014813"}
```

**One electrical contractor in 2026 (145 filings):**

```json
{"corpus": "electrical-permits", "firmName": "AURORA", "year": 2026}
```

**Electrical permit applications per year:**

```json
{"mode": "aggregate", "corpus": "electrical-permits", "groupBy": "year"}
```

### Filters

`borough` / `status` / `deviceType` / `zipCode` / `bin` / `bbl` / `firmName` / `licenseNumber` / `keyword` (work description) / `defectsExist` / `pressureType` / `year` / `dateFrom` / `dateTo` / `recentDays`.

Support differs by corpus, and an unsupported filter is **rejected with a message**, never silently dropped - a dropped filter would return the unfiltered feed and bill per record.

- Available on all four corpora: `bin`, `year`, `dateFrom`/`dateTo`, `recentDays`, and `status` (exact value).
- Electrical + both elevator corpora: `borough`, `zipCode`, `bbl`.
- Electrical + elevator permit applications: `firmName`, `keyword`, `licenseNumber`.
- Boiler only: `defectsExist`, `pressureType` (and `licenseNumber`, which also works on electrical and elevator permits).

A `status` must be an exact source value, e.g. electrical `Permit Issued` / `Complete` / `Approved` / `Cancelled`, elevator permits `Signed Off` / `Permit Entire`, elevator compliance `Active` / `Removed` / `Work in Progress`, boiler `Accepted` / `Pre-Filing`. An unknown value is rejected and the run lists the accepted values.

### Good to know

- **A row is a filing, not a building.** 598,530 electrical filings sit on 213,468 distinct BINs; 72,095 elevator permit applications sit on 35,964 BINs; 899,345 boiler filings cover 116,834 distinct boilers. Buildings file repeatedly.
- **Small row-level quirks are delivered as filed.** The elevator permit feed has 29 job-filing/date collision groups (28 pairs and one 4-row group; 24 rows end up identical after projecting to the delivered fields) and the compliance feed has 197 device-number/status-date collision groups plus 6 rows with no device number; a handful of filings declare nine-figure `estimatedCost` values (9 rows at $1.7B); and 24 rows across the two elevator feeds carry 4- or 6-digit BINs, which the 7-digit `bin` filter cannot address. These are the source's own rows, not duplicates introduced here.
- **Some feed fields are dirty at the source.** 1,000 electrical `completionDate` values fall after 2050-01-01 (the extreme is 2280-12-18), and elevator expiry carries an Excel-epoch sentinel; only those impossible values are blanked - planned completion dates into the 2030s (28,834 in 2027 alone) are real and kept. A few ZIPs are malformed at the source (348 compliance rows carry a 1-digit ZIP; 3 electrical rows are malformed). The boiler feed stores its inspection date as `MM/DD/YYYY` text - date ranges and year groups on that corpus are compared chronologically, not as strings, and the guard fails the run if that format ever changes.
- **Boiler year aggregates** label the 131 Excel-epoch rows as `(blank)`, matching the blank `inspectionDate` on those records; `year=1900` is rejected.
- **Compliance is a status, not a verdict.** `elevator-compliance` reports the device state the city publishes (`Active`, `Removed`, `Work in Progress`, ...) plus the latest periodic inspection and Category 1 filing dates where present. `boiler-compliance` reports the filing's own `defectsExist` flag.
- **Every answer is visible.** If the result fills the `maxResults` window, or a profile corpus exceeds its 1,000-row window, the run also pushes one **uncounted** `_meta` row saying so (`windowFull` / `truncated`). An empty result pushes one too.
- **No run-level charge cap.** Cost is proportional to records delivered. `maxResults`, the per-corpus profile window and the group ceiling bound a single run.
- **Unfiltered runs and profiles are guarded.** Each feed is checked before an unfiltered query or a profile: row-count floors and key-field coverage (plus a boiler date-format check). A collapsed or restructured feed fails the run instead of returning silence. Narrowly filtered `search` runs rely on the same feed but do not repeat those scans.
- **Source and modification.** Data: NYC Department of Buildings open data (DOB NOW electrical permits, elevator permits, elevator compliance, boiler compliance), retrieved as published and updated by the city; each record carries its `source` table and `sourceUpdatedAt` date. Fields are renamed and normalised (dates to ISO, boroughs canonicalised, two boiler status strings rewritten to an en dash); values are otherwise unchanged. The city does not warrant the data.
- **Sibling products.** This actor is the row-level equipment feed. **NYC DOB Permits** covers general building work permits (a different feed). **NYC Property Profile** is a per-building summary that also queries these four DOB NOW equipment tables by BIN (counts and latest dates, not the full row set) alongside PLUTO, valuation, HPD, ECB, OATH, ACRIS and abatement data. The two products overlap on these records: each bills only the rows it returns, so calling both means paying for both responses.

### Personal data

Building-level, company-level and device-level records only. Property owner names appear exactly as published on the public filing and are delivered only for the electrical and elevator permit feeds; no individual is aggregated, scored or enriched, and applicant personal names are not exported (contractors arrive as firm name + licence number). A small number of filing firms are sole proprietors whose business name is a person's name, as published by the city.

Also in this account: **NYC DOB Permits** (building work permits), **NYC Property Profile** (per-building records joined by BBL/BIN), **NYC HPD Housing Violations** and **NYC Tax Lien Sale Lists**.

### Use it from an AI agent (MCP)

Connect any MCP client to `https://mcp.apify.com/?tools=j0401/nyc-building-equipment` to load this dataset as a single tool beside the tools you already have - same records, same per-record pricing.

# Actor input Schema

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

search = rows from one corpus (default). profile = every equipment record for one building, keyed by bin or bbl. aggregate = one count row per group (see groupBy).

## `corpus` (type: `string`):

Which feed to query. Blank = electrical-permits. electrical-permits ~599,000 rows; elevator-permits ~72,000; elevator-compliance ~121,000 devices; boiler-compliance ~899,000 filings (BIN only - no address or borough).

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

One of the five boroughs. Not available for boiler-compliance, which carries only a BIN.

## `status` (type: `string`):

Exact status string for the chosen corpus. electrical-permits: e.g. "Permit Issued", "Complete", "Approved", "Cancelled". elevator-permits: e.g. "Signed Off", "Permit Entire". elevator-compliance: "Active", "Removed", "Work in Progress". boiler-compliance: "Accepted", "Pre-Filing". Any other value is rejected with the allowed list.

## `deviceType` (type: `string`):

Elevator corpora only. "Moving Walk" exists only in elevator-compliance; "Manlift" is spelled that way in both.

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

Exact five-digit ZIP, e.g. "11206". Not available for boiler-compliance.

## `bin` (type: `string`):

Seven-digit Building Identification Number, e.g. "1014813". A filter in search mode; the building key in profile mode.

## `bbl` (type: `string`):

Ten-digit Borough-Block-Lot, e.g. "3027280001". The building key in profile mode for the three corpora that carry a BBL (not boiler-compliance).

## `firmName` (type: `string`):

Case-insensitive partial match on the filing firm, e.g. "AURORA". Available for electrical-permits and elevator-permits only.

## `licenseNumber` (type: `string`):

Exact licence number as filed. The format differs by corpus: electrical "010327", elevator permits "L - 038001", boiler "5578". Available for electrical-permits, elevator-permits and boiler-compliance.

## `keyword` (type: `string`):

Partial match inside the job description, e.g. "wiring", "moderniz". Available for electrical-permits and elevator-permits.

## `defectsExist` (type: `string`):

boiler-compliance only. "Yes" = defects found on the inspection (70,783 of 899,345 filings; 2,769 filings have no value; measured 2026-11-09).

## `pressureType` (type: `string`):

boiler-compliance only. Low Pressure 878,825; High Pressure 20,389; 131 blank (measured 2026-11-09).

## `year` (type: `integer`):

Calendar year on the corpus's main date (filing date; status date for elevator-compliance; inspection date for boiler-compliance), e.g. 2026. Cannot be combined with dateFrom/dateTo.

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

Inclusive start of the main date window, YYYY-MM-DD. The boiler feed stores MM/DD/YYYY text; ranges are converted to a chronological YYYYMMDD comparison.

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

Inclusive end of the main date window, YYYY-MM-DD.

## `recentDays` (type: `integer`):

Shortcut for a window ending today, e.g. 30. Cannot be combined with dateFrom/dateTo. 0 or blank = off.

## `maxResults` (type: `integer`):

Rows to return in search mode (default 50, maximum 10,000). When the window is capped, an uncounted \_meta row says so. Profile returns up to 1,000 rows per corpus.

## `groupBy` (type: `string`):

One dimension, returned with every group up to the 500-group ceiling; a dimension that outgrows the ceiling fails the run loudly rather than dropping the tail. electrical-permits: borough, status, zipCode, buildingUse, year. elevator-permits: borough, status, deviceType, zipCode, year. elevator-compliance: borough, status, deviceType, zipCode, year. boiler-compliance: status, defectsExist, pressureType, year. Switching corpus resets the valid set.

## Actor input object example

```json
{
  "mode": "",
  "corpus": "",
  "borough": "",
  "status": "",
  "deviceType": "",
  "zipCode": "",
  "bin": "",
  "bbl": "",
  "firmName": "",
  "licenseNumber": "",
  "keyword": "",
  "defectsExist": "",
  "pressureType": "",
  "dateFrom": "",
  "dateTo": "",
  "maxResults": 50,
  "groupBy": ""
}
```

# Actor output Schema

## `recordsUrl` (type: `string`):

Equipment records, building profiles or aggregate rows - as JSON

## `datasetUrl` (type: `string`):

No description

## `runUrl` (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 = {};

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,j0401/nyc-building-equipment"
        }
    }
}
```

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/YmZnUVkXdgMLFsHpX/builds/8KeVGBfe1g8ZVrnK7/openapi.json
