# MagicBricks Agents Scraper  🏠 (`contactminerlabs/magicbricks-agents-scraper`) Actor

MagicBricks Agents Scraper extracts real estate agent profiles: agent names, agency names, phone numbers, email addresses, locations, experience, specializations, listed properties, profile details & profile URLs. Paste one or more agent URLs with all the filters you want and get for lead generation

- **URL**: https://apify.com/contactminerlabs/magicbricks-agents-scraper.md
- **Developed by:** [ContactMinerLabs](https://apify.com/contactminerlabs) (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.00005 / actor start

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

### 🧑‍💼 MagicBricks Agents Scraper – Extract Real Estate Agents & Brokers from MagicBricks.com

🧑‍💼 Collect every real estate agent listed in the MagicBricks "Top Agents" pages: agent and company name, locality and city, operating since, properties for sale and for rent, deals closed, team size, deal types, operating areas, description, profile link, photo and logo.

Paste one or many agent list URLs (any city, any filters) and get a clean lead list ready for Excel, CSV or JSON.

### 🔍 What It Does

✅ Bulk input: many MagicBricks agent list URLs at once, all filters of the URL kept (city, property type, BHK, sale / rent…)

✅ Follows the whole agent list automatically, up to the number of agents you want per URL

✅ 30 fields per agent, numbers parsed (listings for sale / rent, deals closed, team members, years in business)

✅ Preferred agents enriched with deal types, operating areas, full description, logo and badges

✅ Each agent once per URL, even when the site shows it several times

✅ Every missing value is returned as `"N/A"`, every row has the same columns

### 📦 Field Descriptions

| Field | Description |
| --- | --- |
| 🆔 `agentId` / `agentName` / `companyName` / `profileUrl` | MagicBricks agent ID, agent name, company, agent profile page |
| 📍 `address` / `locality` / `city` / `cityId` | Office location as shown, locality, city, MagicBricks city ID |
| 📅 `operatingSince` / `yearsInBusiness` | Year the agency started, years in business |
| 🏠 `propertiesForSale` / `propertiesForRent` / `totalListings` | Listings on MagicBricks |
| 🤝 `dealsClosed` / `teamMembers` / `otherStats` | Deals closed, team size, any other figure shown |
| 🗂️ `dealsIn` / `operatesIn` | Deal types (Resale, Rent/Lease, Pre-launch…) and operating areas |
| 📝 `about` / `tags` / `isPreferred` | Full description, badges (e.g. Trusted by Many Users), preferred agent |
| 🖼️ `photoUrl` / `logoUrl` | Agent photo and company logo |
| 🔗 `searchUrl` / `searchCity` / `searchCategory` / `page` / `position` / `source` / `scrapedAt` | Search URL, city and category of the search, list page, position, Data source, scrape time |

A `SUMMARY` record (agents and status per URL) is saved in the key-value store.

### 🛠 How to Use the Scraper

1️⃣ Open a search on https://www.magicbricks.com and click the "Top Agents" tab (or open …/Real-estate-property-top-agents/agent-in-<City>)

2️⃣ Add the URL(s) in "MagicBricks agent list URLs" (one per line, or "Bulk edit" to paste many)

3️⃣ Set the maximum number of agents per URL (0 = the whole list)

4️⃣ Keep the RESIDENTIAL proxy (India) and run

5️⃣ Export to JSON, CSV, Excel, XML or HTML

💡 For thousands of agents, increase the run Timeout: the actor stops by itself a few seconds before the timeout and keeps everything collected.

### 💡 Why Use This Scraper?

📇 Lead generation: real estate agencies by city and locality, with their activity level

📊 Market research: most active agencies, team sizes, sale vs rent focus

🤝 Partnerships: find agents operating in the localities you target

🔔 Monitoring: schedule the actor to follow new agencies and their listing counts

### 💸 Pricing

You only pay for the results you get (pay per result).

### Related Actors

If you're interested in other Company Leads, YouTube or Facebook scraping solutions, check out these related tools:

- [Pracuj.pl Jobs Scraper 🇵🇱💼 - Cheap (Tani)](https://apify.com/scrapestorm/pracuj-pl-jobs-scraper---cheap-tani)
- [PanoramaFirm Company Scraper 🔍🏢 - Cheap Tani](https://apify.com/scrapestorm/panoramafirm-company-scraper---cheap-tani)
- [Clutch Company Search Scraper 📊🏢- Cheap](https://apify.com/scrapestorm/clutch-company-search-scraper---cheap)
- [Netmeds Product Scraper - Cheap 🛒](https://apify.com/scrapestorm/netmeds-product-scraper---cheap)
- [Y Combinator Company Scraper 🧠💼 - Cheap & Fast](https://apify.com/scrapestorm/y-combinator-company-scraper---cheap-fast)
- [BBB Business Directory Scraper 🏢💡 - Cheap & Fast](https://apify.com/scrapestorm/bbb-business-directory-scraper---cheap-fast)
- [Firmy.cz Search Scraper 🔍🏢 🇨🇿 - Cheap Levný](https://apify.com/scrapestorm/firmy-cz-search-scraper---cheap-levny)
- [AllRecipes Search Scraper 🔍🍽️ 👩‍🍳 - Cheap](https://apify.com/scrapestorm/allrecipes-search-scraper---cheap)
- [YouTube Full Channel Transcripts Extractor ⚡📜 - Fast & cheap](https://apify.com/scrapestorm/youtube-full-channel-transcripts-extractor---fast-cheap)
- [YouTube Transcript Short Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-short-scraper-fast-cheap)
- [YouTube Transcript Video Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-videos)
- [YouTube Email Extractor 📩📍 - Fast & cheap 💬⭐](https://apify.com/scrapestorm/youtube-email-extractor---fast-cheap)
- [YouTube Email & Phone Scraper 📧📞](https://apify.com/scrapestorm/youtube-email-phone-scraper)
- [YouTube Hashtag Shorts/Videos Scraper #️⃣📺 (All-in-one)](https://apify.com/scrapestorm/youtube-hashtag-shorts-videos-scraper-all-in-one)
- [YouTube Community Posts Scraper 🚀📄💬](https://apify.com/scrapestorm/youtube-community-posts-scraper)
- [🏎 YouTube Scraper (By Keyword) ](https://apify.com/scrapestorm/youtube)
- [🔴 Youtube Channel Scraper (Rental)](https://apify.com/scrapestorm/youtube-channel-scraper)
- [🌐 Youtube Shorts Scraper 📺 (Rental)](https://apify.com/scrapestorm/youtube-shorts-scraper-rental---fast-cheap)
- [Facebook Ads Library Scraper 🎯📈](https://apify.com/scrapestorm/facebook-ads-library-scraper)
- [Facebook Likes Scraper (Fast & Cheap) 👍 🌟](https://apify.com/scrapestorm/facebook-likes-scraper-fast-cheap)
- [Facebook Followers & Following Scraper 📊👥](https://apify.com/scrapestorm/facebook-followers-following-scraper)
- [Facebook Comments Scraper (All-in-One) 💬](https://apify.com/scrapestorm/facebook-comments-scraper-all-in-one)
- [YouTube Transcript Video Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-videos)
- [Youtube Playlist Scraper 🎵 - Rental (Fast & cheap)](https://apify.com/scrapestorm/youtube-playlist-scraper---rental-fast-cheap)

***

### ✏️ Input Schema Example

```
{
  "startUrls": [
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-Mumbai?cityName=Mumbai&page=1&category=S&multiLang=en"
  ],
  "maxItemsPerUrl": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

The old input format (`bulkUrls` text, `urls`, `maxItems`, `max_items`…) is still accepted.

### 📤 Output Example

Fictitious example showing every field:

```
{
  "agentId": "12345678",
  "agentName": "Example Agent",
  "companyName": "Example Properties",
  "profileUrl": "https://www.magicbricks.com/top-agent-details/company-example-properties-in-new-delhi-agentid-4d423132333435363738",
  "address": "Example Properties, Example Nagar, New Delhi",
  "locality": "Example Nagar",
  "city": "New Delhi",
  "cityId": "2624",
  "operatingSince": 2010,
  "yearsInBusiness": 16,
  "propertiesForSale": 48,
  "propertiesForRent": 12,
  "totalListings": 60,
  "dealsClosed": 500,
  "teamMembers": 10,
  "otherStats": [
    "N/A"
  ],
  "dealsIn": [
    "Rent/Lease",
    "Resale"
  ],
  "operatesIn": [
    "Example Nagar",
    "Sector 5 Dwarka"
  ],
  "about": "Example Properties is a real estate agency…",
  "tags": [
    "Trusted by Many Users"
  ],
  "isPreferred": true,
  "photoUrl": "https://img.staticmb.com/mbimages/topagent/example.jpg",
  "logoUrl": "https://img.staticmb.com/mbimages/user/Photo_h75_w75/example.jpg",
  "searchUrl": "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
  "searchCity": "New Delhi",
  "searchCategory": "S",
  "page": 1,
  "position": 1,
  "source": "html",
  "scrapedAt": "2026-11-23T12:00:00+00:00"
}
```

### 📊 Dataset Views

- **Overview**: photo, agent, company, location, operating since, listings, deals, preferred
- **Listings & deals**: listings for sale / rent, deals closed, team, years in business
- **Deal types & areas**: deal types, operating areas, locality, city
- **Profiles**: photo, logo, description, badges
- **All fields**: every column

The `SUMMARY` record (key-value store) gives the number of agents and the status of each URL.

### 📫 Support

😊 Leave us a 5-star rating ⭐⭐⭐⭐⭐ if you're satisfied with the scraper

🌍 For any questions, specific needs, or issues, reach out through Apify's platform or via email - [Storm_Scraper 🌪️🌩️](https://apify.com/scrapestorm)

This actor is not affiliated with, endorsed by, or sponsored by MagicBricks or Magicbricks Realty Services Limited.

# Actor input Schema

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

MagicBricks 'Top Agents' URLs, one per line (…/Real-estate-property-top-agents/agent-in-<City>?…). Open the Agents tab of a MagicBricks search, set your filters and paste the URL: all filters are kept. Use 'Bulk edit' to paste many at once. A plain city name (e.g. Mumbai) lists the agents of that city.

## `maxItemsPerUrl` (type: `integer`):

Maximum number of agents collected for each URL. 0 = no limit (the whole list). For large numbers, increase the run Timeout.

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

RESIDENTIAL proxy in India recommended (MagicBricks is an Indian website).

## Actor input object example

```json
{
  "startUrls": [
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-Mumbai?cityName=Mumbai&page=1&category=S&multiLang=en"
  ],
  "maxItemsPerUrl": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

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

No description

## `activity` (type: `string`):

No description

## `areas` (type: `string`):

No description

## `profiles` (type: `string`):

No description

## `all_fields` (type: `string`):

No description

## `summary` (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 = {
    "startUrls": [
        "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
        "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-Mumbai?cityName=Mumbai&page=1&category=S&multiLang=en"
    ],
    "maxItemsPerUrl": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "IN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("contactminerlabs/magicbricks-agents-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 = {
    "startUrls": [
        "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
        "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-Mumbai?cityName=Mumbai&page=1&category=S&multiLang=en",
    ],
    "maxItemsPerUrl": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "IN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("contactminerlabs/magicbricks-agents-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 '{
  "startUrls": [
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-New%20Delhi?&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment,Residential-House,Villa&cityName=New-Delhi&bedrooms=11701,11702&postedSince=-1&mbTrackSrc=tabChange&isNRI=Y&page=1&category=S&multiLang=en",
    "https://www.magicbricks.com/Real-estate-property-top-agents/agent-in-Mumbai?cityName=Mumbai&page=1&category=S&multiLang=en"
  ],
  "maxItemsPerUrl": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}' |
apify call contactminerlabs/magicbricks-agents-scraper --silent --output-dataset

```

## MCP server setup

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