Every city in the United States tracks building and housing code violations. When a property has broken windows, exposed wiring, overgrown lots, or structural problems, code enforcement documents it. That data is public.
Most people ignore it. Investors shouldn't.
A building code violation is a recorded failure to meet the construction or structural standards set by a municipality. Think electrical hazards, unpermitted work, fire safety deficiencies, structural damage. A housing code violation covers habitability standards: plumbing failures, heating system breakdowns, mold, pest infestations, trash accumulation. In practice, cities often lump both under "code enforcement violations," and a single property can have both.
The distinction matters less than what they have in common: every open violation is a public signal that something is wrong with a property and, often, that the owner can't or won't fix it.
That's a distress signal. And distress signals are how off-market investors find deals before the rest of the market.
Types of Code Violations (and What They Signal to Investors)
Not all violations are equal. Some indicate real distress. Others mean the opposite. Here's how I categorize them after monitoring over 12,000 active violations across Seattle.
Strong Distress Signals
Vacant building violations. A vacant building order means the city has determined no one is living in or maintaining the property. The owner is absent, the city is escalating, and the property is deteriorating. In Seattle right now, there are around 500 active vacant building cases. These are the leads I look at first.
Emergency and structural violations. When a violation description includes words like "structural failure," "fire hazard," "sewage," or "mold," the property has serious problems. The cost to repair is high, the owner is under pressure, and motivation to sell increases.
Land use violations. Illegal conversions, unpermitted commercial use in residential zones, occupancy limit violations. These often indicate an owner who was trying to maximize income from the property and got caught. Now they're facing fines and remediation costs.
Multiple violations on one property. A single violation can be a paperwork issue. Five violations across three years? That's a pattern. Volume matters more than any individual case. An owner who has accumulated violations over time is someone who can't keep up.
Weak or Negative Signals
Construction permits and related violations. This is the one most people get wrong. A construction-related violation (like work without a permit) often means the owner is actively improving the property. That's the opposite of distress. I weight these near zero in my scoring.
Noise complaints. These are about tenant behavior, not property condition. Almost no signal for distress.
Old, resolved cases. A violation that was opened three years ago and closed six months later tells you nothing about today. I only use closed violations for historical context, not for scoring current distress.
Why Investors Should Care About Code Violations
If you're wholesaling or buying off-market, your entire business is finding motivated sellers before anyone else does. The standard playbook is driving for dollars, buying tax delinquency lists, or paying $200-500/month for services like ForeclosuresDaily.
Code violation data gives you something different: a live, continuously updated signal that most investors aren't using.
Here's why:
It's real-time. Violations are filed daily. A vacant building order from last week is a lead today. Tax delinquency lists update once a year. Pre-foreclosure filings lag by months. Code violations are the freshest public distress data available.
It's free at the source. Most cities publish code violation data through open data portals. Seattle uses the Socrata API. Chicago, Philadelphia, LA, NYC, Nashville, and dozens of other cities do the same. The raw data costs nothing.
It's a signal nobody else is mining systematically. Every wholesaler in your market has access to the same PropStream data, the same tax lists, the same pre-foreclosure filings. Code violations are public but fragmented across different city portals with different formats. The friction of aggregating it is what keeps most people away. That friction is your edge.
Violations stack. One violation is noise. Multiple violations across different categories on the same property? That's a pattern that says the owner is overwhelmed. The combination of violation volume, type mix, and recency creates a signal that's stronger than any single data point.
How to Find Code Violation Data
Code violations are public records in most US jurisdictions. Here's how to access them.
City Open Data Portals
Many cities publish violation data through Socrata-powered open data portals. You can browse them in a web browser or pull data programmatically through their APIs.
Cities with accessible code violation data:
- Seattle: data.seattle.gov (SDCI code violations)
- Chicago: data.cityofchicago.org (building code violations)
- Philadelphia: opendataphilly.org
- Los Angeles: data.lacity.org
- New York City: data.cityofnewyork.us
- Nashville: data.nashville.gov
- New Orleans: data.nola.gov
- Kansas City: data.kcmo.org
- Pittsburgh: data.wprdc.org
The challenge is that every city structures their data differently. Field names, violation categories, status codes, and date formats all vary. You can pull the data yourself, but normalizing it across cities takes real work.
County Recorder and Code Enforcement Offices
For cities without open data portals, you can request code violation records directly from the local code enforcement or building department. Many will provide records through public records requests, though turnaround times vary.
Aggregation Tools
This is what I built FlaggedLeads to solve. The tool ingests code violation data from city APIs daily, normalizes the fields, scores each property by distress level, and maps everything. Instead of manually searching through government portals, you get a ranked list of properties sorted by which ones show the most distress signals.
The free map at flaggedleads.com shows all violation locations and types for Seattle. The full version adds scoring, owner data, trend tracking, and CSV export.
How to Score Properties by Violation Severity
Raw violation data is a list. What you need is a ranking. Here's the framework I use to score properties by distress level.
Volume (logarithmic): More violations = higher score, but with diminishing returns. Ten violations is significantly worse than one, but not ten times worse. A property with 3-4 open violations is already showing a pattern.
Type weighting: Not all violation types carry equal weight.
| Violation Type | Distress Signal | Why |
|---|---|---|
| Vacant building | Very strong | Owner absent, city escalating |
| Emergency / structural | Strong | Expensive to fix, safety risk |
| Land use | Strong | Owner under regulatory pressure |
| Environmental | Moderate | Cleanup costs, liability |
| Landlord-tenant | Moderate | Management problems |
| Construction | Weak (often positive) | Owner may be improving property |
| Noise | Very weak | Tenant behavior, not property condition |
Recency: A violation opened last month matters more than one from two years ago. But I don't discount old violations entirely. A property with violations spanning five years tells me the owner has a chronic problem. The combination of old and new is worse than either alone.
Stacking signals: The real power is combining violation data with other public records. A property with four code violations, an absentee owner, and a tax delinquency? That's a triple signal. Each data layer narrows the list and increases the probability of a motivated seller.
Code Violations vs. Other Lead Sources
How does code violation data compare to the methods investors already use?
| Method | Data Freshness | Signal Strength |
|---|---|---|
| Code violations | Daily updates | Strong (especially stacked) |
| Driving for dollars | Real-time (your eyes) | Strong but labor-intensive |
| Tax delinquency lists | Annual updates | Moderate |
| Pre-foreclosure filings | Monthly | Strong |
| PropStream / BatchLeads | Varies | Moderate |
Code violations won't replace your entire lead gen stack. But they add a signal layer that almost nobody else is using. The investors who combine violation data with existing sources (absentee owner lists, tax data, driving for dollars routes) are working with information the rest of the market doesn't have.
Frequently Asked Questions
Are code violations public record?
Yes. Building and housing code violations are public records in the United States. Most municipalities make them available through online databases, open data portals, or public records requests. You don't need permission or a special license to access them. (More on the legal side here: Are code violations public record?.)
How long do code violations stay on record?
This varies by city. In Seattle, violation records remain in the database indefinitely, even after they're resolved. The record will show an open or closed status. Open violations are the primary signal for investors; closed violations provide historical context.
Can I use code violations to find motivated sellers?
Yes. Open code violations, especially multiple violations or severe types like vacant building orders, indicate property distress. Distressed properties are more likely to have owners who are motivated to sell. Code violations don't guarantee motivation, but they significantly increase the probability compared to cold outreach.
What's the difference between a building code violation and a housing code violation?
Building code violations relate to construction and structural standards: electrical systems, fire safety, structural integrity, permits. Housing code violations cover habitability: plumbing, heating, pest control, sanitation, minimum maintenance. For investors, the practical difference is less important than the severity and volume of violations on a given property.
Do code violations affect property value?
Open violations can reduce property value because they represent deferred maintenance and potential repair costs. For investors, this is the opportunity: the gap between current (distressed) value and after-repair value is where the deal lives. Properties with significant open violations are often priced below comparable properties without violations.