{
  "openapi": "3.0.1",
  "info": {
    "title": "Distressed Property Scraper — Tax Delinquent & Pre-Foreclosure",
    "description": "Pull a tax delinquent properties list, pre-foreclosure list, sheriff sale list, code violations, vacant property & probate leads from US county/city records — fused per property, scored for distress, and skip-traced to a callable owner. Motivated seller leads, pay-per-event, first 20 rows free.",
    "version": "0.0",
    "x-build-id": "s0WGVIyrlZeMEbSaW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dominvo~distressed-property-ai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dominvo-distressed-property-ai-scraper",
        "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/dominvo~distressed-property-ai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dominvo-distressed-property-ai-scraper",
        "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/dominvo~distressed-property-ai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dominvo-distressed-property-ai-scraper",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "code_violations",
              "vacant_registry",
              "demolition_permits",
              "fire_incidents",
              "pre_foreclosure",
              "foreclosure_auctions",
              "tax_delinquent",
              "probate_filings",
              "absentee_owner",
              "high_equity",
              "distress_match",
              "enriched_lead"
            ],
            "type": "string",
            "description": "Which mode to run. Each mode reads a subset of the fields below — see each field's note.",
            "default": "code_violations"
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names to pull (e.g. Chicago, Philadelphia, Washington DC). Used by city-signal modes: code_violations, vacant_registry, demolition_permits, fire_incidents, and distress_match. Leave empty to pull all verified cities for the chosen signal.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "County names to pull. Used by county modes: pre_foreclosure, probate_filings, absentee_owner, high_equity.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "county": {
            "title": "County (single)",
            "type": "string",
            "description": "A single county name. Used by single-county modes: foreclosure_auctions, tax_delinquent."
          },
          "metros": {
            "title": "Metros",
            "type": "array",
            "description": "Metro/city names to fuse and enrich. Used by enriched_lead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "signals": {
            "title": "Signals to fuse (distress_match)",
            "type": "array",
            "description": "Subset of Tier 1 signal modes to fuse per property. Omit to fuse all defaults (code_violations, vacant_registry, demolition_permits, fire_incidents). Used by distress_match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "signal_types": {
            "title": "Signal types (enriched_lead)",
            "type": "array",
            "description": "Subset of Tier 1 signal modes to fuse before enrichment. Omit to fuse all available signals. Used by enriched_lead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_signals": {
            "title": "Min stacked signals (distress_match / enriched_lead)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum distinct signals on one parcel to qualify as a distress match. Used by distress_match and enriched_lead.",
            "default": 2
          },
          "min_equity_pct": {
            "title": "Min equity % (high_equity)",
            "type": "string",
            "description": "Minimum equity headroom as a fraction (e.g. 0.5 = 50%). Used by high_equity."
          },
          "min_assessed_value": {
            "title": "Min assessed value (high_equity)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum assessed property value to include. Used by high_equity."
          },
          "address_filter": {
            "title": "Address filter (tax_delinquent)",
            "type": "string",
            "description": "Optional substring to filter parcels by address. Used by tax_delinquent."
          },
          "date_from": {
            "title": "From date",
            "type": "string",
            "description": "Earliest signal date (YYYY-MM-DD). Optional. Used by city-signal modes, distress_match, high_equity, enriched_lead."
          },
          "date_to": {
            "title": "To date",
            "type": "string",
            "description": "Latest signal date (YYYY-MM-DD). Optional. Used by city-signal modes, distress_match, high_equity, enriched_lead."
          },
          "since_date": {
            "title": "Since date (county modes)",
            "type": "string",
            "description": "Incremental floor (YYYY-MM-DD) — pull records on or after this date. Used by county modes: pre_foreclosure, foreclosure_auctions, tax_delinquent, probate_filings, absentee_owner."
          },
          "limit": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on rows pulled per source. Omit for the adapter default (unlimited). Used by every mode."
          },
          "socrata_app_token": {
            "title": "Socrata app token",
            "type": "string",
            "description": "Optional Socrata app token (raises the throttle ceiling). If omitted, the actor reads APIFY_SOCRATA_APP_TOKEN from env. Used by Socrata-backed signal modes."
          },
          "skiptrace_actor_id": {
            "title": "Skip-trace Actor ID (enriched_lead)",
            "type": "string",
            "description": "Apify Actor ID to chain for skip-trace enrichment. Paid (~$0.007/result); billed to the actor publisher via DOMIN_APIFY_TOKEN resale token, not to the buyer. No match = 0 items = $0. Override with any Actor accepting street_citystatezip input. Used by enriched_lead.",
            "default": "one-api/skip-trace"
          },
          "max_signals_per_source": {
            "title": "Max signals per source (distress_match / enriched_lead)",
            "minimum": 1,
            "type": "integer",
            "description": "Caps raw signals scanned per Tier 1 source before fusion, bounding cost and compute. Each child signal mode fetches at most this many rows. Used by distress_match and enriched_lead. Increase for broader coverage; decrease to limit compute cost.",
            "default": 2000
          },
          "skiptrace_api_key": {
            "title": "Skip-trace API key (enriched_lead)",
            "type": "string",
            "description": "Optional paid skip-trace API key. Alternative to chaining an Apify Actor. Used by enriched_lead."
          },
          "output_format": {
            "title": "Output format",
            "enum": [
              "json",
              "ndjson",
              "csv",
              "xlsx"
            ],
            "type": "string",
            "description": "json streams to the default dataset. ndjson/csv/xlsx flush to the key-value store at end of run.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Defaults to Apify Proxy (US) — several open-data portals block non-US or datacenter egress IPs, so US routing keeps runs reliable. Switch country or add residential groups if a source still blocks you.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}