Code Violations Scraper: Distressed Property & Owner Leads avatar

Code Violations Scraper: Distressed Property & Owner Leads

Pricing

from $2.00 / 1,000 violation delivereds

Go to Apify Store
Code Violations Scraper: Distressed Property & Owner Leads

Code Violations Scraper: Distressed Property & Owner Leads

US code violations and code-enforcement cases from city open-data portals: NYC (HPD, DOB, ECB), Chicago, Los Angeles, San Francisco, Austin, Seattle and 8 more. Address, violation, status, dates, parcel, NYC owner of record. Motivated-seller leads. Export to JSON, CSV or Excel, or via API.

Pricing

from $2.00 / 1,000 violation delivereds

Rating

0.0

(0)

Developer

Steady Scrape

Steady Scrape

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Code Violations Scraper: distressed property and owner leads

Code Violations Scraper collects US code violations and code-enforcement cases from the open-data portals of US cities, newest first: New York City (HPD housing violations, DOB violations, DOB ECB violations), Chicago (building violations and Buildings hearings), Los Angeles, San Francisco, Austin, Seattle, New Orleans, Orlando, Norfolk, Mesa, Cincinnati, Montgomery County (MD), Cambridge (MA) and Reading (PA). Each violation comes as one clean row with the same columns everywhere: case number, date opened, status (open or closed), violation code and description, address, ZIP, parcel and coordinates. New York's violations carry the owner of record of the lot from NYC PLUTO, matched by BBL, with the assessed value, year built and number of units. Filter by date, open or closed cases, keywords and ZIP codes. Export to JSON, CSV or Excel, or use it via API.

The data comes from each city's own Socrata open-data API (data.cityofnewyork.us, data.cityofchicago.org, data.lacity.org…). No login, no key, no proxy, no browser. Every row names the portal, the dataset, the agency and the licence it was published under. This Actor is an independent tool. It is not affiliated with or endorsed by any of these cities or agencies.

What can this code violations scraper do?

  • Motivated-seller and distressed-property leads: properties cited this week for vacant buildings, unsafe structures, roofs, rats, heat or overgrown lots. The owner often wants out, and a code violation is one of the strongest signals a real estate investor can list.
  • Owner of record in New York City: every HPD, DOB and ECB violation is matched to its tax lot (BBL) and comes with the owner's name, the assessed value, the year built and the residential units.
  • Respondents and fines: NYC ECB violations name the respondent, their mailing address, the penalty and the balance still due; Chicago's Buildings hearings name the respondents, the hearing day and the fine.
  • Contractor and service leads: roofers, exterminators, junk removal, landscapers, elevator and fire-safety contractors reach properties that must fix a violation by a date.
  • Property management and due diligence: watch a portfolio's addresses or ZIP codes for new violations, and check a building's open cases before buying or lending.
  • Market research: code-enforcement volume by city, ZIP and type of violation.

How to get code violations

  1. Pick the cities (by default Chicago, NYC HPD, Los Angeles, Austin and Seattle).
  2. Choose a window: opened in the last N days (30 by default), or set exact dates.
  3. Optionally narrow it down: open or closed cases, keywords (vacant, roof, rodent, unsafe), ZIP codes.
  4. Run it. Each city's newest violations come first.

A keyword matches words that start with it in the violation's texts: roof finds "ROOFS" and "ROOFING", never "RAT PROOF". Every filter is asked of the portal and checked again on each violation, so every row matches what you asked.

Input

{
"cities": ["nyc-hpd", "nyc-dob", "chicago", "los-angeles"],
"openedWithinDays": 14,
"status": "open",
"keywords": ["vacant", "unsafe", "roof"],
"zipCodes": ["10467", "60621"],
"addOwner": true,
"maxResultsPerCity": 200
}
fieldwhat it does
citiesThe city datasets to read (keys such as nyc-hpd, nyc-dob-ecb, nyc-dob, chicago, chicago-hearings, los-angeles, montgomery-county-md). Pick all three of New York's for every NYC violation, and both of Chicago's.
openedWithinDaysViolations opened from this many days ago up to today (default 30).
openedFrom, openedToExact first and last days, YYYY-MM-DD. They replace the window above.
statusany, open or closed.
keywordsOnly violations whose description, title, code or type holds a word starting with one of these.
zipCodesOnly violations in these five-digit ZIP codes.
addOwnerAdd the owner of record to New York's violations (on by default; charged as a violation with owner).
maxResultsPerCity, maxResultsStop a city, or the whole run, after this many violations (0 for no limit).
maxScannedPerCityStop reading a city after this many violations read, when few pass your filters.
includeRawRecordAdd the columns the portal publishes, as published, in raw.

Output example

One NYC DOB ECB violation with its owner of record:

