{
  "openapi": "3.0.1",
  "info": {
    "title": "US Land for Sale Listings Scraper",
    "description": "Search US land-for-sale listings by state, county or city: price, acres, location, coordinates, features, images and broker contact, with automatic fallback to sister sites when one is unreachable.",
    "version": "1.1",
    "x-build-id": "UX5D6nyGHXwDzoFJi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~us-land-for-sale-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-us-land-for-sale-listings-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/nimbryxo-studio~us-land-for-sale-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-us-land-for-sale-listings-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/nimbryxo-studio~us-land-for-sale-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-us-land-for-sale-listings-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": [
              "search",
              "byUrls",
              "byIds"
            ],
            "type": "string",
            "description": "What to fetch. `search` uses the location/filter fields below; `byUrls` reads listingUrls; `byIds` reads listingIds.",
            "default": "search"
          },
          "searchUrls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Optional legacy search URLs. LandWatch/Land.com category or state URLs are mapped to the equivalent LandSearch location; LandSearch, LandHub and LandCentury search URLs are used directly. Direct listing URLs are also accepted. Leave empty to use the location and filter fields.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text keyword matched against title, description, features, county, city and tags, e.g. `hunting`, `creek`, `owner financing`.",
            "default": ""
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "Alabama",
              "Alaska",
              "Arizona",
              "Arkansas",
              "California",
              "Colorado",
              "Connecticut",
              "Delaware",
              "District of Columbia",
              "Florida",
              "Georgia",
              "Hawaii",
              "Idaho",
              "Illinois",
              "Indiana",
              "Iowa",
              "Kansas",
              "Kentucky",
              "Louisiana",
              "Maine",
              "Maryland",
              "Massachusetts",
              "Michigan",
              "Minnesota",
              "Mississippi",
              "Missouri",
              "Montana",
              "Nebraska",
              "Nevada",
              "New Hampshire",
              "New Jersey",
              "New Mexico",
              "New York",
              "North Carolina",
              "North Dakota",
              "Ohio",
              "Oklahoma",
              "Oregon",
              "Pennsylvania",
              "Rhode Island",
              "South Carolina",
              "South Dakota",
              "Tennessee",
              "Texas",
              "Utah",
              "Vermont",
              "Virginia",
              "Washington",
              "West Virginia",
              "Wisconsin",
              "Wyoming"
            ],
            "type": "string",
            "description": "US state to search. Leave as Any state for nationwide results.",
            "default": ""
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "County name, with or without the word County, e.g. `Gillespie` or `Gillespie County`. Use with a state for an exact LandSearch county page.",
            "default": ""
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name, e.g. `Fredericksburg`. Use with a state for an exact LandSearch city page.",
            "default": ""
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "5-digit US ZIP code, e.g. `78624`. Overrides city/county/state when set.",
            "default": ""
          },
          "landType": {
            "title": "Land type",
            "enum": [
              "any",
              "agricultural",
              "commercial",
              "recreational",
              "residential"
            ],
            "type": "string",
            "description": "Broad land classification. `any` leaves it unset.",
            "default": "any"
          },
          "tag": {
            "title": "Land feature tag",
            "enum": [
              "any",
              "a-frame-house",
              "airstrip",
              "barn",
              "barndominium",
              "beachfront",
              "borders-public-land",
              "bunker",
              "by-owner",
              "cabin",
              "camping",
              "cattle-ranch",
              "cave",
              "cheap",
              "chicken-farm",
              "conservation",
              "cottage",
              "creek",
              "dairy-farm",
              "desert",
              "development",
              "distressed",
              "equestrian",
              "farm-house",
              "fenced",
              "fishing",
              "golf-course-lot",
              "historic",
              "hobby-farm",
              "homestead",
              "house",
              "hunting",
              "industrial",
              "investment",
              "irrigated",
              "island",
              "lakefront",
              "lodge",
              "mineral-rights",
              "mixed-use",
              "mobile-home",
              "mountain",
              "new-construction",
              "off-grid",
              "oil",
              "orchard",
              "organic-farm",
              "owner-financing",
              "pasture",
              "pond",
              "ranch",
              "rent-to-own",
              "resort",
              "riverfront",
              "row-crop",
              "rural",
              "rv-lot",
              "septic",
              "solar-power",
              "spring",
              "sustainable",
              "timberland",
              "tiny-home",
              "unrestricted",
              "vacant",
              "vineyard",
              "waterfall",
              "waterfowl",
              "waterfront",
              "water-rights",
              "water-well",
              "wetland",
              "wooded"
            ],
            "type": "string",
            "description": "One of the 70 land tags LandSearch publishes (hunting, waterfront, owner financing, timberland, …). `any` leaves it unset.",
            "default": "any"
          },
          "listingFormat": {
            "title": "Listing format",
            "enum": [
              "any",
              "sale",
              "lease",
              "auction"
            ],
            "type": "string",
            "description": "Sale, lease or auction listings. `any` includes every format.",
            "default": "any"
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "any",
              "active",
              "under_contract",
              "sold"
            ],
            "type": "string",
            "description": "Filter by reported status: active, under contract or sold. Availability depends on the source.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Drop listings priced below this amount."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Drop listings priced above this amount."
          },
          "minAcres": {
            "title": "Minimum acres",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Drop listings smaller than this acreage."
          },
          "maxAcres": {
            "title": "Maximum acres",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Drop listings larger than this acreage."
          },
          "minPricePerAcre": {
            "title": "Minimum price per acre (USD)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "number",
            "description": "Drop listings below this price per acre."
          },
          "maxPricePerAcre": {
            "title": "Maximum price per acre (USD)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "number",
            "description": "Drop listings above this price per acre."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only listings with at least this many bedrooms."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only listings with at least this many bathrooms. Decimals allowed (e.g. 1.5)."
          },
          "minBuildingSqft": {
            "title": "Minimum building sq ft",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only listings whose house/building is at least this large."
          },
          "maxBuildingSqft": {
            "title": "Maximum building sq ft",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only listings whose house/building is at most this large."
          },
          "minYearBuilt": {
            "title": "Minimum year built",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Only listings with a house/building built in or after this year."
          },
          "maxYearBuilt": {
            "title": "Maximum year built",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Only listings with a house/building built in or before this year."
          },
          "maxDaysOnMarket": {
            "title": "Maximum days on market",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Drop listings first seen longer ago than this many days."
          },
          "hasStructure": {
            "title": "Has house or building",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Filter listings by whether they include a house or building.",
            "default": "any"
          },
          "requireImages": {
            "title": "Require images",
            "type": "boolean",
            "description": "Drop listings with no photo URLs.",
            "default": false
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "forYou",
              "newest",
              "priceHighToLow",
              "priceLowToHigh",
              "sizeLargeToSmall",
              "sizeSmallToLarge",
              "recentlyUpdated"
            ],
            "type": "string",
            "description": "Sort results. Sources that cannot sort server-side are sorted locally over the fetched page set.",
            "default": "forYou"
          },
          "dataSource": {
            "title": "Data source",
            "enum": [
              "auto",
              "landsearch",
              "landhub",
              "landcentury"
            ],
            "type": "string",
            "description": "`auto` tries LandSearch, then LandHub, then LandCentury until it finds matching listings. Choose a source to force it.",
            "default": "auto"
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Visit each listing's detail page for description, coordinates, features, taxes, history and broker contact. Turn off for a faster list-only run.",
            "default": true
          },
          "includeParcelBoundary": {
            "title": "Include parcel boundary",
            "type": "boolean",
            "description": "Opt-in: fetch the public LandHub/id.land map-share GeoJSON and add the parcel Polygon/MultiPolygon as `parcelBoundary` when available. Adds one request per LandHub listing.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted listings (1-5000).",
            "default": 20
          },
          "listingUrls": {
            "title": "Listing URLs (mode=byUrls)",
            "type": "array",
            "description": "Direct listing URLs from LandSearch, LandHub or LandCentury, e.g. `https://www.landsearch.com/properties/.../4145054`. LandWatch/Land.com detail URLs are accepted by the schema but cannot be fetched cookielessly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listingIds": {
            "title": "Listing IDs (mode=byIds)",
            "type": "array",
            "description": "LandSearch or LandHub numeric listing IDs. LandCentury IDs need a slug; use byUrls for those.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}