Zameen APIzameen.com ↗
Search and retrieve Pakistani property listings from Zameen.com. Get prices in PKR, contact numbers, WhatsApp, coordinates, and agency info via 2 endpoints.
What is the Zameen API?
The Zameen.com API provides access to Pakistan's largest property marketplace through 2 endpoints covering search and detail retrieval. Use search_properties to query listings by city, location ID, purpose, and category with paginated results, or call get_property to fetch a single listing's full data including price in PKR, primary phone, WhatsApp number, GPS coordinates, and agency details.
curl -X POST 'https://api.parse.bot/scraper/62110790-0086-4f58-9d0c-fa7cdb0c1450/search_properties' \
-H 'X-API-Key: $PARSE_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"city": "Lahore",
"page": "1",
"purpose": "buy",
"category": "homes",
"page_size": "25",
"location_id": "1"
}'Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace zameen-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Zameen.com SDK — bounded, re-runnable; every call capped."""
from parse_apis.zameen_com_api import Zameen, Purpose, Category, PropertyNotFound
client = Zameen()
# Search for homes for sale in Lahore with prices and contact numbers.
for listing in client.listing_summaries.search(
city="Lahore", purpose=Purpose.BUY, category=Category.HOMES, limit=3
):
print(listing.title, listing.price, listing.phone)
# Drill-down: get full details including WhatsApp, coordinates, and agency.
hit = client.listing_summaries.search(city="Karachi", limit=1).first()
if hit:
try:
full = client.listing_summaries.get(property_id=hit.id)
print(full.title, full.price, full.phone, full.whatsapp, full.latitude)
except PropertyNotFound as e:
print(f"property gone: {e.property_id}")
print("exercised: listing_summaries.search, listing_summaries.get")
Search property listings by city and location. Returns paginated results including price, contact phone numbers, WhatsApp, and agency information. Results are sorted by relevance and recency.
| Param | Type | Description |
|---|---|---|
| city | string | City name as it appears in Zameen URL slugs (e.g. Lahore, Karachi, Islamabad). |
| page | integer | Page number for pagination (1-based). |
| purpose | string | Listing purpose filter. |
| category | string | Property category filter. |
| page_size | integer | Number of results per page (1-50). |
| location_id | string | Zameen location identifier. Combined with city to form the search scope (e.g. '1' for Lahore city-wide, '9' for DHA Defence Lahore). |
{
"type": "object",
"fields": {
"page": "integer — current page number",
"total": "integer — total number of matching listings",
"listings": "array of property objects with price, contact info, and details",
"page_size": "integer — results per page"
},
"sample": {
"data": {
"page": 1,
"total": 27336,
"listings": [
{
"id": "53299785",
"phone": "+1 (555) 012-3456",
"price": 249500000,
"title": "One Kanal Brand New Luxury Ultra-Modern Design Bungalow",
"mobile": "+1 (555) 012-3456",
"purpose": "for-sale",
"bedrooms": 6,
"location": "Lahore, DHA Defence, DHA Phase 6",
"whatsapp": "+1 (555) 012-3456",
"area_sqft": 418.06,
"bathrooms": 7,
"created_at": 1785325501,
"agency_name": "Syed Brothers (PVT) LTD",
"is_verified": false,
"contact_name": "John Doe"
}
],
"page_size": 5
},
"status": "success"
}
}About the Zameen API
Endpoints and Core Data
The API exposes two endpoints. search_properties accepts optional parameters including city (matching Zameen URL slugs like Lahore or Islamabad), location_id (Zameen's internal area identifier, e.g. 1 for Lahore city-wide), purpose (for-sale or for-rent), category, page, and page_size (1–50). It returns a total count, the current page, and an array of listings objects with price, contact info, and property details. This makes it suitable for building search interfaces or bulk dataset collection across multiple pages.
Single Property Detail
get_property takes a numeric property_id string (obtainable from search_properties results) and returns the full listing record. Response fields include price (in PKR), phone, mobile, whatsapp, title, purpose, bedrooms, latitude, location (a comma-separated location hierarchy string), and the Zameen external id. This is the endpoint to use when you need contact numbers or coordinates for a specific listing.
Pagination and Filtering
Search results are sorted by relevance and recency. Pagination is 1-based via the page parameter. The location_id parameter narrows searches to a specific Zameen-defined area within a city; combining it with city defines the full geographic scope. Property category and purpose filters let you isolate residential vs. commercial listings, or rentals vs. sales, without post-processing on your end.
The Zameen API is a managed, monitored endpoint for zameen.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when zameen.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official zameen.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Aggregate Lahore and Karachi rental listings with WhatsApp contact numbers for a property comparison app
- Monitor PKR price trends across Islamabad property categories over time using paginated search results
- Build a lead generation tool that extracts agent phone and mobile numbers from new listings
- Geocode Pakistani properties by pulling
latitudefromget_propertyto plot listings on a map - Feed a CRM with agency and contact data from high-volume property searches filtered by purpose and city
- Track bedroom count and price distributions across Zameen categories for real estate market analysis
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Zameen.com have an official developer API?+
What contact information does `get_property` return?+
get_property returns three contact fields: phone (primary number with country code), mobile (a secondary mobile number), and whatsapp (the listing's WhatsApp contact number). All three are top-level fields in the response alongside price and location data.Does the API return property photos or floor plans?+
Are listings from all Pakistani cities available, or only major ones?+
city parameter uses Zameen URL slugs, so coverage mirrors what Zameen lists on its site. Major cities like Lahore, Karachi, and Islamabad work reliably. Smaller cities may have fewer active listings or may require the correct slug to return results.