US Code Violations - 15 City Enforcement Systems
Pricing
from $0.03 / 1,000 us code-violation records
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
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
| Jurisdiction | Register (corpus) | Records | One row is |
|---|---|---|---|
nyc | HPD housing violations (violations, default) | 11,422,299 | a violation |
nyc | DOB building violations (dob) | 2,478,049 | a violation |
chicago | building code violations (building, default) | 2,037,803 | a violation |
chicago | ordinance citations (ordinance) | 825,445 | a docket citation |
philly | L&I violations (violations, default) | 2,043,582 | a violation |
philly | L&I investigations (investigations) | 2,145,881 | an inspector visit |
philly | L&I complaints (complaints) | 1,075,506 | a complaint |
nola | code enforcement cases (cases, default) | 183,726 | a case |
nola | violations cited (violations) | 274,280 | a violation line |
nola | inspections (inspections) | 247,682 | an inspection |
nola | hearings and judgments (hearings) | 103,426 | a hearing |
nola | abatements (abatements) | 7,240 | an abatement |
nola | active pipeline (pipeline) | 44,791 | a case in progress |
sf | building notices of violation | 519,993 | a notice line item |
baltimore | Environmental Control Board citations (citations) | 159,682 | a citation |
cincinnati | code enforcement cases (cases) | 773,658 | a case |
boston | Public Works violations (pw, default) | 933,290 | a ticket |
boston | Building & Property violations (building) | 17,524 | a ticket |
detroit | blight tickets (blight, default) | 915,218 | a ticket |
detroit | rental registrations (rental) | 45,691 | a registration |
detroit | commercial building compliance (compliance) | 27,768 | a building rating |
detroit | demolition inspections (demolition) | 40,166 | an inspection |
mesa | code enforcement cases (cases) | 83,168 | a case |
norfolk | complaint / violation inspection events (inspections) | 75,480 | an inspection event |
austin | code complaint cases (cases) | 82,611 | a case |
seattle | code complaints and violations (cases) | 252,484 | a case |
columbus | code enforcement cases (cases) | 322,695 | a case |
cleveland | issued building violations (violations) | 61,957 | a 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) andordinance(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.
investigationsmaps the inspection outcome (FAILED = open finding, PASSED / CLOSED = closed).complaintspublishes no status on about 60% of its rows (646,400 of 1,070,781), so astatusfilter there sees a minority of the register;statusRawis blank on those rows. The source publishes projected geocodes (Web Mercator metres) rather than degrees, solatitude/longitudeare 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
statusis blank by design. Hearings mapGuilty*/Dismissed*to closed andReset*to open. - Detroit:
complianceis 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 instatusRaw.demolitionmaps the inspection result (FAIL / Work not complete / Hold / Scheduled = open; Passed / OK / DONE / Approved / Cancelled = closed).rentalrecords 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 ownviolation_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 asYYYYMMDDtext, so a few dozen malformed values (a null, pre-1900 sentinels such asY9990120, non-date strings) carry noopenedDate. 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 (so43does not match143 STREET), and a partial street name still works. - Austin:
case_typeanddepartmentare the same on every row, so this register publishes nocategorydimension; the short violation type is indescription. - Seattle:
categoryis the record type (Complaint / Notice of Violation / Citation / Tenant Relocation / Unfit Building);descriptioncarries 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:
statuscomes from the source'sACTIVE_VIOLATIONflag (Yes = open, No = closed). The source's 40+ valueRECORD_STATUSis 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, socaseIdis 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) and238 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,eventDateand (for closed rows)closedDateall come from that timestamp. - Mesa: the source stores its status strings in a 19-character field;
Closed Duplicate Cais 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
| Field | Meaning |
|---|---|
jurisdiction, jurisdictionName, state | Which register answered, and its state |
corpus, recordKind, source, sourceUrl | The register, the grain of the row, and the upstream dataset |
recordId, caseId, relatedId | Source identifiers - record, case and the secondary key (building id, parcel account, ticket) |
address, city, zip, parcelId, parcelScheme, latitude, longitude | Where the property is; parcelScheme names the key (BBL, BIN, OPA_PARCEL, BLOCK_LOT, DETROIT_PARCEL, PARCEL, GPIN, GEO_PIN) |
violationCode, description, category | What was cited, and the source's own category field |
statusRaw, status, resolution | The source's status word, the normalized status, and the outcome where one is published (PAID, ABATED, CORRECTED, DISMISSED, ...) |
openedDate, closedDate, eventDate, lastModified | Dates as the source defines them; closedDate is filled only when the row's normalized status is closed; junk values are dropped |
fineAmount, balanceDue | Fines and outstanding balance where the source publishes money |
ownerName | Only where the source itself publishes a property owner (Philadelphia, Detroit) |
sourceUpdatedAt, platform | When the dataset was last edited upstream, and its platform |
mode, groupBy, groupKey, groupCount | Present 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.