# Pre-Distress Property Leads — Owner + Code Violations (`filingradar/us-pre-distress-property-leads`) Actor

Distressed-property leads from OPEN city code violations joined to the public assessor owner-of-record (legal owner + mailing address + value). Worst-first, with a reason-to-call. NYC + Miami-Dade live. Entity owners by default; public records only, no skip-trace.

- **URL**: https://apify.com/filingradar/us-pre-distress-property-leads.md
- **Developed by:** [Filing Radar](https://apify.com/filingradar) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Pre-Distress Property Leads — Owner + Code Violations

**A worst-first list of distressed properties, with the owner already attached.** This Actor reads **open building & code violations** from official city/county open data, finds the **most-distressed properties**, joins each to its **public owner-of-record** (legal owner, mailing address, value) from the county assessor, and hands you a ranked lead with a plain-English **reason to call**.

> **The edge:** government violation records flag distress **months before** a property shows up on Zillow, Propwire, or the MLS. This is a *pre-distress* signal, sourced from primary public records — not a resold listing scrape.

> **Live now: New York City, Miami-Dade FL, Austin TX, Dallas TX, and Phoenix AZ.** Atlanta is next.

---

### Who this is for

- **Real-estate investors & wholesalers** — find distressed, often absentee-owned buildings before they list.
- **Remediation / abatement contractors** — open class-C (immediately hazardous) violations are work that *has* to get done.
- **Note buyers, lenders, proptech** — a building-level distress + ownership signal for underwriting.

### What's in every lead

| Field | Example |
|-------|---------|
| `distress_rank` / `distress_score` | `1` · worst-first within the metro |
| `open_items` + `reason_to_call` | `112` · "112 open code-compliance case(s)" |
| `owner_name` + `owner_type` | `SOUTH DADE TOO LLC` · `entity` |
| `owner_mailing_address` (+ city/state/zip) | `7071 W COMMERCIAL BLVD STE 2A, TAMARAC FL` *(Miami-Dade)* |
| `property_address` (+ city/zip) | `23601 SW 133 AVE` |
| `assessed_value` · `units` · `year_built` · `property_use` | where the assessor provides it |
| `parcel_id` | BBL (NYC) · FOLIO (Miami-Dade) |
| `last_activity_date` · `distress_source_url` · `owner_source_url` | provenance on every row |

Export to **JSON, CSV, or Excel**, or pull via the **Apify API**.

### Inputs

| Input | What it does |
|-------|--------------|
| **Metros / states** | `NY` (NYC), `FL` (Miami-Dade), `TX` (Austin + Dallas), `AZ` (Phoenix). Default = all live. |
| **Owner types** | Default `entity` (LLC/Inc/Trust/Corp) — the absentee-investor target. Add `individual` to include person-owned parcels. Government owners are always excluded. |
| **Max leads per metro** | Cap output rows (and cost), worst-first. One row = one lead. |

### Pricing

**Pay per lead** — one ranked, owner-attached lead = one billable row: **$0.05 per lead.** You pay for an answer (which distressed property + who owns it), not a raw violation row.

### Privacy & sourcing — read this

- **Owner-of-record is public record.** Every owner field comes from the county assessor/property-appraiser's public roll — the same record anyone can pull at the counter. This is standard for real-estate lead products.
- **Entity-owners by default.** The default lead set is LLC/Inc/Trust/Corp owners only. Individual-person owners are included **only** if you explicitly add `individual` to *Owner types*.
- **No skip-tracing, ever.** We never append phone numbers, emails, or relatives, and never enrich beyond the public record. Government-owned parcels are excluded as non-actionable.

### Coverage notes (honest)

- **Miami-Dade** delivers the full lead: owner name **+ mailing address + assessed value**. Distress = open county code-compliance cases (unincorporated Miami-Dade), updated daily.
- **NYC** delivers owner **name** (+ units, year built, assessed value via PLUTO) but **not** a separate owner mailing address — NYC open data doesn't publish one. Distress = open HPD housing-maintenance violations, severity-weighted (class C/I = immediately hazardous weigh most).
- Scores are computed **within each metro** (different cities classify differently), so compare leads inside a metro, not across.

### Data sources

100% **public, keyless** government open data:

- **NYC** — HPD Housing Maintenance Code Violations (`data.cityofnewyork.us` · `wvxf-dwi5`) + PLUTO owner of record (`64uk-42ks`).
- **Miami-Dade** — Code Compliance Violations + Property Appraiser parcels (Miami-Dade ArcGIS, `services.arcgis.com/8Pc9XBTAsYuxx9Ny`).

No logins, no API keys, no gray-area sources. The join is by parcel id (BBL / FOLIO).

### FAQ

**Is this a listing scrape?** No — it's primary public records (code enforcement + assessor), which surface distress *before* a property lists.

**Is the data real?** Yes. Every field derives deterministically from public government data. No fabricated rows, ever.

**How fresh?** As fresh as the city/county portals — `last_activity_date` shows the most recent violation/case per property.

---

<sub>**For developers / source:** zero-dependency Node 20 (built-in `fetch`). `node src/run.mjs` runs the full pipeline locally and prints a one-line summary. Distress + owner are joined by parcel id; scoring is deterministic; owner classification is conservative (a name is only `entity` on an unambiguous org token). Dedup key: `lead_id`.</sub>

# Actor input Schema

## `metros` (type: `array`):

Which markets to pull. Supported: NY (New York City), FL (Miami-Dade + Tampa + Orlando), TX (Austin + Dallas + Houston), AZ (Phoenix), GA (Atlanta), NV (Las Vegas), OH (Cleveland). Default = all live. More metros coming.
## `owner_types` (type: `array`):

Which owners to include. Default = entity only (LLC / Inc / Trust / Corp / etc.) — the absentee-investor target, and the privacy-safe default. Add 'individual' to also include person-owned parcels (public assessor record). Government owners are always excluded.
## `limit` (type: `integer`):

Upper bound on leads (output rows) returned per metro per run, worst-first. One output row = one billable lead.

## Actor input object example

```json
{
  "metros": [
    "NY",
    "FL",
    "TX",
    "AZ",
    "GA",
    "NV",
    "OH"
  ],
  "owner_types": [
    "entity"
  ],
  "limit": 500
}
````

# 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("filingradar/us-pre-distress-property-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("filingradar/us-pre-distress-property-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 filingradar/us-pre-distress-property-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=filingradar/us-pre-distress-property-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pre-Distress Property Leads — Owner + Code Violations",
        "description": "Distressed-property leads from OPEN city code violations joined to the public assessor owner-of-record (legal owner + mailing address + value). Worst-first, with a reason-to-call. NYC + Miami-Dade live. Entity owners by default; public records only, no skip-trace.",
        "version": "1.0",
        "x-build-id": "8Ef2Bzi8Z1aOPgvfe"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/filingradar~us-pre-distress-property-leads/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-filingradar-us-pre-distress-property-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/filingradar~us-pre-distress-property-leads/runs": {
            "post": {
                "operationId": "runs-sync-filingradar-us-pre-distress-property-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/filingradar~us-pre-distress-property-leads/run-sync": {
            "post": {
                "operationId": "run-sync-filingradar-us-pre-distress-property-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "metros": {
                        "title": "Metros / states",
                        "type": "array",
                        "description": "Which markets to pull. Supported: NY (New York City), FL (Miami-Dade + Tampa + Orlando), TX (Austin + Dallas + Houston), AZ (Phoenix), GA (Atlanta), NV (Las Vegas), OH (Cleveland). Default = all live. More metros coming.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "NY",
                                "FL",
                                "TX",
                                "AZ",
                                "GA",
                                "NV",
                                "OH"
                            ]
                        },
                        "default": [
                            "NY",
                            "FL",
                            "TX",
                            "AZ",
                            "GA",
                            "NV",
                            "OH"
                        ]
                    },
                    "owner_types": {
                        "title": "Owner types",
                        "type": "array",
                        "description": "Which owners to include. Default = entity only (LLC / Inc / Trust / Corp / etc.) — the absentee-investor target, and the privacy-safe default. Add 'individual' to also include person-owned parcels (public assessor record). Government owners are always excluded.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "entity",
                                "individual"
                            ]
                        },
                        "default": [
                            "entity"
                        ]
                    },
                    "limit": {
                        "title": "Max leads per metro",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Upper bound on leads (output rows) returned per metro per run, worst-first. One output row = one billable lead.",
                        "default": 500
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
