# US Distressed Property Leads (`great_pistachio/us-distressed-property-leads`) Actor

Distressed property leads across major US markets: tax liens, pre-foreclosures, code violations, and vacant/abandoned buildings from official city and county open data. Owner names, addresses, and amounts owed where published. For real estate investors and wholesalers.

- **URL**: https://apify.com/great\_pistachio/us-distressed-property-leads.md
- **Developed by:** [Saturnin Pugnet](https://apify.com/great_pistachio) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## US Distressed Property Leads — Tax Liens, Pre-Foreclosures, Code Violations, Vacant

Find distressed properties across major US markets in one unified feed, straight from official city and county open data. Tax lien sale lists, registered foreclosures, code-violation cases, and vacant/abandoned buildings — with owner names, addresses, and amounts owed where the government publishes them.

**Built for real estate investors and wholesalers: schedule it and get fresh motivated-seller leads without paying $100-200/mo for PropStream-style tools.**

### Signal Types & Markets

| Source | Market | Signal | Highlights |
|--------|--------|--------|------------|
| NYC Tax Lien Sale List | New York City | Tax lien | The at-risk list published before each lien sale; borough-block-lot + address |
| LA Registered Foreclosures | Los Angeles | Pre-foreclosure | **Includes lender name + contact phone** |
| Detroit Blight Tickets | Detroit | Code violation | **Full owner name + mailing address + balance due + collection status** |
| Miami-Dade Open Violations | Miami-Dade County | Code violation | Active enforcement cases with parcel folio |
| Miami-Dade Code Liens | Miami-Dade County | Code lien | Violations escalated to a recorded lien (stronger distress) |
| Chicago Building Violations | Chicago | Code violation | Open building-code violations, updated daily |
| Chicago Vacant & Abandoned | Chicago | Vacant | Vacant buildings with fines owed + owner named |

Four distress signal types across five of the biggest US metros. More markets are added as cities publish usable data — open an issue to request one.

### Why These Markets

Distress data is a patchwork: many counties either don't publish it, freeze it years out of date, or hide it behind paid subscriptions and login walls. This actor only includes sources that are **free, official, and actually maintained** — verified live. Notably, the classic county tax-sale lists (Cook County, Philadelphia) are frozen years out of date on their open portals and are deliberately excluded rather than shipped stale.

### Output

One unified schema across every source. Each lead includes (where the source provides it):

| Field | Description |
|-------|-------------|
| `jurisdiction`, `signalType`, `source` | Where the lead came from and what kind of distress |
| `propertyAddress`, `city`, `state`, `zip` | The distressed property |
| `parcelId` | Parcel/folio/APN/BBL identifier |
| `ownerName`, `ownerMailingAddress` | Owner and mailing address (Detroit, Chicago vacant) |
| `amountDue` | Balance/fines owed (Detroit, Chicago vacant) |
| `status` | Case/cycle status |
| `signalDate` | Date of the filing/violation/registration |
| `description` | Violation or problem description |
| `lender`, `lenderPhone` | Foreclosure lender contact (LA) |
| `latitude`, `longitude` | Coordinates where published |
| `sourceUrl`, `dataSource` | Official source |

### Input

```json
{
    "filedSince": "last365days",
    "sources": [],
    "signalTypes": ["pre_foreclosure", "tax_lien"],
    "zipPrefix": "112",
    "maxResultsPerSource": 500
}
````

- `sources`: empty = all. Pick specific markets/lists by key.
- `signalTypes`: filter to `tax_lien`, `pre_foreclosure`, `code_violation`, `code_lien`, `vacant`.
- `filedSince`: date window (`last7days` … `last365days`, `all`). Default 365 days.
- `zipPrefix`: only properties whose ZIP starts with this (e.g. `112` for parts of Brooklyn).
- `maxResults` / `maxResultsPerSource`: caps. 0 = unlimited.

### Data Freshness Notes

- **Fresh/daily:** LA foreclosures, Detroit blight tickets, Miami-Dade open violations, Chicago building violations.
- **Periodic snapshots:** the NYC tax lien list is published in cycles — this actor returns the most recent published cycle in full (the current at-risk list), regardless of the date window. Chicago's vacant-buildings registry updates in batches.
- Chicago's building-violation dataset is millions of rows; the actor pulls only `OPEN` violations within your date window. Use `zipPrefix` and `maxResultsPerSource` to keep runs focused.

### Works Great With

- [Property Tax Scraper](https://apify.com/great_pistachio/property-tax-scraper) - Pull full assessor records (value, ownership, sale history) for any distressed parcel you find here
- [US Business Entity Search](https://apify.com/great_pistachio/us-business-search) - When the owner is an LLC, look up its registration and agent
- [Website Company Enricher](https://apify.com/great_pistachio/website-company-enricher) - Enrich corporate owners with contact data

### Legal

All records are public data published by city and county governments. No login, no scraping of protected sites, no data beyond what these agencies publish for public use.

# Actor input Schema

## `sources` (type: `array`):

Which markets/lists to pull. Leave empty for all.

## `signalTypes` (type: `array`):

Optionally narrow to specific distress signals. Leave empty for all.

## `filedSince` (type: `string`):

Only include leads dated within this window. Distress lists move slower than new filings, and some (NYC tax liens, Chicago vacant) are published in periodic cycles, so 365 days is the default to catch every source.

## `zipPrefix` (type: `string`):

Only include properties whose ZIP starts with this prefix (e.g. '112' for parts of Brooklyn). Leave empty for all.

## `maxResultsPerSource` (type: `integer`):

Cap leads per source. 0 = unlimited.

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

Cap total leads across all sources. 0 = unlimited.

## Actor input object example

```json
{
  "sources": [],
  "signalTypes": [],
  "filedSince": "last365days",
  "zipPrefix": "",
  "maxResultsPerSource": 50,
  "maxResults": 0
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Distressed properties across US markets — tax liens, foreclosures, code violations, and vacant buildings, with address, owner, amount owed, and status where published

# 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 = {
    "maxResultsPerSource": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("great_pistachio/us-distressed-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 = { "maxResultsPerSource": 50 }

# Run the Actor and wait for it to finish
run = client.actor("great_pistachio/us-distressed-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 '{
  "maxResultsPerSource": 50
}' |
apify call great_pistachio/us-distressed-property-leads --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "US Distressed Property Leads",
        "description": "Distressed property leads across major US markets: tax liens, pre-foreclosures, code violations, and vacant/abandoned buildings from official city and county open data. Owner names, addresses, and amounts owed where published. For real estate investors and wholesalers.",
        "version": "1.0",
        "x-build-id": "NItyvaAsYTVv6Abxd"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/great_pistachio~us-distressed-property-leads/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-great_pistachio-us-distressed-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/great_pistachio~us-distressed-property-leads/runs": {
            "post": {
                "operationId": "runs-sync-great_pistachio-us-distressed-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/great_pistachio~us-distressed-property-leads/run-sync": {
            "post": {
                "operationId": "run-sync-great_pistachio-us-distressed-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",
                "required": [
                    "filedSince"
                ],
                "properties": {
                    "sources": {
                        "title": "Sources",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Which markets/lists to pull. Leave empty for all.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "nyc-tax-liens",
                                "la-foreclosures",
                                "detroit-blight",
                                "miami-dade-code-violations",
                                "miami-dade-code-liens",
                                "chicago-violations",
                                "chicago-vacant"
                            ],
                            "enumTitles": [
                                "New York City — Tax Lien Sale List",
                                "Los Angeles — Registered Foreclosures (with lender)",
                                "Detroit — Blight Tickets (owner + balance due)",
                                "Miami-Dade — Open Code Violations",
                                "Miami-Dade — Code Violation Liens",
                                "Chicago — Building Code Violations",
                                "Chicago — Vacant & Abandoned Buildings"
                            ]
                        },
                        "default": []
                    },
                    "signalTypes": {
                        "title": "Signal Types",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Optionally narrow to specific distress signals. Leave empty for all.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "tax_lien",
                                "pre_foreclosure",
                                "code_violation",
                                "code_lien",
                                "vacant"
                            ],
                            "enumTitles": [
                                "Tax Lien",
                                "Pre-Foreclosure",
                                "Code Violation",
                                "Code Violation Lien",
                                "Vacant / Abandoned"
                            ]
                        },
                        "default": []
                    },
                    "filedSince": {
                        "title": "Filed Since",
                        "enum": [
                            "last7days",
                            "last30days",
                            "last90days",
                            "last365days",
                            "all"
                        ],
                        "type": "string",
                        "description": "Only include leads dated within this window. Distress lists move slower than new filings, and some (NYC tax liens, Chicago vacant) are published in periodic cycles, so 365 days is the default to catch every source.",
                        "default": "last365days"
                    },
                    "zipPrefix": {
                        "title": "ZIP Filter",
                        "type": "string",
                        "description": "Only include properties whose ZIP starts with this prefix (e.g. '112' for parts of Brooklyn). Leave empty for all.",
                        "default": ""
                    },
                    "maxResultsPerSource": {
                        "title": "Max Results per Source",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Cap leads per source. 0 = unlimited.",
                        "default": 50
                    },
                    "maxResults": {
                        "title": "Max Results Total",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Cap total leads across all sources. 0 = unlimited.",
                        "default": 0
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
