NYC Building Violations API
New York City Department of Buildings (DOB) and Environmental Control Board (ECB) building violations by building, street or borough: violation number, building id, block and lot, issue date, type, severity, status, hearing outcome and ECB penalty.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/nyc-building-violations/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"kind":"dob"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
15 fields: 14 here, 1 technical one under Technical details.
Basics
- Kind
dob or ecb: which city list the violation comes from.
Example ecb
- Violation number
The violation number printed on the notice.
Example 39562924H
- Bin
NYC Building Identification Number.
Example 1091929
- Borough name
Example Manhattan
- Tax block number
Example 01425
- Tax lot number
Example 0128
- Violation type
Kind of violation, such as Construction or Elevator.
Example Unknown
- Category
DOB violation category text, or ECB severity class.
Example CLASS - 2
- Disposition
DOB disposition comment, or the ECB hearing result.
Example PENDING
- Status
Current status, such as ACTIVE, Resolved, Dismissed or RESOLVE.
Example ACTIVE
- Description
The inspector's description of the violation, in plain text.
Example BC 3303.4.1 AT THE TIME OF INSPECTION, OBSERVED CONSTRUCTION MATERIALS, LOOSE REBAR, DEBRIS, ELECTRICAL CORDS, AND A…
Prices
- Penalty amount
ECB penalty imposed, in US dollars.
Example 2,500.00
Location
- Address
Street address of the property, when given.
Example 221 WEST 37 STREET
Dates
- Issue date
The day the violation was issued.
Example Dec 2, 2026
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idThe city record id: the DOB record number, or the ECB violation number.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
kind | text | Kind | 3 of 3 |
violation_number | text | Violation number | 3 of 3 |
bin | text | Bin | 3 of 3 |
borough | text | Borough name | 3 of 3 |
block | text | Tax block number | 3 of 3 |
lot | text | Tax lot number | 3 of 3 |
address | text | Address | 3 of 3 |
issue_date | date | Issue date | 3 of 3 |
violation_type | text | Violation type | 3 of 3 |
category | text | Category | 3 of 3 |
disposition | text | Disposition | 3 of 3 |
penalty_amount | money | Penalty amount | 3 of 3 |
status | text | Status | 3 of 3 |
description | text | Description | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Kind | Violation number | Bin | Borough name | Tax block number | Tax lot number | Violation type | Category | Disposition | Status | Description | Penalty amount | Address | Issue date |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ecb | 39562924H | 1091929 | Manhattan | 01425 | 0128 | Unknown | CLASS - 2 | PENDING | ACTIVE | BC 3303.4.1 AT THE TIME OF INSPECTION, OBSERVED CONSTRUCTION MATERIALS, LOOSE REBAR, DEBRIS, ELECTRICAL CORDS, AND A SIGNIFICANT STEP/GAP IN THE WALKING SURFACE, CREATING TRIPPING HAZARDS FOR WORKERS. REMOVE OB | 2,500.00 | 221 WEST 37 STREET | Dec 2, 2026 |
| 2 | ecb | 39562923X | 1091929 | Manhattan | 01425 | 0128 | Construction | CLASS - 2 | PENDING | ACTIVE | AT THE TIME OF INSPECTION, OBSERVED A CONSTRUCTION FENCE IN PLACE WITH UNAUTHORIZED COMMERCIAL ADVERTISING POSTED ON THE FENCE, CONTRARY TO APPLICABLE CODE REQUIREMENTS.REMOVE ALL UNAUTHORIZED COMMERCIAL ADVERT | 2,500.00 | 221 WEST 37 STREET | Dec 2, 2026 |
| 3 | ecb | 39562922Y | 1091929 | Manhattan | 01425 | 0128 | Unknown | CLASS - 2 | PENDING | ACTIVE | BC 3301.5 & 1926.701(B) AT TIME OF INSPECTION, OBSERVED NO PROTECTIVE CAPS PROVIDED ON EXPOSED PROTRUDING REINFORCING STEEL (REBAR) AT THE CONSTRUCTION SITE, CREATING AN IMPALEMENT HAZARD TO WORKERS WHO MAY FAL | 2,500.00 | 221 WEST 37 STREET | Dec 2, 2026 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Data is as NYC Open Data publishes it, refreshed daily by the city; recent violations can appear a day or more after they are issued. Used under the NYC Open Data terms of use.
- Pick one list per run with kind: dob (DOB violations, no penalty amounts) or ecb (ECB violations, with penalty amounts). They are not merged in one run.
- At most 10,000 violations per run, newest first; narrow the search by borough, street, building id or from_date to reach more.
- penalty_amount is filled only for ecb violations. Respondent names are not included.
- The city portal is sometimes slow or briefly unavailable and allows only a few requests a second, so a large run can take a few minutes.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.