{
  "openapi": "3.0.1",
  "info": {
    "title": "LankaPropertyWeb Property Scraper",
    "description": "Scrape LankaPropertyWeb.com: LKR prices, price per perch, land size, beds, sqft, GPS, owner or agent and phone. Sale, rent and land across Sri Lanka.",
    "version": "1.0",
    "x-build-id": "9BuWpw1whXif0XgZs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~lankapropertyweb-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-lankapropertyweb-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~lankapropertyweb-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-lankapropertyweb-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~lankapropertyweb-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-lankapropertyweb-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": "🎯 Mode",
            "enum": [
              "search",
              "detail"
            ],
            "type": "string",
            "description": "Property Search reads LankaPropertyWeb results pages. Property Detail opens the advert addresses you paste in Advert URLs.",
            "default": "search"
          },
          "listingType": {
            "title": "🏷️ Section",
            "enum": [
              "sale",
              "rent",
              "land"
            ],
            "type": "string",
            "description": "Which LankaPropertyWeb section to read. Land has its own section on the site, priced per perch or for the whole plot.",
            "default": "sale"
          },
          "propertyType": {
            "title": "🏠 Property type",
            "enum": [
              "any",
              "apartment",
              "house",
              "commercial",
              "villa",
              "bungalow",
              "annexe",
              "room",
              "bare-land",
              "land-with-house",
              "cultivated-land",
              "tea-land",
              "coconut-land",
              "rubber-land",
              "cinnamon-land",
              "paddy-land",
              "beachfront-land",
              "waterfront-land"
            ],
            "type": "string",
            "description": "Apartment, house, commercial, villa and bungalow work for sale and rent. Annexe and room are rentals only. The land types only work with the Land section.",
            "default": "any"
          },
          "location": {
            "title": "📍 Where",
            "enum": [
              "sri-lanka",
              "western-province",
              "central-province",
              "southern-province",
              "colombo",
              "colombo-1",
              "colombo-2",
              "colombo-3",
              "colombo-4",
              "colombo-5",
              "colombo-6",
              "colombo-7",
              "colombo-8",
              "colombo-9",
              "colombo-10",
              "colombo-11",
              "colombo-12",
              "colombo-13",
              "colombo-14",
              "colombo-15",
              "athurugiriya",
              "battaramulla",
              "boralesgamuwa",
              "dehiwala",
              "gampaha",
              "homagama",
              "ja-ela",
              "kadawatha",
              "kalutara",
              "kelaniya",
              "kiribathgoda",
              "kottawa",
              "maharagama",
              "malabe",
              "moratuwa",
              "mount-lavinia",
              "negombo",
              "nugegoda",
              "panadura",
              "piliyandala",
              "rajagiriya",
              "rathmalana",
              "thalawathugoda",
              "wattala",
              "kandy",
              "nuwara-eliya",
              "galle",
              "hikkaduwa",
              "unawatuna",
              "matara",
              "kurunegala"
            ],
            "type": "string",
            "description": "The whole country, a province, Colombo city (1 to 15), one Colombo area, or one of 31 towns. Colombo searches read the area's first page, then all-Sri-Lanka results kept to that area, so a thinly listed area can stop short. Other towns: paste the results address into Search page URLs.",
            "default": "colombo"
          },
          "minPrice": {
            "title": "💰 Price from (Rs)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price in Sri Lankan rupees, applied by LankaPropertyWeb itself. For rentals it is the monthly rent. For land it is the price per perch, the way the site's land search works."
          },
          "maxPrice": {
            "title": "💰 Price up to (Rs)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in rupees. Same unit as Price from: total for sale, monthly for rent, per perch for land."
          },
          "minBedrooms": {
            "title": "🛏️ Bedrooms from",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Keep adverts with at least this many bedrooms. The site has no bedroom filter, so this is checked on each row; adverts that do not state bedrooms are dropped and never billed."
          },
          "maxResults": {
            "title": "🔢 Properties to collect",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many adverts to return. One results page holds 30. Free accounts stop at 25.",
            "default": 30
          },
          "includeDetails": {
            "title": "📄 Open each advert in full",
            "type": "boolean",
            "description": "Opens every advert for the advertiser's name, owner or agent, phone numbers, GPS, bathrooms, floors, parking, furnishing, the full description, features and every photo. Billed as one Property Detail on top of the search row.",
            "default": false
          },
          "searchUrls": {
            "title": "🔗 Search page URLs",
            "type": "array",
            "description": "Paste LankaPropertyWeb results pages instead of using the fields above, for example https://www.lankapropertyweb.com/forsale-Western_Battaramulla-House.html or https://www.lankapropertyweb.com/land/index.php?location=Western_Gampaha . One URL per line.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "🔗 Advert URLs",
            "type": "array",
            "description": "For Property Detail: LankaPropertyWeb advert addresses, for example https://www.lankapropertyweb.com/sale/property_details-5930506.html . One per line.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}