# Housing.com India Scraper (`abotapi/housing-com-scraper`) Actor

Scrape residential property listings from housing.com. Supports buy and rent across 750+ cities.

- **URL**: https://apify.com/abotapi/housing-com-scraper.md
- **Developed by:** [AbotAPI](https://apify.com/abotapi) (community)
- **Categories:** Real estate, Developer tools, Automation
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Housing.com India Property Scraper

Scrape residential property listings from housing.com, India's leading property platform. Supports buy and rent across 750+ cities.

### Features

- **750+ Indian cities** - Mumbai, Delhi, Bangalore, Pune, Chennai, Kolkata, and more
- **Buy & Rent** - new projects, resale, and rental listings
- **Rich data** - BHK configurations with individual pricing, coordinates, amenities, images, seller info, RERA tags, EMI
- **Post-filters** - filter by BHK, price range, and property type (client-side)
- **City aliases** - "Delhi", "Bangalore", "Bombay", "Calcutta", "Madras" all resolve correctly
- **Fast & cheap** - ~700-1000 listings/min

### Quick Start

#### Buy properties in Mumbai
```json
{
  "mode": "search",
  "service": "buy",
  "city": "Mumbai",
  "max_properties": 30
}
````

#### 3 BHK apartments in Andheri West under 5 Cr

```json
{
  "mode": "search",
  "service": "buy",
  "city": "Mumbai",
  "locality": "andheri_west",
  "min_bhk": 3,
  "max_bhk": 3,
  "max_price": 50000000,
  "max_properties": 50
}
```

#### Rentals in Bangalore Koramangala

```json
{
  "mode": "search",
  "service": "rent",
  "city": "Bangalore",
  "locality": "koramangala",
  "max_properties": 30
}
```

#### 2-3 BHK in Delhi Dwarka

```json
{
  "mode": "search",
  "service": "buy",
  "city": "Delhi",
  "locality": "dwarka",
  "min_bhk": 2,
  "max_bhk": 3,
  "max_properties": 100,
  "max_pages": 5
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `search` | `search` (build query from city/locality) |
| `service` | string | `buy` | `buy` or `rent` |
| `city` | string | `Mumbai` | City name. Aliases supported: Delhi, Bangalore, Bombay, Calcutta, Madras, Gurugram |
| `locality` | string | - | Locality within city (e.g. `andheri_west`, `bandra_west`, `koramangala`). Leave empty for entire city |
| `min_price` | integer | - | Minimum price in INR (post-filter). Buy: e.g. 5000000 = 50L. Rent: e.g. 30000 |
| `max_price` | integer | - | Maximum price in INR (post-filter) |
| `min_bhk` | number | - | Minimum BHK, e.g. 2 (post-filter) |
| `max_bhk` | number | - | Maximum BHK, e.g. 3 (post-filter) |
| `property_type` | string | - | `project`, `resale`, or `rent` (post-filter) |
| `max_properties` | integer | `30` | Max properties to scrape (0=unlimited) |
| `max_pages` | integer | `5` | Max pages (30 listings/page) |
| `proxy` | object | - | Optional proxy configuration |

### Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `listingId` | string | Unique listing ID |
| `title` | string | Property or project name |
| `subtitle` | string | BHK summary (e.g. "2, 3 BHK Flats") |
| `address` | string | Locality and city |
| `propertyType` | string | `project`, `resale`, or `rent` |
| `price_display` | string | Formatted price (e.g. "₹9.8 Cr") |
| `price_values` | array | Raw price in INR \[min, max] |
| `currency` | string | Always "INR" |
| `area_value` | number | Built-up area |
| `area_unit` | string | Area unit (sq.ft) |
| `latitude` | number | Property latitude |
| `longitude` | number | Property longitude |
| `features` | array | Configurations, possession date, avg price |
| `bhk_configs` | array | Individual BHK options with pricing |
| `amenities` | array | Society amenities |
| `sellers` | array | Seller/agent names |
| `seller_firms` | array | Agency/firm names |
| `highlights` | array | Property highlights (parking, gym, etc.) |
| `emi` | string | Estimated monthly EMI |
| `tags` | array | Tags (e.g. `rera_verified`) |
| `images` | array | Image URLs (up to 15) |
| `image_count` | integer | Total images available |
| `url` | string | Full URL on housing.com |

# Actor input Schema

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

Scraping mode: 'search' builds query from city/locality, 'url' extracts locality from provided housing.com URLs

## `urls` (type: `array`):

Housing.com search URLs (url mode only). e.g. https://housing.com/in/buy/search?f=eyJiYX...

## `service` (type: `string`):

Buy or Rent

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

City name (e.g. 'Mumbai', 'Delhi', 'Bangalore', 'Pune'). Use the city listing to find exact names.

## `locality` (type: `string`):

Locality/area within the city (e.g. 'andheri\_west', 'bandra\_west'). Leave empty for entire city.

## `min_price` (type: `integer`):

Minimum price in INR. Post-filter — applied client-side after fetching results. For buy: e.g. 5000000 = 50 Lakhs. For rent: e.g. 30000 = ₹30K/month.

## `max_price` (type: `integer`):

Maximum price in INR. Post-filter — applied client-side.

## `min_bhk` (type: `number`):

Minimum BHK (e.g. 2 for 2+ BHK). Post-filter — applied client-side.

## `max_bhk` (type: `number`):

Maximum BHK (e.g. 3 for up to 3 BHK). Post-filter — applied client-side.

## `property_type` (type: `string`):

Filter by property type. Post-filter — applied client-side.

## `max_properties` (type: `integer`):

Maximum number of properties to scrape (0=unlimited)

## `max_pages` (type: `integer`):

Maximum number of result pages (30 listings per page)

## `proxy` (type: `object`):

Proxy configuration. Optional — the API works without proxy.

## `dataset_name` (type: `string`):

Custom dataset name (leave empty for default)

## `clear_dataset` (type: `boolean`):

Clear the dataset before scraping

## Actor input object example

```json
{
  "mode": "search",
  "service": "buy",
  "city": "Mumbai",
  "max_properties": 30,
  "max_pages": 1000,
  "clear_dataset": false
}
```

# Actor output Schema

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

Individual property listing records with price, BHK configurations, coordinates, and detail data.

## `metadata` (type: `string`):

Scraping run metadata including timing, counts, and configuration.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/housing-com-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/housing-com-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call abotapi/housing-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=abotapi/housing-com-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Housing.com India Scraper",
        "description": "Scrape residential property listings from housing.com. Supports buy and rent across 750+ cities.",
        "version": "0.1",
        "x-build-id": "FjVfZCbGf2rbC6VS5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/abotapi~housing-com-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-abotapi-housing-com-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/abotapi~housing-com-scraper/runs": {
            "post": {
                "operationId": "runs-sync-abotapi-housing-com-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/abotapi~housing-com-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-abotapi-housing-com-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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "url"
                        ],
                        "type": "string",
                        "description": "Scraping mode: 'search' builds query from city/locality, 'url' extracts locality from provided housing.com URLs",
                        "default": "search"
                    },
                    "urls": {
                        "title": "Search URLs",
                        "type": "array",
                        "description": "Housing.com search URLs (url mode only). e.g. https://housing.com/in/buy/search?f=eyJiYX...",
                        "items": {
                            "type": "string"
                        }
                    },
                    "service": {
                        "title": "Service",
                        "enum": [
                            "buy",
                            "rent"
                        ],
                        "type": "string",
                        "description": "Buy or Rent",
                        "default": "buy"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City name (e.g. 'Mumbai', 'Delhi', 'Bangalore', 'Pune'). Use the city listing to find exact names.",
                        "default": "Mumbai"
                    },
                    "locality": {
                        "title": "Locality",
                        "type": "string",
                        "description": "Locality/area within the city (e.g. 'andheri_west', 'bandra_west'). Leave empty for entire city."
                    },
                    "min_price": {
                        "title": "Min Price (INR)",
                        "type": "integer",
                        "description": "Minimum price in INR. Post-filter — applied client-side after fetching results. For buy: e.g. 5000000 = 50 Lakhs. For rent: e.g. 30000 = ₹30K/month."
                    },
                    "max_price": {
                        "title": "Max Price (INR)",
                        "type": "integer",
                        "description": "Maximum price in INR. Post-filter — applied client-side."
                    },
                    "min_bhk": {
                        "title": "Min BHK",
                        "minimum": 1,
                        "maximum": 6,
                        "type": "number",
                        "description": "Minimum BHK (e.g. 2 for 2+ BHK). Post-filter — applied client-side."
                    },
                    "max_bhk": {
                        "title": "Max BHK",
                        "minimum": 1,
                        "maximum": 6,
                        "type": "number",
                        "description": "Maximum BHK (e.g. 3 for up to 3 BHK). Post-filter — applied client-side."
                    },
                    "property_type": {
                        "title": "Property Type",
                        "enum": [
                            "project",
                            "resale",
                            "rent"
                        ],
                        "type": "string",
                        "description": "Filter by property type. Post-filter — applied client-side."
                    },
                    "max_properties": {
                        "title": "Max Properties",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of properties to scrape (0=unlimited)",
                        "default": 30
                    },
                    "max_pages": {
                        "title": "Max Pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of result pages (30 listings per page)",
                        "default": 1000
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy configuration. Optional — the API works without proxy."
                    },
                    "dataset_name": {
                        "title": "Dataset Name",
                        "type": "string",
                        "description": "Custom dataset name (leave empty for default)"
                    },
                    "clear_dataset": {
                        "title": "Clear Dataset",
                        "type": "boolean",
                        "description": "Clear the dataset before scraping",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
