Every city publishes code violations. Most investors ignore them because the data is messy, spread across dozens of portals, and full of noise. But buried in that noise are the clearest motivation signals in distressed property investing. Here's what we learned after indexing 50,000 violations across five metro areas — and how to separate the signal from the paperwork.
Why code violations matter
A code violation is a legal notice that something about a property fails municipal standards — tall grass, peeling paint, an unpermitted addition, a collapsed porch, a missing smoke detector. Some are cosmetic. Some are structural. All of them carry one thing in common: they require the owner to do something.
For an owner who lives in the house, fixes it, and moves on, a violation is an annoyance. For an owner who can't afford repairs, is estranged from the property, or is stuck in probate, a violation is a countdown timer. Fines accumulate. Liens attach. Eventually, the city forecloses or the owner sells.
That countdown is your opportunity window.
The three signal tiers
Not all violations indicate motivation. After classifying 50,000 cases, we grouped them into three tiers based on how strongly they correlated with the property changing hands within 18 months.
Tier 1: Strong signal (35-50% sale probability)
These are the violations that consistently predicted listings:
- Unsafe structure declarations — the city has formally labeled the building dangerous
- Condemned or uninhabitable notices — often the final step before demolition orders
- Multiple stacked violations — three or more open cases on the same parcel
- Fire damage with open permits — owner can't afford to rebuild
- Sewer or septic failures — six-figure fixes in many jurisdictions
Tier 2: Moderate signal (15-25% sale probability)
- Roof/foundation violations on homes built before 1950
- Electrical service violations (undersized panels, knob-and-tube)
- Properties with 2+ open violations and absentee owner address
- Repeat weed/trash violations over multiple seasons
Tier 3: Weak signal (under 10%)
These show up constantly but rarely predict listings on their own: tall grass, peeling paint, unregistered vehicles, minor fence issues, trash bins at the curb. Don't ignore them — they become useful when stacked with Tier 2 signals — but don't chase them as leads.
The absentee owner multiplier
The single strongest modifier we found: violations against properties where the tax bill mailing address differs from the property address. Absentee owners with code violations are 3.2x more likely to sell within 18 months than owner-occupants with the same violations. The explanation is intuitive — an absentee owner has no emotional attachment to the house and every financial incentive to cut losses before the city escalates.
Your best lead isn't the property with the worst violation. It's the property with a moderate violation and an out-of-state owner who's been getting letters for eight months.
How to actually pull the data
Most cities publish violations through one of three channels:
- Open data portals. Larger cities (Chicago, Philadelphia, NYC, Houston, LA) publish daily CSV/JSON exports. Download, deduplicate by parcel, and join against tax assessor data.
- Code enforcement department websites. Mid-size cities usually have a lookup tool or monthly PDF report. These require more scraping work but are often less picked-over by competitors.
- Records requests. Smaller municipalities may require a formal public records request. This is annoying but the data is almost completely untapped.
Regardless of source, the critical step is normalization. Address formats vary between violation databases and tax assessors. You need a reliable way to match them — usually a fuzzy address matcher plus parcel ID backup. This is the single step most DIY attempts get wrong.
Turning violations into outreach
Once you have a filtered list, the outreach itself is straightforward. A short letter acknowledging the situation, offering to buy the property in its current condition, and providing a real phone number outperforms 90% of direct mail campaigns. Don't moralize, don't pressure, don't oversell. Owners in distress have already heard every sales pitch. What they haven't heard is someone offering a clean exit.
We've seen response rates of 4-8% on well-filtered violation lists, versus 0.5-1% on broad absentee-owner mailings. The list quality is doing most of the work.
What we got wrong at first
When we started this project, we assumed the strongest signal would be the severity of the violation itself. We were wrong. A single "unsafe structure" notice on an owner-occupied primary residence in a stable neighborhood rarely led to a sale — owners find ways to fix the immediate issue and keep their home. The predictive signal comes from the combination of violation + absentee ownership + time. Stacking those three variables outperforms any single factor by a wide margin.
If you're going to mine one dataset for distressed leads in 2026, make it this one. The data is public, the competitors are few, and the motivation signals are unmistakable once you know what to look for.