# MagicBricks India Property Scraper (`parseforge/magicbricks-india-scraper`) Actor

Scrapes MagicBricks India property listings by city and transaction type. Returns each listing as a flat row with price, area, BHK, project name, and property details for sale or rent across 27 Indian cities.

- **URL**: https://apify.com/parseforge/magicbricks-india-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 11 total users, 1 monthly users, 92.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### MagicBricks India Property Scraper

**Scrape MagicBricks India property listings for sale or rent across 27 cities, up to a million per run.** Each listing returns its price, area, BHK, project name, and full property details. No browser needed. Export to CSV, JSON, Excel, or XML.

MagicBricks is India's largest property portal, but manually collecting listings across cities and transaction types is slow and repetitive. This Actor reads the public search results directly, letting you pull structured property data from Mumbai, Bangalore, Delhi, and 24 other cities in one run. Filter by property type, sort by price or recency, and get every listing in a consistent flat schema.

| Who uses it | What they scrape MagicBricks for |
|---|---|
| Real estate analysts | Track price trends and inventory levels across Indian metro cities. |
| Property investors | Compare per-square-foot rates for apartments and builder floors in target cities. |
| Lead generation teams | Build a fresh database of rental and sale listings with owner or broker details. |
| Market researchers | Map supply density by property type and city for quarterly reports. |

### What it does

This Actor collects MagicBricks property listings by city and transaction type, and returns each one as a flat row with price, area, BHK, project details, and more.

- 🏙️ **27 Indian cities:** Mumbai, Bangalore, Pune, Hyderabad, Chennai, Delhi, Noida, Gurgaon, Kolkata, Ahmedabad, Thane, Lucknow, Indore, Greater Noida, Jaipur, Bhubaneswar, Bhopal, Chandigarh, Faridabad, Ghaziabad, Kanpur, Kochi, Kozhikode, Ludhiana, Mysore, Nagpur, and Nashik.
- 🏠 **Sale and rental listings:** Switch between For Sale and For Rent with one input to cover both sides of the market.
- 🏢 **Eight property types:** Filter to Multistorey Apartment, Builder Floor, Penthouse, Residential House, Villa, Residential Land, Studio Apartment, or Farm House.
- 📊 **Four sort orders:** Premium plus Recent, Price high to low, Price low to high, or Newest listings first.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with MagicBricks data

**📈 Monitor city-level price trends.**

A real estate analyst runs the Actor weekly on Mumbai and Bangalore sale listings sorted by newest, then charts average price per square foot by property type to spot emerging micro-market shifts.

**🏢 Build a rental inventory dataset.**

A prop-tech startup scrapes For Rent listings across all 27 cities, filters to Multistorey Apartments only, and feeds the structured data into their apartment search app.

**💰 Find investment opportunities.**

An NRI investor pulls Residential Land and Villa listings in Pune, Hyderabad, and Chennai sorted by price low to high, then shortlists undervalued properties for site visits.

**📊 Compare supply across property types.**

A market researcher runs the Actor on five metro cities with no property type filter, then pivots the output to count listings by type and city for a quarterly supply report.

### Why choose this scraper

| | What you get |
|---|---|
| **City-level coverage** | 27 Indian cities with a single dropdown selection |
| **Transaction types** | For Sale and For Rent listings in one Actor |
| **Property type filters** | Eight property types including apartments, villas, and land |
| **Flexible sorting** | Order by premium placement, price ascending or descending, or newest first |
| **Flat output schema** | Every listing returns the same fields for easy analysis |

### How it compares

This Actor focuses on city-level scraping with built-in city codes and property type filters, while the Magicbricks Search Results Scraper uses raw search URLs for more granular control.

| Feature | ParseForge | Magicbricks Search Results Scraper |
|---|---|---|
| Built-in city selection | Yes, 27 cities via dropdown | Not listed |
| Property type filter | Yes, 8 types | Not listed |
| Transaction type toggle | Yes, Sale or Rent | Not listed |
| Sort order options | Yes, 4 sort orders | Not listed |
| Search URL input | Not required | Yes |
| Locality-level scraping | Not supported | Yes |

