{
  "openapi": "3.0.1",
  "info": {
    "title": "Texas Foreclosure Notices (Pre-Foreclosure Leads)",
    "description": "Texas foreclosure notices (notices of trustee sale) newly filed with 37 county clerks, by filing date: Dallas, Tarrant, Bexar, Denton, Hidalgo and more. Property address, sale date and names where the county lists them.",
    "version": "0.1",
    "x-build-id": "hWfDhClmZ9GOjIw4m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/finaldynamics~texas-foreclosure-notices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-finaldynamics-texas-foreclosure-notices",
        "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/finaldynamics~texas-foreclosure-notices/runs": {
      "post": {
        "operationId": "runs-sync-finaldynamics-texas-foreclosure-notices",
        "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/finaldynamics~texas-foreclosure-notices/run-sync": {
      "post": {
        "operationId": "run-sync-finaldynamics-texas-foreclosure-notices",
        "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": "Texas counties to search, or All 37 counties. Each county is marked with what its online records usually show for a notice: an address on nearly every notice, on most, on some, or no address. Notices without an address still have the document number, the filing date, a link to the notice's page on the county's website and, in most counties, the sale date (Coleman and Hockley list none). Your dates always mean the filing date. Most counties can only be searched by sale date, so the run reads their list of upcoming sales and keeps the notices filed in your dates. If one county fails, the others still deliver and the failed one is not charged.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "anderson",
                "bee",
                "bexar",
                "blanco",
                "brazos",
                "burleson",
                "cameron",
                "coleman",
                "dallas",
                "denton",
                "gillespie",
                "goliad",
                "grayson",
                "grimes",
                "hidalgo",
                "hockley",
                "jefferson",
                "jimwells",
                "johnson",
                "kendall",
                "liveoak",
                "matagorda",
                "medina",
                "midland",
                "montgomery",
                "nacogdoches",
                "nueces",
                "reeves",
                "refugio",
                "rusk",
                "sanpatricio",
                "smith",
                "starr",
                "tarrant",
                "walker",
                "wilson",
                "zapata"
              ],
              "enumTitles": [
                "All 37 counties",
                "Anderson County (Palestine): no address",
                "Bee County (Beeville): address on most notices",
                "Bexar County (San Antonio): address on nearly every notice",
                "Blanco County (Johnson City): address on most notices",
                "Brazos County (Bryan): no address",
                "Burleson County (Caldwell): no address",
                "Cameron County (Brownsville): no address",
                "Coleman County (Coleman): no address",
                "Dallas County (Dallas): address on most notices",
                "Denton County (Denton): no address",
                "Gillespie County (Fredericksburg): no address",
                "Goliad County (Goliad): address on nearly every notice",
                "Grayson County (Sherman): no address",
                "Grimes County (Anderson): no address",
                "Hidalgo County (Edinburg): no address",
                "Hockley County (Levelland): no address, names",
                "Jefferson County (Beaumont): address on some notices",
                "Jim Wells County (Alice): no address, names",
                "Johnson County (Cleburne): address on most notices",
                "Kendall County (Boerne): no address",
                "Live Oak County (George West): no address",
                "Matagorda County (Bay City): no address, names",
                "Medina County (Hondo): no address",
                "Midland County (Midland): address on some notices",
                "Montgomery County (Conroe): no address",
                "Nacogdoches County (Nacogdoches): no address",
                "Nueces County (Corpus Christi): no address",
                "Reeves County (Pecos): no address",
                "Refugio County (Refugio): address on nearly every notice",
                "Rusk County (Henderson): no address",
                "San Patricio County (Sinton): address on most notices",
                "Smith County (Tyler): no address",
                "Starr County (Rio Grande City): no address",
                "Tarrant County (Fort Worth): address on most notices, names",
                "Walker County (Huntsville): no address",
                "Wilson County (Floresville): address on most notices",
                "Zapata County (Zapata): no address"
              ]
            },
            "default": [
              "tarrant",
              "bexar"
            ]
          },
          "lastDays": {
            "title": "Days back from today",
            "minimum": 0,
            "maximum": 92,
            "type": "integer",
            "description": "Search notices filed in this many calendar days ending today (Texas time), up to 92. Set 0 to use Filed from and Filed to instead; with dates entered and this above 0, the run stops with a message rather than ignore your dates."
          },
          "dateFrom": {
            "title": "Filed from",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "First filing date to include, as year-month-day, for example 2026-10-26. Used only when Days back from today is 0. The range can cover up to 92 days.",
            "default": ""
          },
          "dateTo": {
            "title": "Filed to",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Last filing date to include, as year-month-day (2026-10-30), on or after Filed from. Used only when Days back from today is 0.",
            "default": ""
          },
          "newOnly": {
            "title": "Only notices not delivered before",
            "type": "boolean",
            "description": "For weekly schedules: skip notices that an earlier run already delivered, remembered per county in the store below for 400 days after delivery. Notices delivered by a run that stopped at Maximum notices or its maximum cost count as delivered, so the next run continues with the rest. To start over, use a new empty store, or open this store under Storage and delete the entry named STATE, which holds the list of delivered notices.",
            "default": false
          },
          "stateStoreId": {
            "title": "Store for delivered notices",
            "type": "string",
            "description": "Needed for Only notices not delivered before. Pick a key-value store: a storage space in your Apify account where the run keeps its list of delivered notices. If you have none, create one under Storage in Apify Console. Use a separate store for each schedule you want kept apart, and do not start two runs on one store at the same time: a run that finds another run using the store stops, but that check is not certain, and two runs on one store at the same time can deliver and charge the same notices twice."
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "type": "integer",
            "description": "Most notices delivered (and charged) in one run, across all counties. Oldest filings come first.",
            "default": 500
          },
          "includePastSales": {
            "title": "Include sales already past",
            "type": "boolean",
            "description": "Off: leave out notices whose sale day has passed. In Tarrant and Montgomery, which show only the sale month, this month's sales stay in until the month ends, even after the sale day. Notices with no sale date (Coleman, Hockley) are always kept. On: deliver them too, for example to research older filings.",
            "default": false
          },
          "onlyWithAddress": {
            "title": "Only notices with a street address",
            "type": "boolean",
            "description": "On: leave out (and do not charge for) notices where the county lists no street address, such as every notice in Denton or Hidalgo, or a Tarrant notice listed by lot and block. Off: deliver every notice, with the address fields empty where the county gives none.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}