NYC HPD Violation Monitor: New Housing Violations by Building avatar

NYC HPD Violation Monitor: New Housing Violations by Building

Pricing

from $2.00 / 1,000 violation returneds

Go to Apify Store
NYC HPD Violation Monitor: New Housing Violations by Building

NYC HPD Violation Monitor: New Housing Violations by Building

Monitor NYC housing maintenance code violations and complaints by building BBL with automated alerts for new Class A, B, and C violations.

Pricing

from $2.00 / 1,000 violation returneds

Rating

0.0

(0)

Developer

Adriana Voss

Adriana Voss

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Monitor NYC housing maintenance code violations and complaints by building BBL, with automated alerts for newly issued Class A, B, and C violations.

Search official New York City Department of Housing Preservation and Development (HPD) open data by 10-digit Borough-Block-Lot (BBL) identifier. Turn on monitoring mode to receive only violations newly issued or recorded since your last scheduled run, billed per returned violation and completely free on quiet days with no new violations.

Real estate investors, property managers, compliance officers, and tenant advocates use this actor to track habitability issues, lead paint orders, and heat/hot water complaints across single properties or multi-building portfolios.

How to use

  1. In the Apify Console. Open the actor page and click Start — the bbls field is already pre-filled with a working example. Results land in the run's dataset as soon as each item is found.
  2. Via the API. Call it directly with a POST request — no Console needed once you have an API token:
    curl "https://api.apify.com/v2/acts/accountable_eel~us-nyc-hpd-violation-monitor/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"bbls":["3030310015"]}'
  3. On a schedule. Save this actor as an Apify Task with the input you want, then add a Schedule (hourly, daily, weekly) so it runs on its own — no server of your own required.

Input

{
"bbls": [
"3030310015"
]
}

One 10-digit BBL number per line (e.g. 3030310015 or 3-03031-0015). Format is Borough (1 digit: 1=Manhattan, 2=Bronx, 3=Brooklyn, 4=Queens, 5=Staten Island) + Block (5 digits) + Lot (4 digits). Accepted formats: 3030310015, 1000010001, 3-03031-0015.

Filters apply to violation status (all, Open, Close) and violation class (A non-hazardous, B hazardous, C immediately hazardous, I order).

Output

One row per violation. Missing or non-applicable values are null (never 0 or empty strings). Every row includes the sourceUrl and scrapedAt timestamp.

queryfoundstatusbblviolationIdbuildingIdregistrationIdborohouseNumberstreetNamezipapartmentstoryblocklotclassinspectionDateapprovedDateoriginalCertifyByDateoriginalCorrectByDateorderNumbernovIdnovDescriptionnovIssuedDatecurrentStatuscurrentStatusDatenovTypeviolationStatusrentImpairinglatitudelongitudecommunityBoardcouncilDistrictcensusTractbinntasourceUrlisNewfirstSeenAtscrapedAt
3030310015trueOK<story / floor><building identification number (bin)><neighborhood (nta)>1970-01-01T00:00:00.000Z

A building with no matching violations returns a single row with "found": false and is never charged. When monitoring is active, quiet runs with no new violations return 0 billable violations and incur zero per-event charge.

Pricing

  • Violation returned: $3 per 1,000 violations (GOLD) / $4 per 1,000 violations (FREE)

Plus a platform start fee per run. Charged once per returned violation row; non-matching buildings and quiet monitoring runs with no new violations are never charged.

Limits

  • Public NYC Open Data (Socrata) rate limits apply. For large portfolios (hundreds of buildings), supply an optional Socrata app token in the appToken input.
  • Landlord and owner personal contact information is omitted in compliance with privacy guidelines. Only public property identifiers and municipal violation records are returned.

Example runs

Paste any of these into the Input tab and press Start. All three return rows with no key, no token, and no account of your own beyond an Apify login.

1. Default single building BBL lookup. Returns recent violations for 22 Stagg Street, Brooklyn:

{
"bbls": ["3030310015"],
"maxItems": 25
}

2. Portfolio monitoring for new Class C immediately hazardous violations. Billed only when new emergency violations occur:

{
"bbls": ["3030310015"],
"violationClass": "C",
"onlyNewSinceLastRun": true,
"deltaName": "portfolio-c-alerts"
}

3. Open violations check. Returns all currently open housing maintenance code violations:

{
"bbls": ["3030310015"],
"violationStatus": "Open",
"maxItems": 50
}

Use it from Clay, n8n, Make, or an AI agent

This actor runs synchronously over plain HTTP — call it directly from a script, a workflow tool, or an AI agent, no Apify Console needed once you have an API token.

curl "https://api.apify.com/v2/acts/accountable_eel~us-nyc-hpd-violation-monitor/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-X POST \
-H "Content-Type: application/json" \
-d '{"bbls":["3030310015"]}'

n8n. Add an HTTP Request node: Method POST, URL https://api.apify.com/v2/acts/accountable_eel~us-nyc-hpd-violation-monitor/run-sync-get-dataset-items?token=<YOUR_TOKEN>, Body Content Type JSON, JSON Body {"bbls":["3030310015"]} (swap in an expression from an earlier node for a real value).

Clay. Add an "HTTP API" column: Method POST, URL https://api.apify.com/v2/acts/accountable_eel~us-nyc-hpd-violation-monitor/run-sync-get-dataset-items?token=<YOUR_TOKEN>, Body {"bbls":["{{building}}"]}, mapping the row's building into the bbls array.

MCP. In Claude, Cursor, or any MCP client with the Apify MCP server, ask for "nyc hpd violations lookup" — the agent will find and run this actor.