{
  "openapi": "3.0.1",
  "info": {
    "title": "Montana Distressed Rental Finder – Motivated Seller Leads",
    "description": "Scored motivated-seller leads for Montana 2+ unit rentals: tax delinquency scaled to property value, trustee/sheriff sales, recorded trustee notices, open code cases, long ownership, absentee owners. Parcel-centric, no owner names, with record ids and document numbers to verify each signal.",
    "version": "1.0",
    "x-build-id": "hkiPSEEOUVnmaVtKo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/appetizing_horsefly~mt-distressed-rental-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-appetizing_horsefly-mt-distressed-rental-finder",
        "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/appetizing_horsefly~mt-distressed-rental-finder/runs": {
      "post": {
        "operationId": "runs-sync-appetizing_horsefly-mt-distressed-rental-finder",
        "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/appetizing_horsefly~mt-distressed-rental-finder/run-sync": {
      "post": {
        "operationId": "run-sync-appetizing_horsefly-mt-distressed-rental-finder",
        "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": {
          "county": {
            "title": "Montana county",
            "enum": [
              "Yellowstone",
              "Gallatin",
              "Park"
            ],
            "type": "string",
            "description": "County to search. All three are live: Yellowstone (Billings, Laurel), Gallatin (Bozeman, Belgrade, Big Sky, Manhattan, Three Forks, West Yellowstone) and Park (Livingston, Gardiner).",
            "default": "Yellowstone"
          },
          "minScore": {
            "title": "Minimum motivation score",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Only return leads at or above this score. Tax delinquency (incl. Yellowstone tax liens sold under assignment, from a point-in-time snapshot taken 2026-10-18 and not refreshed automatically) (Gallatin / Park: from the county's latest published list, the current tax year re-checked per parcel on the county tax page, so parcels paid since the list date drop out) scales with size: 4 if the delinquent amount is >=1.5% of assessed value, 3 for 0.5-1.5%, 2 for 0.1-0.5%, 1 below 0.1% (+1 if multiple years). Trustee / sheriff sale listed 4 (only sales dated today or later (Montana time) and not marked cancelled, postponed, bankruptcy, completed or sold; such a live sale always qualifies, whatever this score, so a run can return sale leads scored below it), recorded trustee notice / lis pendens / tax deed application 2, OPEN code case 2 (+1 dangerous), owned 20+ yrs 2 / 10+ yrs 1, out-of-state owner 2, estate 2 / trust 1. Closed code cases are shown for context but score 0. 4 is a good start; 7+ is a short, hot list.",
            "default": 4
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of leads to return (highest score first). Each lead is one billable event; same-owner parcels on the same street with the same units and year built are merged into one lead and billed once. 0 = no cap.",
            "default": 20
          },
          "minUnits": {
            "title": "Minimum units",
            "minimum": 2,
            "maximum": 500,
            "type": "integer",
            "description": "2 = duplexes and up. 5 = apartment buildings with 5+ units only. Applied after same-owner parcels are merged, so two side-by-side 4-plexes count as one 8-unit lead.",
            "default": 2
          },
          "requireDistressSignal": {
            "title": "Require a hard distress signal",
            "type": "boolean",
            "description": "On (recommended): every lead has at least one HARD signal: tax delinquency of at least 0.1% of assessed value, a trustee / sheriff sale listing, a recorded trustee notice / lis pendens / tax deed application (matched by legal description), or an OPEN code case. Closed code cases (display only, 0 points) and token delinquencies (<0.1% of value) never qualify a lead. Off: soft-only leads (e.g. long-held + out-of-state) are included too.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new leads since my last run",
            "type": "boolean",
            "description": "Skip parcels this account already received for this county (kept in a named key-value store in your own account). Handy for weekly schedules: you pay only for new leads.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}