{
"rowType": "violation",
"city": "nyc-dob-ecb",
"cityName": "New York City, NY",
"state": "NY",
"recordId": "39211556Z",
"openedDate": "2026-11-12",
"hearingDate": "2027-01-29",
"violationStatus": "ACTIVE; hearing PENDING",
"isOpen": true,
"caseType": "Construction",
"violationCode": "263",
"description": "FAILURE TO COMPLY WITH THE COMMISSIONER'S ORDER TO FILE A CERTIFICATE OF CORRECTION WITH THE DEPARTMENT OF BUILDINGS…",
"ordinance": "AC 28-204.4 FAIL TO COMPLY W/COMMISSIONER ORDER TO FILE CERT OF CORRECTION W/DOB",
"severity": "CLASS - 2",
"address": "1934 UNIVERSITY AVENUE",
"addressCity": "Bronx",
"zipCode": "10453",
"parcelId": "2028680105",
"buildingId": "2092062",
"respondentName": "WISEMAN MANAGEMENT LLC",
"respondentAddress": "P OBOX 1086 MIDTOWN STATION, NEW YORK, 10018",
"fineAmount": 1250,
"balanceDue": 1250,
"ownerName": "WISEMAN MANAGEMENT,LLC",
"ownerSource": "NYC PLUTO (Department of City Planning), owner of record matched by BBL",
"assessedValue": 1257300,
"yearBuilt": 1917,
"residentialUnits": 46,
"recordApiUrl": "https://data.cityofnewyork.us/resource/6bgk-3dad.json?ecb_violation_number=39211556Z",
"datasetName": "DOB ECB Violations",
"datasetUrl": "https://data.cityofnewyork.us/d/6bgk-3dad",
"agency": "NYC Department of Buildings (DOB) and OATH",
"license": "NYC Open Data terms of use",
"unreadFields": []
}

Output fields

fieldmeaning
city, cityName, stateThe dataset's key, its city and state.
recordId, caseNumberThe violation's id in the dataset, and the case or notice it belongs to.
openedDate, closedDate, lastUpdated, correctByDate, hearingDateDays as YYYY-MM-DD.
violationStatus, isOpenThe status as the city writes it, and whether the case is still open (null when the city does not say).
caseType, violationCode, violationTitle, description, ordinance, severityWhat was found, the code and the law cited, and its class or priority.
inspectorThe inspector or code officer, where the city publishes one.
address, unit, addressCity, zipCode, latitude, longitudeWhere.
parcelId, buildingIdThe parcel (BBL in New York, block/lot in San Francisco) and the building id (NYC BIN).
respondentName, respondentAddress, fineAmount, balanceDueWho was cited and what they owe (NYC ECB, Chicago hearings).
ownerName, ownerSourceThe owner of record and where it comes from (New York, from PLUTO).
ownerOccupied, assessedValue, yearBuilt, residentialUnitsFacts of the property: homestead in Orlando, owner-occupied in Reading, the lot in New York.
caseUrl, recordApiUrlThe case's page on the city's site where one exists, and the record in the portal's API.
datasetName, datasetUrl, agency, licenseWhere the row comes from and its licence.
unreadFieldsFields this row could not read, null in it: the portal stopped publishing them or wrote them in a new form (empty when all were read; the run's status message names them too).
rawThe record as published, with includeRawRecord.
rowType, statusviolation and ok on a violation; a free status row has rowType: "status", its status (no_results, filter_unsupported, source_unavailable, source_changed, scan_limit, spending_limit, unknown_city), the query (the city key) and the reason.
scrapedAtWhen the row was read (ISO 8601, UTC).

Rows with rowType: "status" are free: a city that publishes no status or ZIP for your filter, a portal that did not answer, a search with no results. They say what happened, and nothing is charged for them.

What each city publishes

datasetopen / closedZIPparcelextra
New York City, HPD housing violationsyesyesBBLowner, assessed value, units, year built (PLUTO); class A/B/C; correct-by day
New York City, DOB ECB violationsyesfrom PLUTOBBLrespondent and mailing address, penalty, balance due, hearing; owner (PLUTO)
New York City, DOB violationsyesfrom PLUTOBBLowner (PLUTO)
Chicago, building violationsyesnonoinspector, inspector comments, ordinance
Chicago, Buildings hearingsyesnonorespondents, hearing day, fine
Los Angelesyesyesyesprogram (CNAP, PACE, VEIP…)
San Franciscoyesyesblock/lotcoordinates
Austin, TXyesyesyespriority, inspector, case link
New Orleans, LAnononocode section
Orlando, FLyesnoyesassessed value, homestead
Norfolk, VAyesnoGPINcode section
Seattle, WAyesyesnocase link
Mesa, AZyesyesyescode officer
Cincinnati, OH (with Blue Ash and Norwood)yesnonocase link
Montgomery County, MDyesyesnoclosed day
Cambridge, MAyesnoyescorrect-by day
Reading, PAyesnoyesowner-occupied, units, correct-by day

How much does it cost?

US$0.002 per violation delivered (US$2 per 1,000), and US$0.003 per violation with its owner of record (New York, when PLUTO names the owner). Free status rows are never charged, and there is no start fee. Set a maximum cost per run in Apify and the run stops at exactly the violations it pays for.

Limits

  • Data is as fresh as each city publishes it: most portals update daily.
  • A city that publishes no case status (New Orleans) or no ZIP code is not read when you filter by it, and a free row says so.
  • The owner of record is joined only in New York, where PLUTO publishes it by lot. Other cities publish the parcel: join it with the county's assessor records for the owner.
  • Complaint texts are written by residents. Contact details a resident typed into one (a name line, an email, a phone number) are removed before the row is delivered, and Orlando's complaint comments are not delivered at all.
  • Coverage is the 17 datasets listed. Open an issue to ask for another city that publishes code violations as open data.
  • A portal that is down is retried with growing waits; if it still does not answer, the run goes on with the others and a free row says so.

Code violations are public records, and every portal read here publishes them as open data for reuse, under the licence named in each row. Some rows name people (owners, respondents). If you use them for marketing, follow the rules that apply to you: CAN-SPAM, the TCPA and Do Not Call lists for phone outreach, fair housing and state privacy laws. Read each portal's terms before republishing the data.