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.

Try it
Ready-made, maintained by usRecords, 15 fieldsv1.0

Data from data.cityofnewyork.us/resource/3h2n-5cm9.json

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

Kindoptional
Which list to read: dob for Department of Buildings violations, ecb for Environmental Control Board violations with penalties.
Boroughoptional
Only this borough: manhattan, bronx, brooklyn, queens or staten-island.
Streetoptional
Words from the street name, for example BROADWAY.
Example: BROADWAY
Binoptional
Only this building, by its NYC Building Identification Number.
Example: 1006588
From dateoptional
Only violations issued on or after this day, as YYYYMMDD or YYYY-MM-DD.
Example: 20250101

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
Endpoint
POSThttps://pullrow.dev/v1/apis/nyc-building-violations/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

kindtext
Which list to read: dob for Department of Buildings violations, ecb for Environmental Control Board violations with penalties.
default: dobexample: dobone of: dob, ecb
boroughtext
Only this borough: manhattan, bronx, brooklyn, queens or staten-island.
example: manhattanone of: manhattan, bronx, brooklyn, queens, staten-island
streettext
Words from the street name, for example BROADWAY.
example: BROADWAY
bintext
Only this building, by its NYC Building Identification Number.
example: 1006588
from_datetext
Only violations issued on or after this day, as YYYYMMDD or YYYY-MM-DD.
example: 20250101

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
kindtextKind3 of 3
violation_numbertextViolation number3 of 3
bintextBin3 of 3
boroughtextBorough name3 of 3
blocktextTax block number3 of 3
lottextTax lot number3 of 3
addresstextAddress3 of 3
issue_datedateIssue date3 of 3
violation_typetextViolation type3 of 3
categorytextCategory3 of 3
dispositiontextDisposition3 of 3
penalty_amountmoneyPenalty amount3 of 3
statustextStatus3 of 3
descriptiontextDescription3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordKindViolation numberBinBorough nameTax block numberTax lot numberViolation typeCategoryDispositionStatusDescriptionPenalty amountAddressIssue date
1ecb39562924H1091929Manhattan014250128UnknownCLASS - 2PENDINGACTIVEBC 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 OB2,500.00221 WEST 37 STREETDec 2, 2026
2ecb39562923X1091929Manhattan014250128ConstructionCLASS - 2PENDINGACTIVEAT 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 ADVERT2,500.00221 WEST 37 STREETDec 2, 2026
3ecb39562922Y1091929Manhattan014250128UnknownCLASS - 2PENDINGACTIVEBC 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 FAL2,500.00221 WEST 37 STREETDec 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.
Known limits
  • 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.