US Code Violations - 15 City Enforcement Systems avatar

US Code Violations - 15 City Enforcement Systems

Pricing

from $0.03 / 1,000 us code-violation records

Go to Apify Store
US Code Violations - 15 City Enforcement Systems

US Code Violations - 15 City Enforcement Systems

Property code violations API: records from 15 US cities in one schema - NYC (HPD, DOB), Chicago, Philadelphia, New Orleans, San Francisco, Baltimore, Cincinnati, Boston, Detroit, Mesa, Norfolk, Austin, Seattle, Columbus, Cleveland. 28 registers; filter by address, ZIP, case, parcel or date.

Pricing

from $0.03 / 1,000 us code-violation records

Rating

0.0

(0)

Developer

Wenhao Yang

Wenhao Yang

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Property code violations, citations, inspections and enforcement cases from fifteen US cities, in one schema: 28 registers, ~27.2 million register rows (measured 2026-11-22). One row is one source record - not one case.

Ask one question - an address, a ZIP, a case number, a parcel, a date window - and get the enforcement record back as structured JSON, with the status normalized to open / closed so a violation in Chicago and a violation in New Orleans read the same way.

Low cost

From $0.00005 per record, down to $0.00003 at Gold.

One record is one violation, citation, inspection or case row; an aggregate row is charged as one record. There is no per-run fee and no charge for the query itself.

What you get

JurisdictionRegister (corpus)RecordsOne row is
nycHPD housing violations (violations, default)11,422,299a violation
nycDOB building violations (dob)2,478,049a violation
chicagobuilding code violations (building, default)2,037,803a violation
chicagoordinance citations (ordinance)825,445a docket citation
phillyL&I violations (violations, default)2,043,582a violation
phillyL&I investigations (investigations)2,145,881an inspector visit
phillyL&I complaints (complaints)1,075,506a complaint
nolacode enforcement cases (cases, default)183,726a case
nolaviolations cited (violations)274,280a violation line
nolainspections (inspections)247,682an inspection
nolahearings and judgments (hearings)103,426a hearing
nolaabatements (abatements)7,240an abatement
nolaactive pipeline (pipeline)44,791a case in progress
sfbuilding notices of violation519,993a notice line item
baltimoreEnvironmental Control Board citations (citations)159,682a citation
cincinnaticode enforcement cases (cases)773,658a case
bostonPublic Works violations (pw, default)933,290a ticket
bostonBuilding & Property violations (building)17,524a ticket
detroitblight tickets (blight, default)915,218a ticket
detroitrental registrations (rental)45,691a registration
detroitcommercial building compliance (compliance)27,768a building rating
detroitdemolition inspections (demolition)40,166an inspection
mesacode enforcement cases (cases)83,168a case
norfolkcomplaint / violation inspection events (inspections)75,480an inspection event
austincode complaint cases (cases)82,611a case
seattlecode complaints and violations (cases)252,484a case
columbuscode enforcement cases (cases)322,695a case
clevelandissued building violations (violations)61,957a violation

Counts are the source systems' own totals on 2026-11-22 and continue to grow. Cleveland re-published its register on 2026-11-15; a probe that afternoon caught the publish mid-flight at 38,357 rows, and the finished layer holds 61,957 (same last-edit stamp). Fifteen jurisdictions are supported; this is not a nationwide register. The total is the sum of register rows and double-counts cases that appear in several registers (see the coverage notes).

One schema across fifteen jurisdictions

Every row carries the same 36 fields regardless of jurisdiction: identifiers (recordId, caseId, parcelId + parcelScheme), location (address, city, zip, latitude, longitude), the violation itself (violationCode, description, category), status (statusRaw, status, resolution), dates (openedDate, closedDate, eventDate, lastModified), money (fineAmount, balanceDue) and provenance (source, sourceUrl, sourceUpdatedAt, platform).

Filter by status, address, zip, caseId, recordId, parcelId, dateFrom / dateTo. recordId works on every register - pass back any recordId you received. On San Francisco it is the notice id, and one notice can hold several line items, so a recordId there can return more than one row (relatedId is the line item). Which of these a register can serve varies - a register that publishes no ZIP rejects the ZIP filter rather than returning unfiltered rows; the error names the filters it does support.

Aggregate by status (folded to open / closed / unknown across every source), category, city or zip, where the register publishes that dimension. Aggregates return every group; a dimension with an extreme number of groups fails the run rather than silently dropping the tail.

