{
  "openapi": "3.0.1",
  "info": {
    "title": "Wasalt Scraper: Saudi Property for Sale and Rent",
    "description": "Search Wasalt, the Saudi property portal: homes and land for sale or long-term rent, short-term rentals, and lookups for cities, districts and neighborhoods. Each listing has price, area, bedrooms, location and licence status. Filters cover use, category, size and building age.",
    "version": "1.0",
    "x-build-id": "NzaybXEq2OPhXJhJ4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~wasalt-property-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-wasalt-property-search-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/happyendpoint~wasalt-property-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-wasalt-property-search-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/happyendpoint~wasalt-property-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-wasalt-property-search-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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "searchProperties",
              "searchPropertiesByUrl",
              "propertyDetails",
              "propertyDetailsByUrl",
              "propertyMapCard",
              "searchRentals",
              "rentalDetails",
              "nationalities",
              "cities",
              "cityList",
              "markets",
              "districts",
              "neighbourhoods",
              "taxonomy"
            ],
            "type": "string",
            "description": "Which data to fetch. Each option is one kind of request."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most results to return. The run stops once it has this many.",
            "default": 100
          },
          "url": {
            "title": "Wasalt page link",
            "type": "string",
            "description": "The address of a page on Wasalt, copied from your browser: a results page for Search by Wasalt page link, or the page of one property for Property by page link. Used by: Search by Wasalt page link, Property by page link."
          },
          "propertyId": {
            "title": "Property ID",
            "minimum": 1,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The number of one property, as search rows return it in id. A property page address ends with the same number. Used by: Property details, Property map card."
          },
          "rentalId": {
            "title": "Rental ID",
            "minimum": 1,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The ID of a holiday rental, taken from the id column of Search short-term rentals. Property IDs are not accepted. Used by: Short-term rental details."
          },
          "cityId": {
            "title": "City ID",
            "minimum": 1,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The number of a Saudi city, as Cities or City list returns it in id. Used by: Search properties, Search short-term rentals, Districts of a city, Neighborhoods of a city."
          },
          "taxonomyTypes": {
            "title": "Vocabularies",
            "pattern": "^[A-Za-z0-9_-]+(,[A-Za-z0-9_-]+)*$",
            "type": "string",
            "description": "Which lists of terms to return, separated by commas. Accepted words, from Z to A: requirement_timeframe, requirement_rental_tenure, requirement_purchase_type, requirement_property_type_residential, requirement_property_type_commercial, requirement_listing_type, requirement_completion_status, requirement_commercial_sub_type, property_main_type. Three property lists come back when you leave it empty. Used by: Property vocabularies."
          },
          "districtId": {
            "title": "District ID",
            "minimum": 1,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The number of one district inside the city, as Districts returns it in id. Give one only. Used by: Search properties."
          },
          "zoneId": {
            "title": "Zone ID",
            "minimum": 1,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The number of a part of the city such as its north or its centre, as Cities lists it inside zones. Pair it with a City ID. Used by: Search properties."
          },
          "neighborhoodIds": {
            "title": "Neighborhood IDs",
            "pattern": "^[0-9]{1,10}(,[0-9]{1,10}){0,49}$",
            "type": "string",
            "description": "Numbers of neighborhoods, separated by commas, as Neighborhoods returns them in id. A listing in any one of them matches. Used by: Search properties."
          },
          "propertyFor": {
            "title": "Listing purpose",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Choose sale or long-term rent. Leave it empty to get both. Used by: Search properties."
          },
          "propertyUse": {
            "title": "Use of the property",
            "enum": [
              "residential",
              "commercial"
            ],
            "type": "string",
            "description": "Residential or commercial. Commercial is never included unless you pick it, so cover both with two runs. Used by: Search properties."
          },
          "category": {
            "title": "Category",
            "pattern": "^(apartment|villa-townhouse|floor|residential-land|land|building|building-1|tower|rest-house|room|hotel|showroom-1|office-space|warehouse|repair-shop|station|commercial-rest-house)(,(apartment|villa-townhouse|floor|residential-land|land|building|building-1|tower|rest-house|room|hotel|showroom-1|office-space|warehouse|repair-shop|station|commercial-rest-house))*$",
            "type": "string",
            "description": "Kinds of property, separated by commas, any of which may match. Accepted words, from Z to A: warehouse, villa-townhouse, tower, station, showroom-1, room, rest-house, residential-land, repair-shop, office-space, land, hotel, floor, commercial-rest-house, building-1, building, apartment. Commercial kinds need the commercial use. Used by: Search properties, Search by Wasalt page link."
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "maximum": 2147483647,
            "type": "integer",
            "description": "Whole Saudi riyals. Rent listings are compared on their full-year rent. Used by: Search properties, Search short-term rentals."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "maximum": 2147483647,
            "type": "integer",
            "description": "Whole Saudi riyals. Rent listings are compared on their full-year rent. Used by: Search properties, Search short-term rentals."
          },
          "minArea": {
            "title": "Smallest built-up area (m²)",
            "minimum": 0,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The smallest built-up area, counted in square metres. Used by: Search properties, Search short-term rentals."
          },
          "maxArea": {
            "title": "Largest built-up area (m²)",
            "minimum": 0,
            "maximum": 2147483647,
            "type": "integer",
            "description": "The largest built-up area, counted in square metres. Used by: Search properties, Search short-term rentals."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "pattern": "^[0-9]{1,2}(,[0-9]{1,2}){0,9}$",
            "type": "string",
            "description": "Exact bedroom counts, separated by commas. Each number is matched exactly, so 2 means two bedrooms; list several, such as 1,2, to accept more than one count. Used by: Search properties, Search short-term rentals."
          },
          "bathrooms": {
            "title": "Bathrooms",
            "pattern": "^[0-9]{1,2}(,[0-9]{1,2}){0,9}$",
            "type": "string",
            "description": "Exact bathroom counts, separated by commas, read the same way as bedrooms. Few listings state a bathroom count. Used by: Search properties."
          },
          "parking": {
            "title": "Parking spaces",
            "pattern": "^[0-9]{1,2}(,[0-9]{1,2}){0,9}$",
            "type": "string",
            "description": "Exact counts of parking spaces, separated by commas. Only listings that state a count are matched. Used by: Search properties."
          },
          "ageBands": {
            "title": "Building age",
            "pattern": "^(0_1|1_5|5_10)(,(0_1|1_5|5_10))*$",
            "type": "string",
            "description": "Age bands, separated by commas: 5_10, 1_5 or 0_1 (years). Older buildings have no band, so leave it empty to include them. Used by: Search properties."
          },
          "regaVerified": {
            "title": "Licensed advertisers",
            "type": "boolean",
            "description": "Turn it on for listings that carry the advertising licence of the real estate regulator, or leave it empty for both. A value of false selects only the unlicensed ones. Used by: Search properties."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}