Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksReal estate

    Property Distress Signals

    Properties in a US city with recent code violations, distress permits or a stale listing, stacked by address and ranked.

    Id
    property-distress-signals
    Version
    1.0.0
    Category
    Real estate
    Status
    Live
    Saved, it runs
    daily, weekly
    Unit cap
    400 by default, 5 to 5000

    Reads a city's newest code-enforcement cases and the permits that tend to follow trouble (demolition, fire damage, vacant or unsafe buildings) from its official open data, and stacks them by address: a property on two lists is a stronger lead than one on one. The best addresses are then looked up on Zillow for whether the home is listed, for how long and at what price, and for its size and value estimate. Rows are properties, never people: no owner name, no phone, no mailing address.

    Use when someone wants distressed or problem properties in a US city from public records, such as code violations or fire and demolition permits, for investing or wholesaling.

    Run it with POST /v1/formulas/property-distress-signals/runs. How runs work is in Running a playbook; what a run costs is below.

    Parameters

    The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type PropertyDistressSignalsParams.

    Parameters of Property Distress Signals
    ParameterTypeRequired or defaultWhat it is
    cityBasicsstringrequiredCity. The US city or county whose open data is read. These publish both code cases and permits.One of austin, chicago, new_york, los_angeles, seattle, new_orleans, cincinnati, montgomery_county_md, norfolk, buffalo.
    within_daysBasicsinteger60Opened or issued within (days). Only cases opened, and permits issued, in the last this many days.at least 1, at most 365.
    min_listsBasicsinteger1Least lists a property is on. 2 keeps only properties on two lists or more (a code case and a distress permit, or either and a listing).at least 1, at most 3.
    case_keywordsFilterslist of strings[]Case words. Only cases whose type or description holds one of these, such as structure, vacant or abatement. Each word is one search; empty reads the newest cases of any kind.up to 8, each up to 60 characters.
    open_cases_onlyFiltersbooleanfalseOnly cases still open. Leave out cases the city has closed.
    permit_keywordsFilterslist of strings["demoli","fire damage","vacant","unsafe"]Distress permit words. Permits whose type, work or description holds one of these are a signal. Each word is one search. Empty leaves permits out.up to 8, each up to 40 characters.
    cases_to_readFiltersinteger200Cases read. The newest this many code cases are read.at least 10, at most 200.
    permits_per_wordFiltersinteger100Permits read per word. The newest this many permits are read for each permit word.at least 10, at most 200.
    check_listingsEnrichmentbooleantrueCheck each property on Zillow. Whether the home is listed, how long and at what price, with its size and value estimate. One lookup a property.
    resurface_after_daysOutputinteger30Show a property again after (days). For a saved playbook, how long before a delivered property may come back.at least 1, at most 365.
    max_resultsOutputinteger100Most rows. The run stops at this many properties, most signals first.at least 1, at most 1000.

    Presets

    Ready-made answers to start from: give them as params, with any of your own beside them.

    Two lists or more stacked-only

    JSON
    {
      "city": "chicago",
      "min_lists": 2,
      "within_days": 120
    }

    Structure violations (Austin) structure-violations-austin

    JSON
    {
      "city": "austin",
      "case_keywords": [
        "structure",
        "dangerous",
        "substandard"
      ],
      "permit_keywords": [
        "fire damage",
        "foundation repair",
        "structural repair"
      ],
      "permits_per_word": 200,
      "within_days": 180
    }

    Fire damage and demolition (Chicago) fire-and-demolition

    JSON
    {
      "city": "chicago",
      "permit_keywords": [
        "wrecking",
        "fire damage",
        "fire repair"
      ],
      "case_keywords": [
        "vacant",
        "fire",
        "porch",
        "structural"
      ]
    }

    Columns

    The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.

    Columns of Property Distress Signals
    ColumnLabelTypeShown by default
    addressAddressstringyes
    cityCitystringyes
    postal_codeZIPstringyes
    listsListsintegeryes
    code_casesCode casesintegeryes
    case_kindsWhat the cases saylistyes
    latest_case_openedLatest case openeddateyes
    latest_case_statusCase statusstringyes
    distress_permitsDistress permitsintegeryes
    permit_kindsPermit typeslistyes
    latest_permit_issuedLatest permit issueddateyes
    permit_descriptionPermit workstringno
    listing_statusZillow statusstringyes
    list_pricePrice (USD)numberyes
    days_on_marketDays on Zillowintegeryes
    value_estimateZestimate (USD)numberyes
    home_typeHome typestringno
    bedroomsBedsnumberno
    living_areaLiving area (sq ft)numberno
    year_builtYear builtintegerno
    zillow_addressZillow's addressstringno
    listing_matchesZillow home is this addressbooleanno
    zillow_urlZillow pageurlyes
    record_urlOpen dataurlno
    scoreScorenumberyes

    Example request

    # Start the run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/formulas/property-distress-signals/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"city":"austin","case_keywords":["structure","dangerous","substandard"],"permit_keywords":["fire damage","foundation repair","structural repair"],"permits_per_word":200,"within_days":180,"min_lists":1,"open_cases_only":false,"cases_to_read":200,"check_listings":true,"resurface_after_days":30,"max_results":100},"unit_cap":400}'
    
    # Follow it until it ends, then read its rows, with the id the first call answered
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start the run, wait for it to end, and get its rows
    params = {
        "city": "austin",
        "case_keywords": ["structure", "dangerous", "substandard"],
        "permit_keywords": [
            "fire damage",
            "foundation repair",
            "structural repair",
        ],
        "permits_per_word": 200,
        "within_days": 180,
        "min_lists": 1,
        "open_cases_only": False,
        "cases_to_read": 200,
        "check_listings": True,
        "resurface_after_days": 30,
        "max_results": 100,
    }
    result = client.run_formula("property-distress-signals", params, unit_cap=400)
    print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
    
    # Read its rows, best first: pages are fetched as you go
    for row in result:
        print(row.data)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start the run, wait for it to end, and get its rows
    const params = {
      city: "austin",
      case_keywords: ["structure", "dangerous", "substandard"],
      permit_keywords: ["fire damage", "foundation repair", "structural repair"],
      permits_per_word: 200,
      within_days: 180,
      min_lists: 1,
      open_cases_only: false,
      cases_to_read: 200,
      check_listings: true,
      resurface_after_days: 30,
      max_results: 100,
    };
    const { run, rows } = await client.runFormula("property-distress-signals", params, { unitCap: 400 });
    console.log(run.id, run.status, run.rows_total, run.units_spent);
    
    // Read its rows, best first: pages are fetched as you go
    for await (const row of rows) console.log(row.data);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
    	defer cancel()
    
    	// Start the run, wait for it to end, and get its rows
    	params := map[string]any{"city": "austin", "case_keywords": []any{"structure", "dangerous", "substandard"}, "permit_keywords": []any{"fire damage", "foundation repair", "structural repair"}, "permits_per_word": 200, "within_days": 180, "min_lists": 1, "open_cases_only": false, "cases_to_read": 200, "check_listings": true, "resurface_after_days": 30, "max_results": 100}
    	run, rows, err := client.RunFormula(ctx, "property-distress-signals", params, &enrichednow.RunFormulaParams{UnitCap: 400})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
    
    	// Read its rows, best first: pages are fetched as you go
    	for rows.Next() {
    		fmt.Println(string(rows.Current().Data))
    	}
    	if err := rows.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.fasterxml.jackson.databind.ObjectMapper;
    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.FormulaResult;
    import com.enrichednow.FormulaRunOptions;
    import com.enrichednow.models.FormulaRow;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) throws Exception {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start the run, wait for it to end, and get its rows
            FormulaResult result = client.runFormula("property-distress-signals", new ObjectMapper().readValue("{\"city\":\"austin\",\"case_keywords\":[\"structure\",\"dangerous\",\"substandard\"],\"permit_keywords\":[\"fire damage\",\"foundation repair\",\"structural repair\"],\"permits_per_word\":200,\"within_days\":180,\"min_lists\":1,\"open_cases_only\":false,\"cases_to_read\":200,\"check_listings\":true,\"resurface_after_days\":30,\"max_results\":100}", Map.class), FormulaRunOptions.builder().unitCap(400).build());
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
    
            // Read its rows, best first: pages are fetched as you go
            for (FormulaRow row : result.rows()) {
                System.out.println(row.data());
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow formulas run property-distress-signals --params-json '{"city":"austin","case_keywords":["structure","dangerous","substandard"],"permit_keywords":["fire damage","foundation repair","structural repair"],"permits_per_word":200,"within_days":180,"min_lists":1,"open_cases_only":false,"cases_to_read":200,"check_listings":true,"resurface_after_days":30,"max_results":100}' --unit-cap 400

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "property-distress-signals",
        "params": {
          "city": "austin",
          "case_keywords": [
            "structure",
            "dangerous",
            "substandard"
          ],
          "permit_keywords": [
            "fire damage",
            "foundation repair",
            "structural repair"
          ],
          "permits_per_word": 200,
          "within_days": 180,
          "min_lists": 1,
          "open_cases_only": false,
          "cases_to_read": 200,
          "check_listings": true,
          "resurface_after_days": 30,
          "max_results": 100
        }
      }
    }

    It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.

    Example response

    The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 40 rows, after 46 scraper calls charged 32 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "address": "2409 WILLOW STREET",
        "city": "Austin",
        "postal_code": "78702",
        "lists": 2,
        "code_cases": 3,
        "case_kinds": [
          "Structure Condition Violation(s)"
        ],
        "latest_case_opened": "2026-11-22",
        "latest_case_status": "Pending",
        "distress_permits": 0,
        "permit_kinds": [],
        "latest_permit_issued": null,
        "permit_description": null,
        "listing_status": "for_sale",
        "list_price": 590000,
        "days_on_market": 43,
        "value_estimate": 534900,
        "home_type": "single_family",
        "bedrooms": 3,
        "living_area": 1348,
        "year_built": 1937,
        "zillow_address": "2409 Willow St",
        "listing_matches": true,
        "zillow_url": "https://www.zillow.com/homedetails/2409-Willow-St-Austin-TX-78702/29382429_zpid/",
        "record_url": "https://data.austintexas.gov/d/6wtj-zbtb",
        "score": 70
      },
      {
        "address": "2501 E 7TH ST",
        "city": "Austin",
        "postal_code": "78702",
        "lists": 2,
        "code_cases": 1,
        "case_kinds": [
          "Structure Condition Violation(s)"
        ],
        "latest_case_opened": "2026-11-22",
        "latest_case_status": "Closed",
        "distress_permits": 1,
        "permit_kinds": [
          "Building Permit"
        ],
        "latest_permit_issued": "2026-11-18",
        "permit_description": "Foundation repair installing 22 ext pilings at retail shopping center",
        "listing_status": null,
        "list_price": null,
        "days_on_market": null,
        "value_estimate": null,
        "home_type": null,
        "bedrooms": null,
        "living_area": null,
        "year_built": null,
        "zillow_address": null,
        "listing_matches": false,
        "zillow_url": null,
        "record_url": "https://data.austintexas.gov/d/6wtj-zbtb",
        "score": 55
      },
      {
        "address": "1900 BURTON DRIVE",
        "city": "Austin",
        "postal_code": "78741",
        "lists": 1,
        "code_cases": 10,
        "case_kinds": [
          "Structure Condition Violation(s)"
        ],
        "latest_case_opened": "2026-11-23",
        "latest_case_status": "Closed",
        "distress_permits": 0,
        "permit_kinds": [],
        "latest_permit_issued": null,
        "permit_description": null,
        "listing_status": "off_market",
        "list_price": null,
        "days_on_market": 600,
        "value_estimate": null,
        "home_type": "apartment",
        "bedrooms": 1,
        "living_area": null,
        "year_built": 1972,
        "zillow_address": "1900 Burton Dr #776f18ccb",
        "listing_matches": true,
        "zillow_url": "https://www.zillow.com/homedetails/1900-Burton-Dr-776F18CCB-Austin-TX-78741/449243660_zpid/",
        "record_url": "https://data.austintexas.gov/d/6wtj-zbtb",
        "score": 30
      }
    ]

    Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.

    Pricing

    A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 400 units unless you give another (at least 5, at most 5000).

    With the answers above, a run is estimated at about 71 units for about 100 rows, and at most 106: 6 searches and 100 lookups across 3 sources, about 100 rows. An estimate for no history; POST /v1/formulas/property-distress-signals/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 12 units with the answers above. POST /v1/formulas/property-distress-signals/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.