{
  "openapi": "3.0.1",
  "info": {
    "title": "US Probate, Tax Lien, Lis Pendens & Foreclosure Leads",
    "description": "Extract daily off-market Probate, Pre-Foreclosure, Lis Pendens, Tax/HOA Liens & Judgments from US County Clerks (Kofile, Landmark & Tyler). Skip-trace ready.",
    "version": "0.0",
    "x-build-id": "ZZy9NdgwmEm4iTE8T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~us-county-probate-tax-lien-foreclosure-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-us-county-probate-tax-lien-foreclosure-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/unique_dev~us-county-probate-tax-lien-foreclosure-leads/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-us-county-probate-tax-lien-foreclosure-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/unique_dev~us-county-probate-tax-lien-foreclosure-leads/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-us-county-probate-tax-lien-foreclosure-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": {
          "playbook_preset": {
            "title": "Playbook Preset",
            "enum": [
              "custom",
              "wholesaler_pre_foreclosure",
              "probate_heirship_off_market",
              "tax_hoa_lien_stacker",
              "lender_title_judgment_check",
              "mcp_x402_micro_sample"
            ],
            "type": "string",
            "description": "Optional ready-made strategy preset (Wholesaler, Probate, Tax/HOA Stacker, Lender/Title, or Micro-Sample). Leave as 'Custom' to configure manually—any field you fill in below automatically overrides the preset.",
            "default": "custom"
          },
          "states": {
            "title": "Target US States",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional 2-letter US state codes (e.g. TX, FL, AZ, CO, GA, MI). Combines with Target Counties below. Leave both States and Counties empty to automatically poll the 3-county starter pack (tx_collin, fl_indian_river, az_yavapai). Defaults to empty [].",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$",
              "minLength": 2,
              "maxLength": 2
            }
          },
          "counties": {
            "title": "Target Counties",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional county codes to search (e.g. tx_collin, tx_dallas, fl_indian_river, fl_hernando, fl_citrus, ga_dekalb, az_yavapai, co_arapahoe, mi_muskegon). Combines with Target US States. Leave both empty to use the 3-county starter pack. Defaults to empty [].",
            "items": {
              "type": "string",
              "pattern": "^[a-z]{2}_[a-z0-9_]+$"
            }
          },
          "vendor_types": {
            "title": "County Portal Platform (Optional)",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional advanced filter to limit runs to specific county clerk portal systems. Leave empty to search all supported portals (recommended; default: []).",
            "items": {
              "type": "string",
              "enum": [
                "kofile_publicsearch",
                "landmark_web",
                "tyler_eagleweb"
              ],
              "enumTitles": [
                "Kofile / GovOS PublicSearch",
                "Catalis / Pioneer Landmark Web",
                "Tyler Technologies EagleWeb"
              ]
            },
            "default": []
          },
          "custom_kofile_domains": {
            "title": "Custom PublicSearch County Domains (Advanced)",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional advanced setting: add extra Kofile/GovOS PublicSearch county hostnames outside the built-in 20 counties (e.g. brazos.tx.publicsearch.us). Leave empty unless adding custom domains (validated against ^[a-z0-9-]+(?:\\.[a-z]{2})?\\.publicsearch\\.us$).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "lead_categories": {
            "title": "Distressed Lead Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Types of distressed property filings to collect (defaults to all 6 distressed categories in Custom mode). Select 'All Recorded Documents' only if you also want regular deeds and mortgages ($0.008/record).",
            "items": {
              "type": "string",
              "enum": [
                "pre_foreclosure",
                "probate_heirship",
                "tax_lien",
                "hoa_mechanics_lien",
                "judgment_abstract",
                "foreclosure_tax_deed",
                "all_recorded_documents"
              ],
              "enumTitles": [
                "Pre-Foreclosure & Lis Pendens",
                "Probate, Heirship & Estate",
                "Federal & State Tax Liens",
                "HOA & Mechanics Liens",
                "Judgments & Abstracts",
                "Foreclosure & Tax Deeds",
                "All Recorded Documents (Standard + Distressed)"
              ]
            }
          },
          "include_releases": {
            "title": "Include Releases & Satisfactions",
            "type": "boolean",
            "description": "Keep unchecked (default: false) to automatically remove paid-off lien releases, satisfactions, cancellations, and dismissals. Check true only if you want releases included ($0.008/record).",
            "default": false
          },
          "only_individual_owners": {
            "title": "Individual & Estate Owners Only",
            "type": "boolean",
            "description": "Check true to exclude LLCs, corporations, banks, HOAs, and government agencies—keeping only individual homeowners and estates ready for outreach (default: false in Custom mode)."
          },
          "min_distress_score": {
            "title": "Minimum Distress Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return leads at or above this 0-100 motivation score (0 = all leads, 70+ = high priority, 85+ = critical). Defaults to 0 in Custom mode, or the selected preset's threshold."
          },
          "lookback_days": {
            "title": "Lookback Days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many days back from today (UTC) to search recorded filings (1-90). Ignored if Start Date is set. Defaults to 7 days in Custom mode."
          },
          "start_date": {
            "title": "Start Date (YYYY-MM-DD, Optional)",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2})$",
            "type": "string",
            "description": "Optional exact inclusive recording start date (YYYY-MM-DD). Leave blank to use Lookback Days automatically.",
            "default": ""
          },
          "end_date": {
            "title": "End Date (YYYY-MM-DD, Optional)",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2})$",
            "type": "string",
            "description": "Optional exact inclusive recording end date (YYYY-MM-DD). Leave blank to default to today (UTC). Max 90-day span from Start Date.",
            "default": ""
          },
          "max_leads_per_county": {
            "title": "Max Leads Per County",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum candidate leads kept per county in a single run (1-5000). Defaults to 100.",
            "default": 100
          },
          "max_total_leads": {
            "title": "Max Total Leads",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum new leads billed and delivered across all counties in one run (1-10000). Defaults to 20 (~$0.60-$1.20 preview) in Custom mode (10 in Micro-Sample). Increase for larger runs."
          },
          "enable_deduplication": {
            "title": "Skip Previously Delivered Leads (90-Day Deduplication)",
            "type": "boolean",
            "description": "Keep checked (default: true) so scheduled Make.com or Apify runs never deliver or charge twice for the same filing over 90 days. Uncheck only for one-off test runs.",
            "default": true
          },
          "consolidate_by_owner": {
            "title": "Merge Duplicate Same-Owner Filings",
            "type": "boolean",
            "description": "Keep checked (default: true) to merge multi-document packets for the same owner and category in the same county (such as 3-4 sequential probate filings) into one clean row and one single charge.",
            "default": true
          },
          "enrich_property_appraisal": {
            "title": "Enrich with Street Address, Value & Absentee Flag",
            "type": "boolean",
            "description": "Keep checked (default: true) to look up official county tax appraisal rolls (Wave 1A: tx_collin, tx_dallas, fl_indian_river, fl_hernando, fl_citrus) and fill in street property_address, owner_mailing_address, is_absentee_owner, assessed_market_value, homestead_exempt, and property_use_class. No user API key needed. Fair billing: $0.06 only when matched (>=0.75) with a street address; unmatched or excluded counties (e.g. az_yavapai) stay at $0.03.",
            "default": true
          },
          "dedup_namespace": {
            "title": "Client / Scenario Deduplication Tag",
            "maxLength": 128,
            "type": "string",
            "description": "Optional tag to keep 90-day duplicate history separate per client or Make.com scenario (e.g. 'client-acme' or 'dallas-sheets'). Leave as 'default' for a single shared history (stored in 'county-clerk-leads-dedup-<tag>', max 63 chars).",
            "default": "default"
          },
          "webhook_url": {
            "title": "Direct Webhook URL (HTTPS, Optional)",
            "type": "string",
            "description": "Optional HTTPS endpoint (such as a Make.com Custom Webhook URL) to receive batched JSON lead payloads (100 leads per request). Leave blank if using Make.com's native 'Apify -> Get Dataset Items' module. Public HTTPS URLs only (private IPs and redirects blocked)."
          },
          "webhook_secret": {
            "title": "Webhook Signing Secret (Optional)",
            "type": "string",
            "description": "Optional shared secret used to sign direct webhook payloads with header X-ClerkLeads-Signature-256 (HMAC-SHA256). Leave blank if not verifying signatures."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}