# Zameen.com Pakistan Property Price & Area Scraper (`nimbryxo-studio/zameen-com-pakistan-property-price-and-area`) Actor

Search Zameen.com property listings across major Pakistani cities for sale or rent, with PKR price, bedrooms, bathrooms, area, amenities and location, filtered by category and price range.

- **URL**: https://apify.com/nimbryxo-studio/zameen-com-pakistan-property-price-and-area.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Zameen.com Pakistan Property Price & Area Scraper

Zameen.com is Pakistan's largest property portal, listing apartments, houses, plots, and commercial space for sale and rent across the country's major cities. This actor searches that catalog by city, purpose, and category, or fetches a specific set of listings by ID or URL, returning price, size, rooms, amenities, and location for each result.

### What this actor does

- **Search for sale or for rent** across 10 major Pakistani cities (Lahore, Karachi, Islamabad, Rawalpindi, Faisalabad, Multan, Peshawar, Quetta, Sialkot, Gujranwala)
- **Category filter** — apartments, houses, plots, or commercial, or any category combined
- **Bedroom and price filters** — minimum bedrooms and a price range in Pakistani Rupees
- **Direct lookup** — fetch specific listings by their Zameen.com property ID or URL
- **Location detail** — city, area, and neighborhood, parsed from the listing's own location hierarchy
- Fields a listing doesn't publish (e.g. no amenities list, no verification badge) are left out of the record rather than sent as empty values

### Output per property

- `propertyId`, `referenceNumber`
- `title`
- `purpose` — `for-sale` or `for-rent`
- `propertyType` — the listing's specific category (e.g. Apartment, House, Plot, Office)
- `price` — in Pakistani Rupees (PKR)
- `bedrooms`, `bathrooms`
- `areaSqFt` — listed size in square feet
- `city`, `area`, `neighborhood`
- `imageUrl` — cover photo
- `photoCount` — number of photos on the listing
- `amenities[]` — e.g. parking, lawn, security
- `furnishing` — furnishing status, when stated
- `completionStatus` — e.g. ready, under construction
- `isVerified` — whether Zameen.com has verified the listing
- `propertyUrl`
- `listedAt` — when the listing was created
- `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `searchBuy` | `searchBuy` / `searchRent` / `searchByCity` / `propertyDetails` — `searchByCity` searches the same for-sale listings as `searchBuy`, just framed around the `city` field |
| `city` | string | `Lahore` | One of 10 curated Pakistani cities |
| `category` | string | `apartments` | `any` / `apartments` / `houses` / `plots` / `commercial` |
| `bedrooms` | integer | – | Minimum number of bedrooms (1–10) |
| `minPrice` | integer | – | Minimum price filter in PKR |
| `maxPrice` | integer | – | Maximum price filter in PKR |
| `propertyIds` | array | `[]` | Zameen.com property IDs or URLs (mode=`propertyDetails`) |
| `maxItems` | integer | `20` | Maximum number of listings to return (1–500) |

#### Example: apartments for sale in Lahore

```json
{
  "mode": "searchBuy",
  "city": "Lahore",
  "category": "apartments",
  "bedrooms": 2,
  "maxItems": 30
}
```

#### Example: houses for rent in Karachi within a budget

```json
{
  "mode": "searchRent",
  "city": "Karachi",
  "category": "houses",
  "maxPrice": 150000,
  "maxItems": 30
}
```

#### Example: fetch specific listings by ID or URL

```json
{
  "mode": "propertyDetails",
  "propertyIds": [
    "https://www.zameen.com/Property/123456.html",
    "789012"
  ]
}
```

### Use cases

- **Market research** — compare asking prices across categories and cities
- **Price monitoring** — track a set of specific listings over time by re-running `propertyDetails` with the same IDs
- **Investment screening** — filter for budget and bedroom count to shortlist candidate properties in a city
- **Portfolio tracking** — pull your own or a competitor's active listings by ID
- **Rental market analysis** — compare rent levels for a property type across cities

### FAQ

**Is this affiliated with Zameen.com?**
No. This is an independent third-party actor that reads Zameen.com's own publicly available listing data; it is not affiliated with, endorsed by, or sponsored by Zameen.com.

**What's the difference between `searchBuy` and `searchByCity`?**
None in practice — both search for-sale listings using the same `city`, `category`, and price/bedroom filters. `searchByCity` is kept as an alternate entry point for the same search.

**What currency are prices shown in?**
Pakistani Rupees (PKR), as published on the listing.

**Why is `bedrooms` or `bathrooms` missing on some listings?**
Not every listing (particularly plots and commercial properties) has a room count to report — the field is left out rather than shown as zero.

**How do I fetch a specific listing's details?**
Use `mode=propertyDetails` with `propertyIds` set to either the full Zameen.com listing URL or its numeric property ID.

**Why did my search return 0 results?**
The combination of city, category, and price/bedroom filters may simply have no matching active listings right now. Try widening the price range or removing the bedroom filter.

**Is `isVerified` the same as agency-confirmed?**
`isVerified` reflects Zameen.com's own verification badge on the listing; it isn't independent confirmation by this actor.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `city` (type: `string`):

City to search in (e.g. Lahore, Karachi, Islamabad, Rawalpindi).

## `category` (type: `string`):

Type of property to search for.

## `bedrooms` (type: `integer`):

Minimum number of bedrooms.

## `minPrice` (type: `integer`):

Minimum price filter in Pakistani Rupees.

## `maxPrice` (type: `integer`):

Maximum price filter in Pakistani Rupees.

## `propertyIds` (type: `array`):

Zameen.com property IDs or URLs for detail scraping.

## `maxItems` (type: `integer`):

Maximum number of listings to return.

## Actor input object example

```json
{
  "mode": "searchBuy",
  "city": "Lahore",
  "category": "apartments",
  "propertyIds": [],
  "maxItems": 20
}
```

# Actor output Schema

## `listings` (type: `string`):

Dataset containing all scraped Zameen property listings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "searchBuy",
    "city": "Lahore",
    "category": "apartments",
    "propertyIds": [],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/zameen-com-pakistan-property-price-and-area").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "searchBuy",
    "city": "Lahore",
    "category": "apartments",
    "propertyIds": [],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/zameen-com-pakistan-property-price-and-area").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "searchBuy",
  "city": "Lahore",
  "category": "apartments",
  "propertyIds": [],
  "maxItems": 20
}' |
apify call nimbryxo-studio/zameen-com-pakistan-property-price-and-area --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/zameen-com-pakistan-property-price-and-area"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/v9nap5rhA3Erpdvfz/builds/ixEYa8MajI63lOOWw/openapi.json
