US Code Violations Feed: Building and Housing by City avatar

US Code Violations Feed: Building and Housing by City

Pricing

from $1.60 / 1,000 violation returneds

Go to Apify Store
US Code Violations Feed: Building and Housing by City

US Code Violations Feed: Building and Housing by City

Open building and housing code violations from official city open-data portals (Chicago, San Francisco, Seattle, Austin) in one schema: category, status, address, dates. Property-level only, no owner data. Delta mode returns only new records.

Pricing

from $1.60 / 1,000 violation returneds

Rating

0.0

(0)

Developer

Data Crate

Data Crate

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

US Code Violations Feed – building and housing violations by city, from official open data

Get open building and housing code violations for Chicago, San Francisco, Seattle and Austin in one clean schema: violation date, code, description, a derived category (structural, fire-safety, sanitation, zoning, electrical, plumbing, other), open/closed status, inspection status, property address and coordinates. Data comes straight from each city's official open-data portal (Socrata API). No scraping, no browser, no API key, no proxies.

It is built for roofers, restoration and repair contractors, insurers, property managers, real-estate investors doing area research, and analysts who need one consistent schema across cities.

Property-level data only. Rows describe a violation at an address. This actor does not return owner, respondent, complainant, tenant or inspector names, phone numbers or email addresses, and it does not look up owners or do skip tracing. It has no link to any owner-lookup service. If you need owner contact data, this is not that tool.

First run: press Start. The prefill (Chicago and San Francisco, open violations from the last 30 days, 100 records) costs about $0.20 at $0.002 per record and finishes in under a minute. Empty input also works: you get 100 open records from the last 30 days spread across all four cities.

What you can do with it

  • Daily lead list: schedule the actor with onlyNewSinceLastRun: true and pull only records you have not seen. Every row carries isNew and firstSeenAt.
  • Trade filters: categories: ["structural"] for roof, wall, stair and porch work; ["plumbing","electrical"] for trade contractors; ["sanitation"] for cleanup and pest-control services.
  • Keyword search: keywords: ["roof", "mold", "stairs"] matches description, code and address (any keyword).
  • Open vs closed: status: "open" for unresolved cases, "closed" for resolved, "any" for both.
  • Market research: compare violation volume by city and category over daysBack up to 365.

Input

FieldWhat it does
citieschicago, san-francisco, seattle, austin. Empty = all four
statusopen (default), closed or any
daysBackRecords dated in the last N days (1 to 365, default 30). The date is the violation, notice or case-opened date
categoriesstructural, fire-safety, sanitation, zoning, electrical, plumbing, other. Empty = all
keywordsWords to match in description, code or address (any match). Empty = no filter
onlyNewSinceLastRun, stateKeyDelta mode: skip records already returned by an earlier run with the same State name. The first run returns everything
maxItemsCap on records (default 100). You pay per record. Results are newest first and spread evenly across the selected cities

Example: { "cities": ["chicago", "san-francisco"], "status": "open", "daysBack": 30, "maxItems": 100 }

Roofing leads example: { "categories": ["structural"], "keywords": ["roof"], "daysBack": 30, "onlyNewSinceLastRun": true, "maxItems": 500 }

Output

{
"city": "chicago",
"cityName": "Chicago",
"state": "IL",
"violationId": "7569539",
"recordKind": "violation",
"violationDate": "2026-11-16",
"code": "CN061014",
"description": "Repair Exterior Wall",
"ordinance": "Failed to maintain the exterior walls of a building or structure free from holes, breaks, loose or rotting boards ... (13-196-530(b), 13-196-641)",
"category": "structural",
"status": "Open",
"statusGroup": "open",
"statusDate": null,
"inspectionStatus": "Failed",
"address": "8928 S COMMERCIAL AVE",
"zip": null,
"latitude": 41.7328422114,
"longitude": -87.551469154,
"isNew": null,
"firstSeenAt": "2026-11-18T19:59:04.906Z",
"sourceDataset": "https://data.cityofchicago.org/resource/22u3-xenr.json",
"sourceUrl": "https://data.cityofchicago.org/resource/22u3-xenr.json",
"source": "City of Chicago, Building Violations (data.cityofchicago.org/resource/22u3-xenr). License: ... This data has been modified for use from its original source, www.cityofchicago.org ...",
"license": "City of Chicago Data Terms of Use (the dataset has no license field; the portal points to the Terms of Use)",
"attribution": "City of Chicago, Building Violations (data.cityofchicago.org/resource/22u3-xenr)"
}

What each city's record is:

CityDatasetrecordKindNotes
ChicagoBuilding Violations (22u3-xenr), Department of BuildingsviolationOne row per violation. Includes the city's code and ordinance text. No ZIP column in the source
San FranciscoNotices of Violation issued by the Department of Building Inspection (nbtm-fbw5)notice-of-violationOne row per NOV item. code is the section cited
SeattleCode Complaints and Violations (ez4a-iug7), filtered to Notices of Violation and Citations onlynotice-of-violation / citationPlain complaints from the public are excluded. Free text is kept only when it is a short label (140 characters or less), because longer text can be a citizen's narrative
AustinAustin Code Complaint Cases (6wtj-zbtb), Development Servicescomplaint-caseThese are code-enforcement cases opened on a complaint, with the alleged violation type (property abatement, structure condition, land use, work without permit). Austin does not publish a violation code here

