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

Scrape property listings from Housing.com using search queries or start URLs. Extract prices, amenities, seller/agent details, and optional listing-page extras.

- **URL**: https://apify.com/datascrapers/housing-com-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.97 / 1,000 listings

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/running/actors-in-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

**Housing.com Scraper** creates a structured dataset of property listings collected from Housing.com. Each dataset item can include the listing id, title, locality, price, and property type. Query the source with a city and a buy or rent service, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![housing-com-scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/housing-com-scraper/housing-com-scraper-value-demo.gif)](https://apify.com/datascrapers/housing-com-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | housing.com |
| Record unit | One property listing |
| Input methods | searchQueries, service, category |
| Main identifiers | listingId, url |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.00 per 1,000 listings on the free plan |

### Coverage and available records

A city search returns buy or rent listings. The stored Delhi search includes a residential plot in Sector 17 Dwarka, New Delhi, shown as ₹4.75 Cr. listingId is 20092546. bedrooms is 0 because the listing is a plot.

Set extractListingDetails to charge listing-details. Set extractAgentInfo to charge agent-info. The example does not copy an agent name. maxItems limits listings. The Actor does not enquire.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| listingId | number | no | Listing id. Use this field to deduplicate. | 20092546 |
| url | string | yes | Listing URL. | https://housing.com/in/buy/resale/page/20092546-residential-plot-in-sector-17-dwarka-for-r |
| title | string | yes | Listing title. | Residential Plot |
| propertyType | string | yes | Property type. | resale |
| service | string | yes | buy or rent. | buy |
| category | string | yes | Category. | residential |
| price | number | yes | Numeric price. | 47500000 |
| priceDisplay | string | yes | Price text. | ₹4.75 Cr |
| address | string | yes | Locality or address. | Sector 17 Dwarka |
| city | string | yes | City. | New Delhi |
| bedrooms | number | yes | Bedroom count. 0 on a plot. | 0 |

### Example dataset record

```json
{
  "listingId": 20092546,
  "title": "Residential Plot",
  "propertyType": "resale",
  "service": "buy",
  "category": "residential",
  "price": 47500000,
  "priceDisplay": "₹4.75 Cr",
  "address": "Sector 17 Dwarka",
  "city": "New Delhi",
  "bedrooms": 0
}
```

This is a stored Delhi listing. Agent names are not copied into this example.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | city names | Cities to search. |
| service | string | no | schema default | buy or rent | Transaction type. |
| category | string | no | schema default | residential and other codes | Category. |
| extractListingDetails | boolean | no | false | true or false | Charge listing-details. |
| extractAgentInfo | boolean | no | false | true or false | Charge agent-info. |
| maxItems | integer | no | schema default | integer | Listing cap. |
| proxyConfiguration | object | no | Apify residential | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["Delhi"], "service": "buy", "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/housing-com-scraper").call(run_input={
    "searchQueries": ["Delhi"],
    "service": "buy",
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("listingId"), item.get("priceDisplay"))
```

### Data quality and record handling

Deduplicate on listingId. price is the numeric amount. priceDisplay is the text on the listing. bedrooms is 0 when the listing has no bedrooms, such as a plot. A later run can show a new price for the same id.

### Pricing and cost examples

Pay per event. dataset-item is $1.00 per 1,000 on Free, $0.99 on Bronze, $0.98 on Silver, and $0.97 on Gold. listing-details is $2.00, $1.90, $1.80, and $1.70 per 1,000. agent-info is $1.50, $1.40, $1.30, and $1.20 per 1,000. Platinum and Diamond use the Gold price. Platform usage is included. Saving 1,000 listings without extras costs $1.00 on Free.

### Limitations and responsible data use

The Actor reads public listings. It does not contact an agent. Housing.com can change a price or withhold a city. Use the data in line with Housing.com terms.

### Dataset questions

#### What is one record?

One listing, keyed by listingId.

#### Which field should I use to deduplicate?

listingId.

#### When is agent-info charged?

When extractAgentInfo is true and the agent record is saved.

### Related datasets from Data Scrapers

- [MagicBricks Scraper](https://apify.com/datascrapers/magicbricks-scraper)
- [Bayut Scraper](https://apify.com/datascrapers/bayut-sa-scraper)
- [Savills Property Scraper](https://apify.com/datascrapers/savills-scraper)
- [HAR.com Scraper](https://apify.com/datascrapers/har-com-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `searchQueries` (type: `array`):

Locations to search on Housing.com (e.g. "Delhi", "Whitefield Bangalore", "Bandra Mumbai"). Primary input for AI agents — no URL required. The first autocomplete match is used.

## `startUrls` (type: `array`):

Housing.com search or listing URLs (e.g. "https://housing.com/in/buy/new-delhi/", "https://housing.com/in/buy/new-delhi/house-fid/", or a listing page). Optional — filters still apply to query-based searches.

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

Housing.com product to search (e.g. buy, rent). Applies to search queries and city start URLs that do not already encode a product.

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

Inventory category. Use residential for homes and commercial for offices or shops.

## `propertyTypes` (type: `array`):

Restrict results to these property types (e.g. apartment, independent house, plot). Leave empty for all types.

## `bhk` (type: `array`):

Bedroom configuration to include (e.g. 2, 3). 1rk is studio / 1 RK.

## `furnishTypes` (type: `array`):

Furnishing filter (furnished, semi-furnished, unfurnished).

## `listingTypes` (type: `array`):

New projects, resale listings, or both. Leave empty for all.

## `possession` (type: `string`):

Ready-to-move inventory only, or no restriction.

## `postedBy` (type: `string`):

Restrict to owner / without-brokerage listings when set to Owner.

## `gatedCommunity` (type: `boolean`):

Only include gated-community listings when enabled.

## `reraVerified` (type: `boolean`):

Only include RERA-verified listings when enabled.

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

Keep listings at or above this price in Indian rupees (e.g. 5000000 for ₹50 L). Applied after results are fetched.

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

Keep listings at or below this price in Indian rupees (e.g. 20000000 for ₹2 Cr). Applied after results are fetched.

## `extractListingDetails` (type: `boolean`):

Open each listing in parallel for neighbourhood landmarks, Q\&A, and page extras. Charged as listing-details only when extras are actually attached. Search-card fields are always returned.

## `extractAgentInfo` (type: `boolean`):

Also scrape recommended Housing.com agents / brokers for each search. Each agent is a separate dataset row charged as agent-info. Listing sellers on the card are always included.

## `maxConcurrency` (type: `integer`):

Parallel listing-detail workers (1–10). Higher is faster; each request uses a rotated residential proxy.

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

Maximum number of listing records to scrape (0 = unlimited). Agent rows do not count toward this cap.

## `proxyConfiguration` (type: `object`):

Proxy settings for anti-bot protection. Apify Residential is recommended for Housing.com.

## Actor input object example

```json
{
  "searchQueries": [
    "Delhi"
  ],
  "startUrls": [
    {
      "url": "https://housing.com/in/buy/new-delhi/"
    }
  ],
  "service": "buy",
  "category": "residential",
  "gatedCommunity": false,
  "reraVerified": false,
  "extractListingDetails": false,
  "extractAgentInfo": false,
  "maxConcurrency": 5,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset of scraped Housing.com listings and optional agent records

## `runStats` (type: `string`):

Aggregate scrape statistics including listing, details, and agent counts

# 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 = {
    "searchQueries": [
        "Delhi"
    ],
    "startUrls": [
        {
            "url": "https://housing.com/in/buy/new-delhi/"
        }
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/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 = {
    "searchQueries": ["Delhi"],
    "startUrls": [{ "url": "https://housing.com/in/buy/new-delhi/" }],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/housing-com-scraper").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 '{
  "searchQueries": [
    "Delhi"
  ],
  "startUrls": [
    {
      "url": "https://housing.com/in/buy/new-delhi/"
    }
  ],
  "maxItems": 10
}' |
apify call datascrapers/housing-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/housing-com-scraper"
        }
    }
}
```

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/LjqkUpDwRoi97UzDF/builds/4aYp27pbat84DdVk4/openapi.json
