🏠 Zameen.com Scraper avatar
🏠 Zameen.com Scraper

Pricing

Pay per usage

Go to Apify Store
🏠 Zameen.com Scraper

🏠 Zameen.com Scraper

Extract detailed real estate listings from Pakistan's leading property portal. This lightweight actor efficiently scrapes data for houses, plots, and commercial properties for sale or rent. For seamless extraction and to avoid IP bans, the use of residential proxies is strongly recommended.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Shahid Irfan

Shahid Irfan

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

13 days ago

Last modified

Share

Zameen.com Property Scraper

Apify Actor

Extract comprehensive property listings from Zameen.com, Pakistan's leading real estate platform. This powerful scraper collects detailed information about houses, apartments, plots, and commercial properties across all major cities including Islamabad, Lahore, Karachi, and more. Perfect for real estate analysis, market research, and data-driven investment decisions.

Key Features

  • Comprehensive Data Extraction: Captures essential property details including price, bedrooms, bathrooms, area, location, and descriptions
  • Flexible Input Options: Scrape by canonical listing URLs (recommended) or by location + keyword resolver (no /search/)
  • Intelligent Pagination: Automatically handles multiple pages to collect extensive datasets
  • Detail Page Scraping: Optional deep scraping of individual property pages for complete information
  • Deduplication: Built-in duplicate removal ensures clean, unique results
  • Proxy Support: Integrated proxy configuration to handle rate limiting and blocking
  • Export-Ready Output: Structured JSON data perfect for analysis and integration

Input Configuration

Configure the scraper using the following input parameters. All fields are optional with sensible defaults.

Basic Parameters

ParameterTypeDescriptionExample
startUrlsArrayCanonical Zameen listing URLs (recommended)["https://www.zameen.com/Homes/Lahore-1-1.html"]
categoryStringUsed only with location + keyword resolver"Homes"
keywordStringArea/development keyword to resolve within city"Bahria Town"
locationStringCity name to resolve within"Lahore"

Note: if you provide startUrls, the actor uses those URLs directly and ignores the location + keyword resolver.

Advanced Parameters

ParameterTypeDescriptionDefault
results_wantedIntegerMaximum number of properties to collect100
max_pagesIntegerMaximum pages to scrape per URL20
scrapeDetailsBooleanScrape individual property detail pagestrue
proxyConfigurationObjectProxy settings for anti-blocking{"useApifyProxy": true}

Example Input

{
"startUrls": [
"https://www.zameen.com/Homes/Pakistan-1-1.html"
],
"results_wanted": 50,
"max_pages": 5,
"scrapeDetails": true,
"proxyConfiguration": {
"useApifyProxy": true
}
}

Output Data Structure

The scraper produces clean, structured JSON records with the following schema:

{
"title": "3 Marla House in DHA Defence",
"price": 12500000,
"currency": "PKR",
"bedrooms": 3,
"bathrooms": 3,
"area": 3,
"area_unit": "marla",
"location": "DHA Phase 2, DHA Defence",
"city": "Islamabad",
"property_type": "house",
"purpose": "sale",
"Description": "Beautiful 3 marla house available for sale in DHA Defence Phase 2...",
"external_id": "53463864",
"url": "https://www.zameen.com/Property/dha_defence_dha_phase_2_3_marla_house_for_sale_53463864-12345-1.html",
"source": "zameen.com"
}

Usage Guide

Quick Start

  1. Access the Actor: Visit the actor page on Apify platform
  2. Configure Input: Set your desired parameters using the input form or JSON editor
  3. Run the Actor: Click "Start" to begin scraping
  4. Download Results: Export data from the dataset in your preferred format (JSON, CSV, Excel)

Scraping Strategies

Direct URL Scraping

Provide specific Zameen.com URLs for targeted scraping:

{
"startUrls": [
"https://www.zameen.com/Homes/Islamabad-3-1.html",
"https://www.zameen.com/Homes/Lahore-1-1.html"
],
"results_wanted": 100
}

Resolve a canonical listing page from location + keyword (avoids /search/, which often returns 503):

{
"category": "Homes",
"keyword": "Bahria Town",
"location": "Lahore",
"results_wanted": 200,
"scrapeDetails": true
}

Area-Specific Scraping

Target specific neighborhoods or developments:

{
"startUrls": [
"https://www.zameen.com/Homes/Karachi_DHA-1234-1.html"
],
"max_pages": 20
}

Best Practices

  • Start Small: Begin with results_wanted: 10-50 to test your configuration
  • Enable Details: Set scrapeDetails: true for complete property information
  • Use Proxies: Always enable proxy configuration for reliable scraping
  • Monitor Limits: Respect Zameen.com's terms of service and implement appropriate delays
  • Data Validation: Review sample results before large-scale runs

Troubleshooting

Common Issues

Error Messages

ErrorDescriptionSolution
No listings foundSearch returned no resultsAdjust keywords or location
Page not accessibleURL blocked or invalidUse proxies, check URL validity
Timeout errorRequest took too longIncrease timeout, use faster proxies
Parse errorUnexpected page structureReport to maintainer, try different URLs

Data Usage Examples

Real Estate Market Analysis

// Collect data for market research
{
"location": "Islamabad",
"results_wanted": 1000,
"scrapeDetails": true
}
// Find rental properties
{
"keyword": "apartment for rent",
"location": "Lahore",
"results_wanted": 500
}

Commercial Property Listings

// Scrape commercial spaces
{
"category": "Commercial",
"keyword": "DHA",
"location": "Karachi"
}

Changelog

v1.0.0

  • Initial release with comprehensive Zameen.com scraping capabilities
  • JSON-first extraction with HTML fallback
  • Support for all major Pakistani cities
  • Built-in pagination and deduplication

Support

For technical support or feature requests:

  1. Check the troubleshooting section above
  2. Review Apify actor logs for detailed error information
  3. Provide the following when reporting issues:
    • Actor run ID
    • Input configuration used
    • Specific error messages
    • Expected vs actual behavior
  • Respect Zameen.com's Terms of Service
  • Use scraped data responsibly and in compliance with local laws
  • Implement appropriate rate limiting to avoid impacting the target website
  • Consider the privacy implications of collecting property data

This actor is designed for legitimate real estate research and analysis purposes. Always ensure compliance with applicable laws and website terms of service.