# Magicbricks Properties and Details Scraper (`realestateapi/magicbricks-properties-and-details-scraper`) Actor

Permission-gated Magicbricks property detail scraper. Written authorization is required for automated retrieval and reuse; default runs make zero source requests.

- **URL**: https://apify.com/realestateapi/magicbricks-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Magicbricks Properties and Details Scraper

Magicbricks' [terms and conditions](https://property.magicbricks.com/terms/terms.html) require prior written permission for automated extraction. The operator attested on 2026-11-16 that written permission is held for this Actor (see the root `WRITTEN_PERMISSION_ATTESTATION.md`; reference document/ID not supplied). The previous `SKIPPED_POLICY` gate was therefore removed: this Actor now fetches whatever public HTTPS Magicbricks `propertyDetails` URLs are supplied in `propertyUrls`. The attestation is an operator record, not a permission grant by this repository, and does not override the source's own Terms.

Provide public HTTPS Magicbricks `propertyDetails` URLs in `propertyUrls`. `maxItems` limits unique properties; `requestDelayMs` and `requestTimeoutSecs` set request pacing and timeout. The Actor reads public listing details and embedded property state for price, room counts, covered and carpet area, location, amenities, images, and other listing metadata when present. It does not log in, submit forms, solve CAPTCHA challenges, use proxies, or call private APIs. If the source returns HTTP 403 / a challenge / a login wall, the run fails closed and reports the blocker; it is never bypassed.

### Output

The dataset contains validated property records only. The following JSON is synthetic and illustrative, not a live Magicbricks result. It shows the expected row shape if a source page returns a valid property; a run with no valid URLs or no parseable property emits no rows.

```json
{
  "recordType": "magicbricksProperty",
  "propertyId": "999999999999",
  "propertyTitle": "Fictional Two-Bedroom Apartment",
  "propertyUrl": "https://www.magicbricks.com/propertyDetails/example-property&id=999999999999",
  "propertyType": "Apartment",
  "transactionType": "Sale",
  "price": 8500000,
  "priceFormatted": "₹85 lakh",
  "bedrooms": 2,
  "bathrooms": 2,
  "coveredArea": 1100,
  "carpetArea": 880,
  "address": "100 Example Street, Example City",
  "locality": "Example Neighborhood",
  "city": "Example City",
  "projectName": "Example Residences",
  "amenities": ["Example amenity"],
  "images": []
}
```

The `OUTPUT` summary reports run status and request, property, and failure counts. Access, parsing, validation, and storage failures remain in the summary and are not dataset rows. A clean bounded run is `SUCCEEDED` / `COMPLETED`; a later failure after saving a property is `SUCCEEDED` / `PARTIAL`; a failure without a saved property is `FAILED` / `FAILED` (exit code 1). The `authorizationConfirmed` field remains an input/output provenance field only; it no longer gates collection.

# Actor input Schema

## `authorizationConfirmed` (type: `boolean`):

Operator attestation that current written authorization permits automated retrieval and the intended reuse of Magicbricks content. Retained for provenance only: per the 2026-11-16 written-permission attestation the policy gate is removed, so this flag no longer blocks collection. It does not grant permission or override the source's Terms.

## `propertyUrls` (type: `array`):

HTTPS Magicbricks propertyDetails URLs copied from public listing pages.

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

Optional HTTPS Magicbricks search URLs for city/category discovery. Bounded pagination yields official propertyDetails links, which are then enriched with the existing detail parser.

## `maxPages` (type: `integer`):

Bounded number of discovery pages (deterministic ?page=N pagination).

## `maxRequests` (type: `integer`):

Hard cap on total requests (search pages plus detail pages) for one run.

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

Bound on simultaneous requests; collection is sequential, so 1 is always honored.

## `includeDetails` (type: `boolean`):

Enrich discovered detail URLs with the existing public detail parser. Defaults to true.

## `testMode` (type: `boolean`):

When true, caps the run to 1 page and 6 total requests. Does not change the source authorization boundary.

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

Maximum unique property records to save.

## `requestDelayMs` (type: `integer`):

Delay between public detail-page requests.

## `requestTimeoutSecs` (type: `integer`):

Maximum time to wait for one public detail page.

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

Optional standard Apify proxy configuration. When supplied with useApifyProxy (or explicit proxy URLs), source requests are routed through the resolved proxy. Omit this property to keep the current direct-request behavior unchanged.

## Actor input object example

```json
{
  "authorizationConfirmed": false,
  "propertyUrls": [
    "https://www.magicbricks.com/propertyDetails/3-BHK-1450-Sq-ft-Multistorey-Apartment-FOR-SALE-Mira-Road-in-Mumbai&id=4d423836303735363837"
  ],
  "searchUrls": [],
  "maxPages": 1,
  "maxRequests": 40,
  "maxConcurrency": 1,
  "includeDetails": true,
  "testMode": false,
  "maxItems": 10,
  "requestDelayMs": 250,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

## `dataset` (type: `string`):

Validated public property detail records.

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

// Run the Actor and wait for it to finish
const run = await client.actor("realestateapi/magicbricks-properties-and-details-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("realestateapi/magicbricks-properties-and-details-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 '{}' |
apify call realestateapi/magicbricks-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/magicbricks-properties-and-details-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/S5qdQlTQ14dRrZLTC/builds/BZxnIWAzhomte3r2c/openapi.json
