{
  "openapi": "3.0.1",
  "info": {
    "title": "Nhatot Property Scraper - Vietnam Real Estate Listings",
    "description": "Scrape nhatot.com (Chợ Tốt Nhà) property ads: VND and USD prices, m², bedrooms, legal papers, GPS, ward, project, photos and private-or-agent seller.",
    "version": "1.0",
    "x-build-id": "kCFi4SiSKtpCtKPrE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~nhatot-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-nhatot-property-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/sian.agency~nhatot-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-nhatot-property-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/sian.agency~nhatot-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-nhatot-property-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search"
            ],
            "type": "string",
            "description": "Property Listing reads nhatot.com's property search and returns up to 50 listings per request, newest first. Choose sale or rent, a property category, a province, and optionally districts, a price range, a floor-area range, bedrooms and whether you want private sellers, agents or both. Every filter is applied by the site itself, so the count you see is the count you get.",
            "default": "search"
          },
          "listingType": {
            "title": "🏷️ For sale or for rent",
            "enum": [
              "sell",
              "rent"
            ],
            "type": "string",
            "description": "Which side of the market to read. Rent prices are per month and the row says so. Rooms for rent exist only on the rent side; picking them with For sale is rejected before anything is charged.",
            "default": "sell"
          },
          "propertyType": {
            "title": "🏡 Property category",
            "enum": [
              "all",
              "apartment",
              "house",
              "commercial",
              "land",
              "room"
            ],
            "type": "string",
            "description": "Nhatot's own top-level property categories. Apartments include serviced and mini apartments, duplexes and penthouses, and the row names which one it is.",
            "default": "apartment"
          },
          "region": {
            "title": "🗺️ Province or city",
            "enum": [
              "all",
              "tp-ho-chi-minh",
              "ha-noi",
              "an-giang",
              "ba-ria-vung-tau",
              "bac-giang",
              "bac-kan",
              "bac-lieu",
              "bac-ninh",
              "ben-tre",
              "binh-dinh",
              "binh-duong",
              "binh-phuoc",
              "binh-thuan",
              "ca-mau",
              "can-tho",
              "cao-bang",
              "da-nang",
              "dak-lak",
              "dak-nong",
              "dien-bien",
              "dong-nai",
              "dong-thap",
              "gia-lai",
              "ha-giang",
              "ha-nam",
              "ha-tinh",
              "hai-duong",
              "hai-phong",
              "hau-giang",
              "hoa-binh",
              "hung-yen",
              "khanh-hoa",
              "kien-giang",
              "kon-tum",
              "lai-chau",
              "lam-dong",
              "lang-son",
              "lao-cai",
              "long-an",
              "nam-dinh",
              "nghe-an",
              "ninh-binh",
              "ninh-thuan",
              "phu-tho",
              "phu-yen",
              "quang-binh",
              "quang-nam",
              "quang-ngai",
              "quang-ninh",
              "quang-tri",
              "soc-trang",
              "son-la",
              "tay-ninh",
              "thai-binh",
              "thai-nguyen",
              "thanh-hoa",
              "thua-thien-hue",
              "tien-giang",
              "tra-vinh",
              "tuyen-quang",
              "vinh-long",
              "vinh-phuc",
              "yen-bai"
            ],
            "type": "string",
            "description": "One of the 63 provinces and cities Chợ Tốt lists, or all of Vietnam. Ho Chi Minh City and Ha Noi hold most of the stock.",
            "default": "tp-ho-chi-minh"
          },
          "districts": {
            "title": "📍 Districts",
            "type": "array",
            "description": "Optional. District names inside the province above, as nhatot writes them, for example Quận 7, Bình Thạnh or Thành phố Thủ Đức. Accents and the Quận / Huyện prefix are optional, so quan 7 and binh thanh work too. Several districts are searched together. A name that is not in the province stops the run before any charge and lists the valid ones.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellerType": {
            "title": "👤 Seller",
            "enum": [
              "all",
              "private",
              "agent"
            ],
            "type": "string",
            "description": "Nhatot marks every advert as posted by a private person or by an agent. Choose Private owners only to skip brokers entirely; roughly one advert in five is private, more in some cities.",
            "default": "all"
          },
          "minPrice": {
            "title": "💰 Min price (VND)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in đồng, as a whole number: 3000000000 is 3 tỷ. For rent this is the monthly rent: 5000000 is 5 triệu. Leave empty for no floor."
          },
          "maxPrice": {
            "title": "💰 Max price (VND)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in đồng, as a whole number. Leave empty for no ceiling."
          },
          "minArea": {
            "title": "📐 Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest floor or land area in square metres. Leave empty for no minimum."
          },
          "maxArea": {
            "title": "📐 Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest floor or land area in square metres. Leave empty for no maximum."
          },
          "bedrooms": {
            "title": "🛏️ Bedrooms",
            "enum": [
              "any",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6-plus"
            ],
            "type": "string",
            "description": "Exact bedroom count, applied by the site. Leave on Any for land, offices and rooms, which have no bedroom field.",
            "default": "any"
          },
          "maxResults": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many listings. One request returns 50. Nhatot itself stops at 10,000 rows per search, so split a large city by district to go further. Free-plan runs are capped lower and the log says so.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}