# US Distressed Property & Code Violations Leads (`sabermudez/us-distressed-property-code-violations-leads`) Actor

Pull fresh US code violations, vacant & abandoned buildings, and repeat-offender property leads from official city open-data APIs (Chicago, Austin, Cincinnati). Fused per address with a 0–10 Distress Score. PropStream alternative.

- **URL**: https://apify.com/sabermudez/us-distressed-property-code-violations-leads.md
- **Developed by:** [Santiago Bermudez](https://apify.com/sabermudez) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.20 / 1,000 enriched distressed property leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Distressed Property, Code Violations & Tax Assessor Owner Leads

Extract active US municipal building code violations, vacant/abandoned property citations, and repeat-offender rental registrations — automatically joined with official County Tax Assessor owner names, taxpayer mailing addresses, and absentee-owner detection (`isAbsenteeOwner: true`) across **Chicago (Cook County, IL)**, **Austin (TX)**, and **Cincinnati (OH)**.

### Why Use This Distressed Property & Owner Lead Generator?

- **Official Owner & Taxpayer Mailing Address Join:** Cross-references Chicago properties against the Cook County Assessor Parcel Addresses API (`3723-97qp`) and extracts native owner/parcel records from Austin Repeat Offender Registrations (`86z9-i27i`) and Chicago Vacant Building Citations (`kc9i-wq85`).
- **Transparent Severity-Based Distress Score (0–10):**
  - **Base Weight (once per unique source):** Chicago Building Violations (`2.0`), Cincinnati Code Enforcement (`2.5`), Chicago Vacant Buildings (`3.5`), Austin Repeat Offenders (`4.0`), plus `+0.5` per additional violation record (capped at `+1.5`).
  - **Active Open Status Bonus (`+1.5`):** Applied only when at least one violation on the parcel is currently `OPEN` or `ACTIVE`.
  - **Structural Hazard Bonus (`+1.0` per unique keyword, max `+3.0`):** Triggered by `ROOF`, `PORCH`, `STRUCTURAL`, `FIRE`, `VACANT`, `ABANDONED`, `CONDEMNED`, `DEMOLITION`, `UNSAFE`, or `HAZARD`.
  - **Absentee Owner / Unpaid Fines Bonus (`+1.0`):** Triggered when the taxpayer mailing address differs from the cited property address (`isAbsenteeOwner: true`) or unpaid municipal fines reach `$500+`.
- **Budget-Safe Pay-Per-Event (PPE):** Automatically respects your Apify run spending limit (`ACTOR_MAX_TOTAL_CHARGE_USD`) and requires $0 in proxies.

### Supported US Markets & Official Government Sources

| Market | Official Government Source | Data Joined | Base Weight |
| :--- | :--- | :--- | :--- |
| **Chicago, IL** | Dept. of Buildings (`22u3-xenr`) + Cook County Assessor (`3723-97qp`) | Open Building Violations + 14-Digit PIN, Owner Name & Mailing Address | `2.0` |
| **Chicago, IL** | Vacant & Abandoned Buildings (`kc9i-wq85`) | Cited Vacant Properties + Cited Entity/Owner & Outstanding Fines | `3.5` |
| **Austin, TX** | Austin Development Services (`86z9-i27i`) | Repeat Offender Rentals + Registered Owner, Parcel ID & Unpaid Fees | `4.0` |
| **Cincinnati, OH** | CAGIS Code Enforcement (`cncm-znd6`) | Open Municipal Code Enforcement Citations | `2.5` |

### Quick Start Input Example

```
{
    "cities": ["chicago", "austin", "cincinnati"],
    "minDistressScore": 4.0,
    "maxResults": 100,
    "onlyOpenViolations": true,
    "monitorMode": false
}
```

### Sample Output Record (Mathematically Verified Breakdown)

Score Breakdown: Base `2.0` (`chicago_building_violations`) + `0.5` (1 extra violation record) + `1.5` (`OPEN` status) + `2.0` (2 structural triggers: `ROOF`, `PORCH`) + `1.0` (`isAbsenteeOwner: true`) = **`7.0`**.

```
{
    "parcelKey": "6428-S-INGLESIDE-AVE-CHICAGO-IL",
    "address": "6428 S INGLESIDE AVE",
    "city": "Chicago",
    "state": "IL",
    "parcelId": "20231050180000",
    "ownerName": "INGLESIDE HOLDINGS LLC",
    "mailingAddress": "120 N LASALLE ST, CHICAGO, IL, 60602",
    "isAbsenteeOwner": true,
    "distressScore": 7.0,
    "signalCount": 2,
    "signals": ["code_violation"],
    "urgencyTriggers": ["PORCH", "ROOF"],
    "outstandingFinesUsd": 0.0,
    "latestSignalDate": "2026-10-21T00:00:00.000",
    "records": [
        {
            "source": "chicago_building_violations",
            "date": "2026-10-21T00:00:00.000",
            "status": "OPEN",
            "description": "ROOF LEAKING AND EXTERIOR WALL MORTAR MISSING | REAR PORCH GUARDRAIL ROTTED AND UNSAFE"
        },
        {
            "source": "chicago_building_violations",
            "date": "2026-10-21T00:00:00.000",
            "status": "OPEN",
            "description": "FAILURE TO MAINTAIN EXTERIOR LINTELS AND MASONRY JOINTS"
        }
    ],
    "sha256": "4b9e1c7a82d05f13",
    "scrapedAt": "2026-10-27T23:05:00Z"
}
```

### Legal & Public Records Disclaimer (Non-FCRA)

All records are retrieved on demand from official, publicly accessible US municipal and county open-data portals. This tool is independent and is not affiliated with or endorsed by any city, county, or government agency. Data is provided strictly for real estate investment research, property rehabilitation outreach, and B2B market analysis (does not include consumer phone numbers or emails). This Actor is not a consumer reporting agency, and its output may not be used for credit, tenant screening, employment, insurance underwriting, or any other purpose regulated by the Fair Credit Reporting Act (FCRA), 15 U.S.C. § 1681 et seq.

# Actor input Schema

## `cities` (type: `array`):

Select municipal open-data markets to extract and fuse.

## `minDistressScore` (type: `number`):

Minimum severity score required to emit a property lead.

## `maxResults` (type: `integer`):

Maximum number of fused property leads returned in this run.

## `onlyOpenViolations` (type: `boolean`):

Exclude historical or closed code enforcement cases.

## `monitorMode` (type: `boolean`):

Emit only newly distressed properties not seen in prior scheduled runs.

## `socrataAppToken` (type: `string`):

Optional free Socrata X-App-Token to prevent shared-IP throttling on large runs.

## Actor input object example

```json
{
  "cities": [
    "chicago",
    "austin",
    "cincinnati"
  ],
  "minDistressScore": 3.5,
  "maxResults": 100,
  "onlyOpenViolations": true,
  "monitorMode": false
}
```

# Actor output Schema

## `results` (type: `string`):

Table of distressed property records with owner and taxpayer mailing addresses

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sabermudez/us-distressed-property-code-violations-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("sabermudez/us-distressed-property-code-violations-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call sabermudez/us-distressed-property-code-violations-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sabermudez/us-distressed-property-code-violations-leads"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vLrzKGGiwsjrMaxo4/builds/3KbYTnUwqUu9lhx6i/openapi.json
