{
  "openapi": "3.0.1",
  "info": {
    "title": "Zameen.com Scraper — Pakistan Property Listings & Prices",
    "description": "Scrape Zameen.com (Pakistan) listings by city, area, property type, bedrooms, price and size in marla/kanal, or from pasted links: price in PKR and lakh/crore, area in marla, kanal, sqft and sqm, beds, baths, location, coordinates, agency, photos. Never outputs private owners' contacts. No login.",
    "version": "0.1",
    "x-build-id": "6GX1TzbWLnhEfmfRd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~zameen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-zameen-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/yugenox~zameen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-zameen-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/yugenox~zameen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-zameen-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": {
          "purpose": {
            "title": "Buy or rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Properties for sale or for rent.",
            "default": "buy"
          },
          "city": {
            "title": "🏙️ City",
            "type": "string",
            "description": "City in Pakistan, e.g. Lahore, Karachi, Islamabad, Rawalpindi, Faisalabad, Multan, Peshawar (all 228 Zameen cities work)."
          },
          "locations": {
            "title": "📍 Areas",
            "type": "array",
            "description": "Areas or societies in that city, e.g. DHA Defence, Bahria Town, Johar Town, Gulberg. Each area is a separate search. For a phase or block, write the path: \"DHA Defence > DHA Phase 6\". Leave empty for the whole city.",
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "🏠 Property type",
            "enum": [
              "homes",
              "houses",
              "flats",
              "upper-portions",
              "lower-portions",
              "farm-houses",
              "penthouses",
              "plots",
              "residential-plots",
              "commercial-plots",
              "agricultural-land",
              "commercial",
              "offices",
              "shops",
              "buildings",
              "warehouses",
              "other-commercial"
            ],
            "type": "string",
            "description": "Type of property.",
            "default": "homes"
          },
          "bedrooms": {
            "title": "🛏️ Bedrooms",
            "type": "array",
            "description": "Only these bedroom counts (each is a separate search). Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10+"
              ]
            }
          },
          "minPrice": {
            "title": "Min price (PKR)",
            "minimum": 0,
            "type": "integer",
            "description": "In rupees. 1 lakh = 100000, 1 crore = 10000000. Rent prices are monthly."
          },
          "maxPrice": {
            "title": "Max price (PKR)",
            "minimum": 0,
            "type": "integer",
            "description": "In rupees. 1 lakh = 100000, 1 crore = 10000000."
          },
          "minArea": {
            "title": "Min size",
            "minimum": 0,
            "type": "number",
            "description": "Property size in the unit below (e.g. 5 marla)."
          },
          "maxArea": {
            "title": "Max size",
            "minimum": 0,
            "type": "number",
            "description": "Property size in the unit below (e.g. 1 kanal)."
          },
          "areaUnit": {
            "title": "Size unit",
            "enum": [
              "marla",
              "kanal",
              "sqft",
              "sqyd",
              "sqm"
            ],
            "type": "string",
            "description": "Unit for Min/Max size. Zameen's conversion: 1 marla = 225 sq ft, 1 kanal = 20 marla. Every row has marla, kanal, sq ft and sq m.",
            "default": "marla"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "relevance"
          },
          "verifiedOnly": {
            "title": "Verified listings only",
            "type": "boolean",
            "description": "Keep only listings Zameen marks as verified.",
            "default": false
          },
          "startUrls": {
            "title": "🔗 Zameen.com links",
            "type": "array",
            "description": "Search pages you opened on zameen.com (e.g. https://www.zameen.com/Homes/Lahore_DHA_Defence-9-1.html — filters in the link are kept, and the number before .html is the page to start from) or property pages (https://www.zameen.com/Property/….html).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings in total (all searches together). 0 = no limit.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Each result page has 25 listings.",
            "default": 40
          },
          "includeDetails": {
            "title": "Include property details",
            "type": "boolean",
            "description": "Also open each property page: full description, features and amenities (built year, parking, servant quarters, flooring…), every photo, verification, completion and occupancy status. One extra page per listing.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is the default. If Zameen starts refusing datacenter IPs, the run switches to residential proxies automatically when your account has them.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages loaded in parallel.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}