Compare cities in one call: jurisdiction: "all" with mode: "aggregate" runs the chosen dimension across every city's default register and returns one row per city and group - the only way to ask "which city carries the most open violations" in a single answer. A city that does not publish the chosen dimension is skipped and named in the run log; so is a city whose source cannot answer within the time budget (the rest of the comparison still comes back) - run that city on its own to see the underlying error. A filter that a city cannot apply still fails the run, because a filter has to work everywhere or the comparison would silently shrink. If a city's standalone row-count check times out but its aggregate still answers, the aggregate's own group totals are checked against the register's minimum instead, so a collapse is still caught. Rows mode stays one city (and one register) per run.

How status is normalized

Each city publishes its own vocabulary - Chicago writes OPEN / COMPLIED / NO ENTRY, Boston writes Open / Closed / Void, Baltimore writes a single padded letter. Every measured value is mapped to open, closed or left blank, and the untouched value is always in statusRaw. A status word that is not in the published mapping is never guessed into open or closed; in aggregates those blank rows are counted under unknown.

Where a register publishes something other than a case status - an inspection result, a building compliance rating - the mapping is described where noted below and recordKind says what the row is.

Coverage notes

  • Chicago: building (2.03M building-code violations) and ordinance (824.7k citations from the city's administrative hearings) are different datasets. They are never merged into one count.
  • Philadelphia: violations, investigations and complaints are three linked registers joined by case number where the source publishes one (the case number is present on about a quarter of complaint rows) - a case can appear in all three, so their row counts are not additive. investigations maps the inspection outcome (FAILED = open finding, PASSED / CLOSED = closed). complaints publishes no status on about 60% of its rows (646,400 of 1,070,781), so a status filter there sees a minority of the register; statusRaw is blank on those rows. The source publishes projected geocodes (Web Mercator metres) rather than degrees, so latitude / longitude are left empty for Philadelphia instead of being emitted as wrong numbers.
  • New Orleans: six registers at five different grains (case, violation line, inspection, hearing judgment, abatement). Violations and inspections publish no case status; there status is blank by design. Hearings map Guilty* / Dismissed* to closed and Reset* to open.
  • Detroit: compliance is a building compliance rating (RED / YELLOW / GREY / GREEN), not a case status - RED and YELLOW are open, GREEN is closed, GREY is unknown, and the rating itself is preserved in statusRaw. demolition maps the inspection result (FAIL / Work not complete / Hold / Scheduled = open; Passed / OK / DONE / Approved / Cancelled = closed). rental records a registration and carries no status.
  • NYC DOB (corpus: dob): building violations issued by the Department of Buildings - a different register from HPD housing violations, never merged with it. Status comes from the source's own violation_category (ACTIVE / DISMISSED / Resolved); one value that carries no outcome marker stays blank. The register publishes no ZIP or city column, and the parcel key is the BIN, not a BBL. Issue dates are stored as YYYYMMDD text, so a few dozen malformed values (a null, pre-1900 sentinels such as Y9990120, non-date strings) carry no openedDate. The street column is padded to fixed width ("WEST 43 STREET"); an address filter is matched token by token - a leading house number is anchored exactly, a bare number must be a whole word (so 43 does not match 143 STREET), and a partial street name still works.
  • Austin: case_type and department are the same on every row, so this register publishes no category dimension; the short violation type is in description.
  • Seattle: category is the record type (Complaint / Notice of Violation / Citation / Tenant Relocation / Unfit Building); description carries the subtype and the free-text complaint.
  • Columbus: the layer publishes no last-edit stamp, so freshness is not checked for this register (the row-count floor still is).
  • Cleveland: status comes from the source's ACTIVE_VIOLATION flag (Yes = open, No = closed). The source's 40+ value RECORD_STATUS is a workflow stage, not a case status, and is not used. The address is one string that already contains city and ZIP ("3291 W 54TH ST, CLEVELAND, OH, 44102"). Only about 36% of rows carry a parent case id; the rest are standalone violation notices, so caseId is blank there.
  • Address matching: registers that store the address in parts (NYC, San Francisco, Boston) match a house number, a street name or a full address typed in any order - 243 EAST 51 STREET (NYC) and 238 MARKET ST (Boston) both work. The parts are matched individually, and the whole string is matched as well (New York and San Francisco) or token by token (Boston, whose SQL endpoint does not allow the string-concat function).
  • Boston: the city publishes the date of the latest status change, not an issue date - openedDate, eventDate and (for closed rows) closedDate all come from that timestamp.
  • Mesa: the source stores its status strings in a 19-character field; Closed Duplicate Ca is the source's complete value, not a truncation made here.
  • Dates outside 1900-01-01 ... about a year ahead are dropped. Several of these systems carry junk sentinels (6111-12-01, 8535-09-25); they never reach the output. Scheduled hearings and inspections a few months out are kept.
  • Not included: Kansas City and Montgomery County (AL) code-violation feeds are excluded because the source systems stopped updating - KC's last dataset edit was months behind and Montgomery publishes no address field.
  • Row counts are per register and are not comparable across registers: the same case can produce one violation row in one city and an inspection, a hearing and an abatement row in another.

Examples

Newest open housing violations in New York:

{ "jurisdiction": "nyc", "status": "open", "maxResults": 100 }

One Philadelphia parcel's violation history:

{ "jurisdiction": "philly", "parcelId": "365330", "maxResults": 200 }

Detroit blight tickets on one street:

{ "jurisdiction": "detroit", "address": "Grand River", "maxResults": 100 }

How open / closed splits in Chicago building violations:

{ "jurisdiction": "chicago", "mode": "aggregate", "groupBy": "status" }

Which of the fifteen cities carries the most open violations:

{ "jurisdiction": "all", "mode": "aggregate", "groupBy": "status" }

Underwriting screen - every open violation at one address, across the city register:

{ "jurisdiction": "nyc", "address": "243 EAST 51 STREET", "status": "open", "maxResults": 200 }

Tenant screening - the newest 500 rows of the enforcement trail behind one NYC block and lot (this lot holds ~9,691 records; raise maxResults or page with dateFrom for the rest):

{ "jurisdiction": "nyc", "parcelId": "2028820229", "maxResults": 500 }

The same screen in San Francisco, typed as a postal address:

{ "jurisdiction": "sf", "address": "3342 MISSION ST", "maxResults": 100 }

A Boston address, where the house number, street and suffix are separate source columns:

{ "jurisdiction": "boston", "address": "238 MARKET ST", "maxResults": 100 }

NYC building violations (DOB, a separate register from HPD) at one address - the street is stored padded, token matching handles it:

{ "jurisdiction": "nyc", "corpus": "dob", "address": "2284 EAST 65 STREET", "status": "open", "maxResults": 100 }

One known record by its id:

{ "jurisdiction": "baltimore", "recordId": "58127432" }

Chicago ordinance citations by violation date:

{
"jurisdiction": "chicago",
"corpus": "ordinance",
"dateFrom": "2026-01-01",
"dateTo": "2026-09-30",
"maxResults": 500
}

Output fields

FieldMeaning
jurisdiction, jurisdictionName, stateWhich register answered, and its state
corpus, recordKind, source, sourceUrlThe register, the grain of the row, and the upstream dataset
recordId, caseId, relatedIdSource identifiers - record, case and the secondary key (building id, parcel account, ticket)
address, city, zip, parcelId, parcelScheme, latitude, longitudeWhere the property is; parcelScheme names the key (BBL, BIN, OPA_PARCEL, BLOCK_LOT, DETROIT_PARCEL, PARCEL, GPIN, GEO_PIN)
violationCode, description, categoryWhat was cited, and the source's own category field
statusRaw, status, resolutionThe source's status word, the normalized status, and the outcome where one is published (PAID, ABATED, CORRECTED, DISMISSED, ...)
openedDate, closedDate, eventDate, lastModifiedDates as the source defines them; closedDate is filled only when the row's normalized status is closed; junk values are dropped
fineAmount, balanceDueFines and outstanding balance where the source publishes money
ownerNameOnly where the source itself publishes a property owner (Philadelphia, Detroit)
sourceUpdatedAt, platformWhen the dataset was last edited upstream, and its platform
mode, groupBy, groupKey, groupCountPresent on every row; aggregate rows carry the group key and count

Data sources and rights

Every register is a public open-data release from the issuing city: NYC Open Data, Chicago Data Portal, Philadelphia's L&I open data, New Orleans Open Data, DataSF, Baltimore City open data, Cincinnati Open Data, Analyze Boston, Detroit's BSEED open data, Mesa Open Data, Norfolk Open Data, Austin's open data hub, Seattle Open Data, Columbus GIS Open Data and Cleveland Open Data. All come from the cities' own Socrata, ArcGIS or CKAN endpoints. Records are public property-enforcement records; tenant and complainant names are not included.

Measured 2026-11-22. Counts and vocabularies are re-checked against the sources, and a register whose row count collapses, or whose dataset stops updating when the source provides a last-edit stamp, fails the run loudly instead of returning an empty result.

Use it from an AI agent (MCP)

Connect any MCP client to https://mcp.apify.com/?tools=j0401/us-code-violations to load this dataset as a single tool beside the tools you already have - same records, same per-record pricing.