Notes on fields:

  • category is our normalization from the city's own wording (and bureau or section where the city has one). Cities use very different wording, so other is common; use keywords for exact searches.
  • status is the city's own wording. statusGroup is our open / closed / other grouping. Chicago Complied = closed; San Francisco active = open; Austin Active and Pending = open; Seattle statuses such as Completed, Closed and Compliance Achieved = closed.
  • Dates are the city's local calendar dates (YYYY-MM-DD). A violation's status can change after it is first seen; delta mode only tracks which record ids you have already received, not later status changes.
  • isNew is null until a baseline exists for your State name, then true or false.

Terms and licence evidence

Everything is read from the cities' official open-data portals through their documented SODA API (/resource/<id>.json). Licence fields were read from each dataset's own /api/views/<id>.json metadata and the portal terms on 2026-11-18:

CityDatasetLicence (from the dataset metadata and portal terms)
Chicagodata.cityofchicago.org/resource/22u3-xenr (Building Violations)No licence field is set on this dataset. The portal's terms apply: Chicago Data Terms of Use
San Franciscodata.sf.gov/resource/nbtm-fbw5 (Notices of Violation)"Open Data Commons Public Domain Dedication and License" (PDDL 1.0), terms link opendatacommons.org/licenses/pddl/1.0/
Seattledata.seattle.gov/resource/ez4a-iug7 (Code Complaints and Violations)"Public Domain"
Austindata.austintexas.gov/resource/6wtj-zbtb (Austin Code Complaint Cases)"Public Domain U.S. Government" (usa.gov/government-works). The City of Austin Open Data Terms of Use say data on the portal is "offered free and without restriction" and, unless noted in metadata, in the public domain

Chicago required disclaimer. The Chicago Data Terms of Use ask anyone who provides an application using the data to include this notice. It applies to every Chicago row this actor returns and is repeated in each row's source field:

This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one's own risk.

The Chicago terms also say the data is provided "on an 'as is' basis" and that the City may require a user to stop using the data. The dataset's own description says the records are "historical in nature and should not be relied upon for real estate transactions", and that it "contains cases where a respondent has been found to be liable as well as cases where the respondent has been found to be not liable". Do not use this data as proof of an enforcement action against a person or property.

Austin terms. The Austin terms ask for credit to the City of Austin and the source department, and say the user agrees not to "re-identify the data or to contact individuals whose information is represented by the data". This actor returns no individuals; please do not combine it with other data to identify or contact people. Each Austin row repeats that notice in source.

Robots and rate limits. All four portals serve the standard Socrata robots.txt: Crawl-delay: 1, with only /browse?... style pages disallowed. /resource/*.json is not disallowed. The actor sends at most one request per second, identifies itself as datacrate-actor/1.0, and uses no app token. A typical run makes 1 to 4 requests per city.

Personal data. The actor selects only the columns it needs. It never reads owner, respondent, complainant, tenant, applicant or inspector fields (Chicago violation_inspector_comments and inspector_id, Austin inspector names and phone numbers, free-text complaint narratives are all left out). Remaining free text (San Francisco inspection notes, Chicago ordinance text, Seattle short labels) has phone numbers and email addresses removed before output. Free text written by city staff can still occasionally mention a business or person; treat it accordingly and follow the laws that apply to your outreach.

Not included, on purpose. New York City and Los Angeles are not in this version because we could not read open-data terms that confirm commercial reuse for their datasets. They can be added once those terms are confirmed. Not affiliated with or endorsed by any city or government.

FAQ

How fresh is the data? Each portal updates on its own schedule, usually daily. When we tested on 2026-11-18, Chicago, San Francisco, Seattle and Austin all had records dated 1 to 2 days earlier.

Why are some descriptions short? Chicago, Seattle and Austin publish a violation label rather than a full narrative. San Francisco includes the inspector's item text.

Can I get owner names or contact details? No. This actor is property-level only and does no owner lookup or skip tracing.

Can I get more than 100 records? Yes, raise maxItems. Chicago alone has thousands of open violations per month.

What if a city portal is down? The other cities still return. The run log and the SUMMARY record in the key-value store show which cities failed. The run fails only if every selected city fails.

Integrations

  • Schedule the actor daily with onlyNewSinceLastRun: true for a fresh list.
  • Webhook on run success to push new records into your CRM, Slack or Zapier/Make.
  • API and MCP: call the actor from the Apify API, or use it as a tool in AI agents through the Apify MCP server.
  • Export the dataset as JSON, CSV or Excel from the Console.

Pricing

Pay per result: $0.002 per record ($2 per 1,000), no start fee. Higher Apify plans get lower per-record prices. Set maxItems to cap spend; the first run above costs about $0.20.

  • US Building Permits Feed (datacrate/us-building-permits-feed): permits from the same city portals, for contractor leads.

Changelog

  • 1.0 First version: Chicago, San Francisco, Seattle, Austin; derived category; open/closed filter; delta mode.