NYC Building Violations & Risk Score
Pricing
Pay per usage
NYC Building Violations & Risk Score
Look up New York City buildings by address, BBL, or management company and return normalized open-violation counts, overdue Class C counts, recent DOB job filings, and a transparent risk score built only from public NYC Open Data.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Nexus AI Solutions
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 days ago
Last modified
Categories
Features
Share
An Apify Actor from Nexus AI Solutions that looks up New York City tax lots and returns a clean, normalized row of public housing and buildings records.
This Actor uses only public NYC Open Data (Socrata) APIs and NYC Planning Labs GeoSearch. It does not scrape private sites, and it does not invent counts. Every number is a count of rows returned by the City's datasets at the time of the run.
It is not an official NYC grade, not legal advice, and not a prediction of future harm or liability. One tax lot (BBL) can cover more than one building or address, so counts are lot-level, not unit-level.
What it does
Give the Actor one or more of:
- Street addresses (resolved to a BBL; the house number must match)
- BBLs (10-digit borough-block-lot, hyphens optional)
- An owner or management company name (matched against the corporation name on active HPD multiple-dwelling registrations)
- A borough plus filters, or index mode, to list lots with the most open HPD Class C violations
For each lot it returns:
| Field | Meaning |
|---|---|
address, borough, bbl, bin | Lot identity |
management_company | Corporation name from HPD registration contacts (personal names are not requested or returned) |
open_hpd_total, open_class_a/b/c/i | Open Housing Maintenance Code violations (wvxf-dwi5) |
overdue_class_c | Open Class C rows whose certify-by or correct-by date is already past |
dob_active, ecb_active, ecb_in_default | Active DOB violations (3h2n-5cm9) and ECB violations (6bgk-3dad) |
recent_dob_filings | Job filings in the last 365 days from BIS (ic3t-wcy2) and DOB NOW (w9ak-ipjd) |
sr311_window | 311 requests in the chosen lookback window (erm2-nwe9) |
risk_score, risk_tier | Transparent heuristic described below |
fetched_at | Timestamp in America/New_York |
Example input
{"addresses": ["950 Woodycrest Avenue, Bronx"],"bbls": ["2025050150"],"managementCompany": "Livingston Management","borough": "Bronx","minOpenClassC": 0,"maxBuildings": 10,"days311": 90,"includeJobFilings": true,"indexMode": false}
You do not need every field. Addresses alone are enough for a single-lot lookup. Company name + maxBuildings is the typical portfolio scan. indexMode with an optional borough lists the lots with the most open Class C violations, then enriches each one.
Example output (shape)
Field values depend on what the City returns on the day you run it. This is the shape, not a cached result:
{"address": "950 WOODYCREST AVENUE, BRONX, NEW YORK, NY, USA","borough": "Bronx","bbl": "2025050xxx","open_hpd_total": 0,"open_class_c": 0,"overdue_class_c": 0,"open_class_b": 0,"dob_active": 0,"ecb_active": 0,"ecb_in_default": 0,"recent_dob_filings": 0,"sr311_window": 0,"risk_score": 0,"risk_tier": "Low","fetched_at": "2026-11-19T10:00:00-05:00","risk_score_note": "Heuristic lot score from public counts only. ..."}
Run it locally (see below) against live APIs to see current numbers. Do not treat any count in marketing copy as a permanent statistic.
Risk score
The score is a weighted sum of public counts, rounded to an integer:
| Component | Weight |
|---|---|
| Open HPD Class C | 10 |
| Overdue open Class C | 8 (added on top of the Class C weight) |
| Open HPD Class B | 3 |
| Open HPD Class A | 1 |
| Active DOB violation | 4 |
| Active ECB violation | 4 |
| Active ECB in default | 6 (added on top of the ECB weight) |
| 311 requests in the window, capped at 50 | 0.1 |
Tiers: Low (0–19), Elevated (20–49), High (50–99), Severe (100+). Component values are included on each row as risk_score_components.
Data sources
Confirmed against data.cityofnewyork.us:
- Housing Maintenance Code Violations —
wvxf-dwi5 - DOB Violations —
3h2n-5cm9 - DOB ECB Violations —
6bgk-3dad - 311 Service Requests from 2020 to Present —
erm2-nwe9 - Housing Maintenance Code Violations, NYCHA properties —
im9z-53hg(no open/closed status; counted only when not marked issued in error) - DOB Job Application Filings —
ic3t-wcy2 - DOB NOW: Build – Job Application Filings —
w9ak-ipjd - HPD Registration Contacts —
feu5-w2e2(corporation name only) - HPD Multiple Dwelling Registrations —
tesw-yqqr - Address → BBL: NYC Planning Labs GeoSearch
9hiw-49pz (DOB Licenses Filtered for Active) is a person-level license file. It has no BBL and is not included in these lot-level rows.
An optional Socrata app token may be supplied as the SOCRATA_APP_TOKEN environment variable for higher rate limits. It is not required for light use.
Use cases
- Property managers — portfolio scan by management company, or a one-building brief for a new takeover.
- Lenders and insurers — lot-level open-hazard and overdue counts before a close or renewal.
- Contractors — buildings with overdue Class C work in a borough, as a public lead list.
- Investors and researchers — a normalized feed of HPD, DOB, ECB, 311, and recent filings without hand-joining the City's files.
Suggested pay-per-result pricing
Set this in the Apify Console when you publish; this file is only a suggestion.
Each output row is one tax lot and typically requires several City API calls (geocode or registration lookup, HPD, DOB, ECB, 311, and optional filings). A starting point that matches that work:
- Pay-per-result: $0.03 to $0.05 per building row, plus Apify compute.
- Rental (optional): a modest monthly rental if you later offer a higher-volume plan, still billed per result for overage.
Do not advertise earnings, accuracy rates, or “typical” portfolio sizes. Price is set by the publisher and can be changed later. Publishing requires an Apify account (signup is separate from this repository).
Run locally (no Apify account)
cd apify-nyc-building-riskpython3 -m pip install -r requirements.txt # apify is optional for this pathpython3 src/run_local.py \--address "950 Woodycrest Avenue, Bronx" \--address "2980 West 28th Street, Brooklyn" \--max-buildings 2 \--out examples/last-run.json
Or test a company name:
$python3 src/run_local.py --management "Livingston Management" --borough Bronx --max-buildings 2
Run on Apify
- Create an Apify account and, in the Console, create a new Actor from this repository (or
apify pushonce the Apify CLI is logged in). - Paste the example input, or point the Actor at your own addresses.
- Set pay-per-result pricing in the store listing. The README text above can be used as the store description.
Limitations
- Lot-level, not apartment-level.
- DOB and ECB have no reliable BBL column in older extracts; the Actor joins on borough, block, and lot with several zero-paddings.
- GeoSearch results are rejected when the house number does not match the input address.
- NYCHA inspection rows in
im9z-53hgare recorded violations, not confirmed-open items. - Index mode ranks lots by open Class C count only, then enriches the top rows. It is not a complete census of every NYC building.
Built for Nexus AI Solutions. Source data belongs to the City of New York.