### Configure the run

Drive the Actor from a city code and transaction type, then narrow results with optional property type filters and a sort order. Filters run at the source so only matching listings reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [MagicBricks India Property Scraper](https://apify.com/parseforge/magicbricks-india-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to MagicBricks through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/magicbricks-india-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your city and transaction type combination has active listings. Some smaller cities may have few For Rent listings. Try switching the transaction type or removing the property type filter to broaden the search.

**Why am I only getting 10 results?**

Free Apify users are limited to 10 items as a preview. Upgrade to a paid plan and increase the Maximum properties input to get more listings.

**The Actor is running slowly. Is that normal?**

The Actor respects MagicBricks' servers by pacing requests. Large runs with high maxItems values will take longer. This is expected behavior and protects your account from being rate-limited.

**Some listings are missing fields like price or area.**

MagicBricks listings sometimes omit details at the source. If a seller or broker did not provide the price or area, that field will be empty in your output. This is not an Actor error.

**Can I use this Actor with a proxy?**

Yes. Apify automatically routes traffic through its proxy pool. You can configure custom proxies in the Actor's advanced settings if needed.

### FAQ

| Question | Answer |
|---|---|
| Which cities does this Actor support? | It supports 27 Indian cities including Mumbai, Bangalore, Pune, Hyderabad, Chennai, Delhi, Noida, Gurgaon, Kolkata, Ahmedabad, Thane, Lucknow, Indore, Greater Noida, Jaipur, Bhubaneswar, Bhopal, Chandigarh, Faridabad, Ghaziabad, Kanpur, Kochi, Kozhikode, Ludhiana, Mysore, Nagpur, and Nashik. |
| Can I scrape both sale and rental listings? | Yes. Set the Transaction Type input to For Sale or For Rent. You can run the Actor twice with different settings to collect both datasets. |
| How many listings can I scrape in one run? | Free users are limited to 10 items as a preview. Paid Apify users can set the maximum up to 1,000,000 listings per run. |
| What property types can I filter by? | You can filter by Multistorey Apartment, Builder Floor, Penthouse, Residential House, Villa, Residential Land, Studio Apartment, or Farm House. Leave the filter empty to get all types. |
| Does this Actor need a MagicBricks account or API key? | No. It reads the public search result pages directly. No login, no API key, and no browser is required. |
| What output formats are supported? | You can export your results to CSV, JSON, Excel, or XML from the Apify dataset tab. |
| How do I sort the results? | Choose from four sort orders: Premium plus Recent, Price high to low, Price low to high, or Newest listings first. |
| Can I scrape a specific locality or project? | This Actor works at the city level. For locality-level or project-level scraping, use a MagicBricks search URL scraper instead. |
| What data fields does each listing return? | Each row includes price, area in square feet, BHK count, project name, property type, city, transaction type, and additional details available on the search result card. |
| Is this Actor legal to use? | You are responsible for complying with MagicBricks' terms of service. This Actor only accesses publicly available pages. Consult a legal professional for your specific use case. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by MagicBricks Realty Services Limited. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

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

City to search in. Defaults to Mumbai.

## `transaction` (type: `string`):

Sale or Rent listings.

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## `sortBy` (type: `string`):

How to order the results.

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

Filter by property type. Leave empty for all.

## Actor input object example

```json
{
  "city": "4320",
  "transaction": "S",
  "maxItems": 10,
  "sortBy": "premiumRecent"
}
```

# Actor output Schema

## `results` (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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/magicbricks-india-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parseforge/magicbricks-india-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 '{
  "maxItems": 10
}' |
apify call parseforge/magicbricks-india-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/magicbricks-india-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/preZjPBWdKKAaukth/builds/aD5AMzIyo1rHLt7Nf/openapi.json
