{
  "openapi": "3.0.1",
  "info": {
    "title": "PropertyScout Thailand Scraper",
    "description": "Scrapes public PropertyScout Thailand search result pages and optionally enriches each listing from its detail page.",
    "version": "0.1",
    "x-build-id": "TndtLtcSZ00OJxCvS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mai_amm~propertyscout-thailand-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mai_amm-propertyscout-thailand-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/mai_amm~propertyscout-thailand-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mai_amm-propertyscout-thailand-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/mai_amm~propertyscout-thailand-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mai_amm-propertyscout-thailand-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",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "PropertyScout search or detail URLs. If empty, the actor starts from /en/sales/.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "sales",
              "rentals",
              "both",
              "urls"
            ],
            "type": "string",
            "description": "Which default search pages to crawl when no startUrls or generated filter URLs are provided.",
            "default": "sales"
          },
          "transaction": {
            "title": "Buy or rent",
            "enum": [
              "sales",
              "rentals",
              "both",
              "any"
            ],
            "type": "string",
            "description": "Simple transaction selector like the website tabs.",
            "default": "sales"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "condo",
              "apartment",
              "serviced-apartment",
              "detached-house",
              "townhouse",
              "penthouse",
              "villa",
              "duplex",
              "land"
            ],
            "type": "string",
            "description": "Main property type filter from the website.",
            "default": "any"
          },
          "beds": {
            "title": "Beds",
            "enum": [
              "any",
              "studio",
              "1-bedroom",
              "2-bedrooms",
              "3-bedrooms",
              "4-bedrooms",
              "5plus-bedrooms"
            ],
            "type": "string",
            "description": "Bedroom filter like the website chips.",
            "default": "any"
          },
          "feature": {
            "title": "Feature",
            "enum": [
              "any",
              "pet-friendly",
              "ready-to-move",
              "fully-furnished",
              "kitchen",
              "balcony",
              "swimming-pool",
              "playground",
              "gym",
              "walk-in-wardrobe",
              "laundry-room",
              "air-conditioning",
              "maid-room",
              "hot-price"
            ],
            "type": "string",
            "description": "Single quick feature filter like pet-friendly or fully-furnished.",
            "default": "any"
          },
          "lowRise": {
            "title": "Low-Rise",
            "type": "boolean",
            "description": "Website-style Low-Rise toggle. Filters to listings where the building has 0 to 9 floors, matching PropertyScout's own help text.",
            "default": false
          },
          "greatDeals": {
            "title": "Great Deals",
            "type": "boolean",
            "description": "Website-style quick toggle for Great Deals. Maps to PropertyScout's hot-price path.",
            "default": false
          },
          "furnishing": {
            "title": "Furnishing",
            "enum": [
              "any",
              "fully-furnished",
              "partially-furnished",
              "unfurnished"
            ],
            "type": "string",
            "description": "Simple furnishing selector.",
            "default": "any"
          },
          "moreFeatures": {
            "title": "More features",
            "type": "array",
            "description": "Optional extra website-style features from the More section or amenities list.",
            "items": {
              "type": "string"
            }
          },
          "areaPath": {
            "title": "Area or market",
            "type": "string",
            "description": "Optional area path like bangkok/asok, phuket/thalang, or chon-buri."
          },
          "projectPath": {
            "title": "Project path",
            "type": "string",
            "description": "Optional building or project path like bangkok/condo/noble-remix."
          },
          "customSearchPath": {
            "title": "Exact custom path",
            "type": "string",
            "description": "Optional exact path relative to /en/, such as sales/condo/1-bedroom/pet-friendly."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum price. The actor uses PropertyScout's native public price path, for example /from20000thb/ or /20000thb-40000thb/. For rentals this means monthly rent."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum price. Combined with Min price into PropertyScout's native public price path. For rentals this means monthly rent."
          },
          "transactions": {
            "title": "Advanced transactions",
            "type": "array",
            "description": "Advanced multi-value override. Usually you should use Buy or rent above.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Advanced property types",
            "type": "array",
            "description": "Advanced multi-value override for property type slugs.",
            "items": {
              "type": "string"
            }
          },
          "bedroomFilters": {
            "title": "Advanced bedroom filters",
            "type": "array",
            "description": "Advanced multi-value override for bedroom slugs.",
            "items": {
              "type": "string"
            }
          },
          "featureSlugs": {
            "title": "Advanced feature slugs",
            "type": "array",
            "description": "Advanced multi-value override for feature slugs.",
            "items": {
              "type": "string"
            }
          },
          "locationPaths": {
            "title": "Advanced location paths",
            "type": "array",
            "description": "Advanced multi-value override for location paths.",
            "items": {
              "type": "string"
            }
          },
          "projectPaths": {
            "title": "Advanced project paths",
            "type": "array",
            "description": "Advanced multi-value override for building or project paths.",
            "items": {
              "type": "string"
            }
          },
          "customSearchPaths": {
            "title": "Advanced custom search paths",
            "type": "array",
            "description": "Advanced raw path segments relative to /en/.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Maximum search pages",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of search result pages per run.",
            "default": 3
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings to save.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include detail pages",
            "type": "boolean",
            "description": "Visit each listing detail page for additional fields such as description, canonical URL, images, and coordinates.",
            "default": true
          },
          "includeRawData": {
            "title": "Include raw listing data",
            "type": "boolean",
            "description": "Attach the raw listing object from PropertyScout's __NEXT_DATA__. This can make the dataset much larger.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of pages the Actor can process at the same time.",
            "default": 3
          },
          "requestDelaySecs": {
            "title": "Delay between requests",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Polite delay before each request.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. Public pages usually work without proxy, but proxies help at higher volume.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}