{
  "openapi": "3.0.1",
  "info": {
    "title": "Washington Pre-Foreclosure & Lien Leads (11 Counties)",
    "description": "Daily pre-foreclosure and lien leads from 11 Washington county recorders: trustee appointments, notices of trustee sale, liens, judgments and lis pendens. Paid-off loans removed. Each lead joined to owner, mailing address, value and tax owed.",
    "version": "1.0",
    "x-build-id": "KK9fEJwVM5AGThO5E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataji~washington-pre-foreclosure-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataji-washington-pre-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/dataji~washington-pre-foreclosure-leads/runs": {
      "post": {
        "operationId": "runs-sync-dataji-washington-pre-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/dataji~washington-pre-foreclosure-leads/run-sync": {
      "post": {
        "operationId": "run-sync-dataji-washington-pre-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": {
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Washington counties to search. Pick one or more.",
            "items": {
              "type": "string",
              "enum": [
                "kitsap",
                "thurston",
                "spokane",
                "lewis",
                "mason",
                "king",
                "pierce",
                "skagit",
                "whatcom",
                "grays_harbor",
                "cowlitz"
              ],
              "enumTitles": [
                "Kitsap",
                "Thurston",
                "Spokane",
                "Lewis",
                "Mason",
                "King",
                "Pierce",
                "Skagit",
                "Whatcom",
                "Grays Harbor",
                "Cowlitz"
              ]
            },
            "default": [
              "kitsap"
            ]
          },
          "signalCategories": {
            "title": "Filing types",
            "type": "array",
            "description": "Pre-foreclosure (trustee appointments, notices of trustee sale, trustee deeds) and liens & court filings (tax, government, utility and HOA liens, judgments, lis pendens) are on by default. Other types are optional.",
            "items": {
              "type": "string",
              "enum": [
                "pre_foreclosure",
                "liens_court",
                "lead_closed",
                "sales_transfers",
                "financing",
                "inheritance",
                "divorce",
                "business"
              ],
              "enumTitles": [
                "Pre-foreclosure",
                "Liens and court",
                "Lead closed (releases, reconveyances)",
                "Sales and transfers",
                "Financing",
                "Inheritance",
                "Divorce",
                "Business"
              ]
            },
            "default": [
              "pre_foreclosure",
              "liens_court"
            ]
          },
          "lastNDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Filings recorded in the last N days, ending yesterday (Pacific time). Ignored when 'Recorded from' is set.",
            "default": 7
          },
          "dateFrom": {
            "title": "Recorded from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First recording date to include (YYYY-MM-DD). Overrides \"Last N days\"."
          },
          "dateTo": {
            "title": "Recorded to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last recording date to include (YYYY-MM-DD). Default: yesterday."
          },
          "addPropertyDetails": {
            "title": "Add property and owner details",
            "type": "boolean",
            "description": "Adds the property address, owner, mailing address, absentee flag, building details, assessed value, property tax owed and last sale from the county assessor. Rows with property data joined are charged as leads; without it they are charged as plain filings.",
            "default": true
          },
          "includePaidOffLoans": {
            "title": "Include paid-off loans",
            "type": "boolean",
            "description": "About 9 in 10 trustee appointments are filed when a loan is paid off, not for a foreclosure. These are removed by default and are never charged. Turn this on to keep them (marked loanStatus: paid_off).",
            "default": false
          },
          "maxResults": {
            "title": "Max results per county",
            "minimum": 1,
            "type": "integer",
            "description": "Keeps the newest N filings per county after the whole date window is searched. Use it to cap cost.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for these counties. Leave it off unless a county starts blocking.",
            "default": {
              "useApifyProxy": false
            }
          },
          "debug": {
            "title": "Save sample pages (troubleshooting)",
            "type": "boolean",
            "description": "Saves the first results, related and detail page of each county to the key-value store. Only useful when reporting a problem.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}