# MagicBricks India Property Scraper (`unfenced-group/magicbricks-scraper`) Actor

Scrape buy/rent property listings from MagicBricks.com India. Prices, GPS, BHK, area, RERA, photos.

- **URL**: https://apify.com/unfenced-group/magicbricks-scraper.md
- **Developed by:** [Unfenced Group](https://apify.com/unfenced-group) (community)
- **Categories:** Real estate
- **Stats:** 5 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.72 / 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

## MagicBricks India Property Scraper

![MagicBricks India Property Scraper](https://api.apify.com/v2/key-value-stores/ClElVyZWvQgPQIuDL/records/magicbricks-scraper)

Extract property listings from magicbricks.com at scale, in a clean, consistent structure ready for market analysis, valuation models, lead generation and monitoring. No API key required.

***

### Why this scraper?

#### 🎯 Built for India

A dedicated Indian scraper, not a global tool with a country dropdown. Locations, price formats and currency (INR) are tuned for magicbricks.com.

#### 🏠 Property characteristics

Bedrooms, rooms, surface and property type in structured fields, ready for filtering and analysis.

#### 📍 Precise location

Address fields plus latitude/longitude for mapping and radius analysis.

***

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `cities` | array | `["New-Delhi", "Mumbai", "Bangalore", "Hyderabad", "Pune"]` | Indian cities to scrape. Ignored when Start URLs are provided. |
| `transactionTypes` | array | `["buy", "rent"]` | Buy (for sale) and/or rent listings. |
| `minPrice` | integer | (empty) | Minimum listing price in INR. Leave empty for no minimum. |
| `maxPrice` | integer | (empty) | Maximum listing price in INR. Leave empty for no maximum. |
| `maxResults` | integer | `500` | Maximum total listings to return across all cities. Set 0 for unlimited. |
| `maxPagesPerCity` | integer | `40` | Safety cap on pagination depth per city/transaction (30 listings per page). |
| `startUrls` | array | (empty) | Optional MagicBricks search-results URLs. When provided, the city and transaction filters above are ignored. Apply any filters on the website and paste the resulting URL. |
| `proxyConfiguration` | object | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` | Proxy configuration. Defaults to Apify Residential proxy with India geolocation, which MagicBricks requires. |

***

### Output schema

Every field below is present on every record. Fields the source does not publish for a given listing are returned as `null` rather than omitted.

| Field | Type | Description |
|---|---|---|
| `propId` | string | Unique MagicBricks listing ID |
| `url` | string | Full URL to the property detail page |
| `transactionType` | string | `buy` or `rent` |
| `propertyType` | string | e.g. `Multistorey-Apartment`, `Villa` |
| `title` | string | Listing title as published. |
| `city` | string | City display name |
| `locality` | string | Neighbourhood / locality |
| `societyName` | string | Project or society name |
| `latitude` | number | GPS latitude |
| `longitude` | number | GPS longitude |
| `priceRaw` | string | Price as displayed (e.g. `₹ 85 Lac`) |
| `priceInr` | number | Price inr. |
| `pricePerSqft` | number | Price per sqft in INR |
| `bedrooms` | number | Number of bedrooms (BHK) |
| `bathrooms` | number | Number of bathrooms |
| `balconies` | number | Number of balconies |
| `superBuiltUpArea` | number | Super built-up area in sqft |
| `superAreaUnit` | string | Super area unit. |
| `furnishing` | string | `Furnished`, `Semi-Furnished`, `Unfurnished` |
| `facing` | string | Direction the property faces (e.g. `East`) |
| `overlooking` | string | Overlooking. |
| `transactionState` | string | Transaction state. |
| `availability` | string | Availability. |
| `tenantPreferred` | string | Tenant preferred. |
| `ownershipType` | string | `Freehold`, `Leasehold`, etc. |
| `postedDate` | string | ISO 8601 date when listed |
| `photoUrl` | string | URL of cover/main photo |
| `listingCompany` | string | Listing company. |
| `source` | string | Always `magicbricks.com` |
| `scrapedAt` | string | ISO 8601 timestamp of extraction |

#### Example record

```json
{
  "propId": "84945503",
  "url": "https://www.magicbricks.com/the-eminent-by-ramky-gaganpahad-hyderabad-pdpid-4d4235343335333335",
  "transactionType": "buy",
  "propertyType": "Multistorey Apartment",
  "title": "4 BHK Flat  for Sale in  Gaganpahad, Hyderabad",
  "city": "Hyderabad",
  "locality": "Gaganpahad",
  "societyName": "The Eminent By Ramky",
  "latitude": 17.2892278114323,
  "longitude": 78.4107637905226,
  "priceRaw": "₹2.63 Cr",
  "priceInr": 26300000,
  "pricePerSqft": 7810,
  "bedrooms": 4,
  "bathrooms": 4,
  "balconies": 2,
  "superBuiltUpArea": 3370,
  "superAreaUnit": "sqft",
  "furnishing": "Unfurnished",
  "facing": null,
  "overlooking": null,
  "transactionState": "New Property",
  "availability": null,
  "tenantPreferred": null,
  "ownershipType": null,
  "postedDate": null,
  "photoUrl": "https://img.staticmb.com/mbimages/project/Photo_h310_w462/2025/08/11/Project-Photo-8-The-Eminent-By-Ramky---Hyderabad-5435335_345_1366_310_462.jpg",
  "listingCompany": null,
  "source": "magicbricks.com",
  "scrapedAt": "2026-06-26T01:39:19.586Z"
}
```

***

### Examples

**Listings in Bengaluru:**

```json
{
  "maxResults": 100
}
```

**Cap the price:**

```json
{
  "maxResults": 100,
  "maxPrice": 9500000
}
```

**Scrape a specific search URL:**

```json
{
  "startUrls": [
    {
      "url": "https://www.magicbricks.com/property-for-sale/residential-real-estate?proptype=Multistorey-Apartment&cityName=Mumbai"
    }
  ],
  "maxResults": 200
}
```

**Daily feed of new listings (run on a schedule):**

```json
{
  "maxResults": 500
}
```

Schedule this input in the Apify Scheduler (for example daily at 07:00) to keep an always-fresh feed of the newest listings.

***

### 💰 Pricing

**$0.9 per 1,000 results** — you only pay for successfully retrieved listings. Failed retries are never charged.

| Results | Cost |
|---|---|
| 100 | ~$0.09 |
| 1,000 | ~$0.9 |
| 10,000 | ~$9 |
| 100,000 | ~$90 |

> Flat-rate alternatives typically charge $29–$49/month regardless of usage.

Subscription tiers lower the rate further, down to $0.54 per 1,000 at the highest tier. Use the **Max results** cap in the input to control your spend exactly.

***

### Performance

| Run size | Typical time |
|---|---|
| 100 results | under 1 minute |
| 1,000 results | 2–4 minutes |
| 10,000 results | 20–35 minutes |

***

### Known limitations

- Some fields (surface, year built, energy label) are only returned when the lister publishes them — expect `null` on a share of records.
- Listing photos and agent details vary per listing; the scraper returns what the source publishes and never invents data.
- Very large result sets are bounded by the source's own paging limits.
- Listings can be withdrawn at any time, so a small share of URLs may expire shortly after scraping.

***

### Technical details

- **Source:** magicbricks.com — India property listings
- **Coverage:** everything the public search exposes, filterable via the input parameters above
- **Retry:** automatic retry on network errors with exponential backoff

***

### Need a custom scraper?

**[Unfenced Group](https://www.unfencedgroup.nl)** builds Apify actors for any website — for free.

If the site you need isn't in our portfolio yet, just ask. We scope, build, and publish it at no cost to you. You only pay for results — we absorb the compute and proxy costs ourselves. Same pay-per-result pricing, same quality, same standards as every actor in this portfolio.

**Get in touch:** [www.unfencedgroup.nl](https://www.unfencedgroup.nl)

# Actor input Schema

## `cities` (type: `array`):

Indian cities to scrape. Ignored when Start URLs are provided.

## `transactionTypes` (type: `array`):

Buy (for sale) and/or rent listings.

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

Minimum listing price in INR. Leave empty for no minimum.

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

Maximum listing price in INR. Leave empty for no maximum.

## `maxResults` (type: `integer`):

Maximum total listings to return across all cities. Set 0 for unlimited.

## `maxPagesPerCity` (type: `integer`):

Safety cap on pagination depth per city/transaction (30 listings per page).

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

Optional MagicBricks search-results URLs. When provided, the city and transaction filters above are ignored. Apply any filters on the website and paste the resulting URL.

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

Proxy configuration. Defaults to Apify Residential proxy with India geolocation, which MagicBricks requires.

## Actor input object example

```json
{
  "cities": [
    "New-Delhi",
    "Mumbai",
    "Bangalore",
    "Hyderabad",
    "Pune"
  ],
  "transactionTypes": [
    "buy",
    "rent"
  ],
  "maxResults": 500,
  "maxPagesPerCity": 40,
  "startUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "maxResults": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("unfenced-group/magicbricks-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 = { "maxResults": 500 }

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

```

## MCP server setup

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