# Magicbricks Search Results Scraper (`krazee_kaushik/magicbricks-search-results-scraper`) Actor

Scrape Magicbricks.com search pages into structured data with 💰 pricing, 🛏️ BHK configurations, 📐 area details, 📍 locality info, 🏗️ project metadata, and 🖼️ property images. Export as 📄 JSON, 📊 CSV, 📘 Excel, or 🗂️ XML for real estate analytics & investment research.

- **URL**: https://apify.com/krazee\_kaushik/magicbricks-search-results-scraper.md
- **Developed by:** [Krazee](https://apify.com/krazee_kaushik) (community)
- **Categories:** Lead generation, Real estate, Developer tools
- **Stats:** 4 total users, 1 monthly users, 77.8% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 🏡 Magicbricks Search Results Scraper - Property Data Extraction Tool

**Turn any Magicbricks search page into clean, ready-to-use property data.**
Pick your filters on Magicbricks, copy the search URL, and this scraper pulls the listings instantly through API.

Perfect for price research, locality insights, supply monitoring, dashboards, investment analysis, or building your own real-estate intelligence tools.

--- 

### ⭐ Use Cases

This scraper is ideal for anyone who needs quick, structured real-estate data from Magicbricks without manual effort. Use it to:

- Analyze prices and trends across cities, localities, builders, and projects.

- Compare properties by BHK, area, amenities, or pricing for investment decisions.

- Monitor supply changes and track new or updated listings in any micro-market.

- Populate dashboards with clean, ready-to-use property data for market insights.

- Power proptech apps with consistent listing data, images, coordinates, and metadata.

### 🧾 What This Scraper Does

You bring:

- Any Magicbricks search URL (Sale or Rent)

- With all the filters you already selected on the site


The scraper then:

- Opens each search URL directly (no browser, no automation)

- Collects the structured property data returned by Magicbricks

- Retries automatically if a request fails

- Maintains sessions so you get consistent results even when crawling many pages


---

### 📦 What Data You Can Extract

For every property listing, you get a complete breakdown:

🏷 **Property Details**

- BHK, configuration, property type

- Carpet area, built-up area, unit sizes

- Furnishing, floor info, age of property

💰 **Pricing**

-Actual price

-Min/max price range

-Price per sq.ft

-Booking amount

-Display price (like “1.10 Cr”)

📍 **Location & Coordinates**

- Locality, project, city

-Latitude & longitude for mapping

-Nearby landmarks

🏗 **Builder & Ownership**

- Developer name and ID

- Project name & RERA info

- Owner details for owner-posted listings

⭐ **Amenities + Images**

- Raw amenities list

- Luxury amenities mapping

- All property image URLs

- Video links when available

📜 **Descriptions & SEO**

- Full listing description

- Auto-generated Magicbricks text

- SEO-friendly page URL

🕒 **Timestamps**

- Posted date

- Modified date

- Ingestion timestamp

---

### ⬇️ Input Format
Just provide one or more Magicbricks search URLs.

Example:

```json
{
    "searchUrls": [
        "https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3,%3E5&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&Locality=Gachibowli&cityName=Hyderabad&BudgetMin=10-Lacs&BudgetMax=3.5-Crores",
        "https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3,%3E5&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=Gurgaon&BudgetMin=10-Lacs&BudgetMax=3.5-Crores"
    ]
}
````

***

### 📤 Output Example

Output is a dataset where each item represents a real estate result. Here’s a shortened example:

```json
{
	"property_id": "82570767",
	"encId": "h7plMtVqmP9zpSvf+uAgZw==",
	"title": "7BHK Villa for Resale in Phase 1 DLF",
	"property_type": "Villa",
	"transaction_type": "Sale",
	"status": "Ready to Move",
	"bhk": "7",
	"bathrooms": 9,
	"balconies": 4,
	"carpet_area": null,
	"carpet_area_unit": null,
	"super_builtup_area": 502,
	"super_builtup_area_unit": "Sq-yrd",
	"floor_no": null,
	"total_floors": null,
	"floor_info": null,
	"furnishing": "Semi-Furnished",
	"age_of_property": "New Construction",
	"price": 380000000,
	"min_price": 353400000,
	"max_price": 380000000,
	"price_display": "38 Cr",
	"price_per_sqft": 84108,
	"booking_amount": 80000000,
	"owner_type": "Owner",
	"owner_id": "67498293",
	"owner_name": "SAGAR RAJPUT",
	"developer_name": null,
	"developer_id": null,
	"project_name": null,
	"project_link": null,
	"rera_number": null,
	"rera_validity": null,
	"locality": "Phase 1 DLF",
	"locality_id": 78672,
	"city": "Gurgaon",
	"city_id": "2951",
	"latitude": 0,
	"longitude": 0,
	"landmarks": [
		"19201|Mega Mall Gurgaon",
		"19201|The Shopping Mall, Arjun marg",
		"19202|Students Academy",
		"19202|Kunskapsskolan",
		"19203|Neelkanth Hospital",
		"19206|Dt Mega Mall",
		"19206|Mega Mall",
		"19210|Dlf Phase 1 Rapid Metro Station",
		"19210|Phase1 Metro Station"
	],
	"amenities_raw": [],
	"amenities": {},
	"images": [
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_5_PropertyImage233-08211099682651_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_7_PropertyImage864-8657397143412_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_9_PropertyImage902-308268750646_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_1_PropertyImage45-333637121610536_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_1_PropertyImage365-54033013476896_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_10_PropertyImage624-0046643156296_470_1080.jpg",
		"https://img.staticmb.com/mbphoto/property/cropped_images/2025/Dec/13/Photo_h470_w1080/82570767_11_PropertyImage973-8157624433645_470_1080.jpg"
	],
	"video_url": null,
	"description": "7 BHK, Villa is available for Sale in Phase 1 DLF, Gurgaon for 38.0 Crore(s)",
	"short_description": "7 BHK, Villa is available for Sale in Phase 1 DLF, Gurgaon for 38.0 Crore(s)",
	"posted_date": "2025-12-13T16:11:23.000Z",
	"modified_date": "Today",
	"seo_url": "propertyDetails-7-BHK-502-Sqyrd-Villa-FOR-Sale-Phase-1-DLF-in-Gurgaon&id=h7plMtVqmP9zpSvf+uAgZw==&category=Sale",
	"auto_generated_desc": "7 BHK, Villa is available for Sale in Phase 1 DLF, Gurgaon for 38.0 Crore(s)",
	"facing": null,
	"amenity_facing": null,
	"water_status": null,
	"power_status": null,
	"metadata": {
		"project_name_hi": null,
		"category": "20292",
		"score": "27"
	},
	"timestamp_ingested": "2025-12-13T17:00:11.760Z"
}
```

***

# Actor input Schema

## `searchUrls` (type: `array`):

List of search urls to scrape.

## `resultsLimit` (type: `integer`):

Results count for each url

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=Bangalore&BudgetMin=10-Lacs&BudgetMax=20-Lacs"
  ],
  "resultsLimit": 30
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "searchUrls": [
        "https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=Bangalore&BudgetMin=10-Lacs&BudgetMax=20-Lacs"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("krazee_kaushik/magicbricks-search-results-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 = { "searchUrls": ["https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=Bangalore&BudgetMin=10-Lacs&BudgetMax=20-Lacs"] }

# Run the Actor and wait for it to finish
run = client.actor("krazee_kaushik/magicbricks-search-results-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 '{
  "searchUrls": [
    "https://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=2,3&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=Bangalore&BudgetMin=10-Lacs&BudgetMax=20-Lacs"
  ]
}' |
apify call krazee_kaushik/magicbricks-search-results-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Magicbricks Search Results Scraper",
        "description": "Scrape Magicbricks.com search pages into structured data with 💰 pricing, 🛏️ BHK configurations, 📐 area details, 📍 locality info, 🏗️ project metadata, and 🖼️ property images. Export as 📄 JSON, 📊 CSV, 📘 Excel, or 🗂️ XML for real estate analytics & investment research.",
        "version": "0.0",
        "x-build-id": "AhWrUzu33Ehrnb7ZD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/krazee_kaushik~magicbricks-search-results-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-krazee_kaushik-magicbricks-search-results-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/krazee_kaushik~magicbricks-search-results-scraper/runs": {
            "post": {
                "operationId": "runs-sync-krazee_kaushik-magicbricks-search-results-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/krazee_kaushik~magicbricks-search-results-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-krazee_kaushik-magicbricks-search-results-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": [
                    "searchUrls"
                ],
                "properties": {
                    "searchUrls": {
                        "title": "Search URLs",
                        "type": "array",
                        "description": "List of search urls to scrape.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "resultsLimit": {
                        "title": "Results limit",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Results count for each url",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
