# Lamudi Scraper — Mexico Real Estate Listings (`fabrikit/lamudi-scraper`) Actor

Scrape Lamudi Mexico (lamudi.com.mx) property listings: price MXN/USD, m², bedrooms, bathrooms, parking, colonia, city, state, GPS, agency, photos, description. Filter by sale/rent, type, location, price, area. From US$2.00 per 1,000 properties.

- **URL**: https://apify.com/fabrikit/lamudi-scraper.md
- **Developed by:** [Fabrikit](https://apify.com/fabrikit) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 property results

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/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

## Lamudi Scraper — Mexico Real Estate Listings

Scrape property listings from **Lamudi Mexico (lamudi.com.mx)** — one of the biggest real-estate portals in Mexico — into clean, analysis-ready JSON, CSV or Excel. Search by **sale or rent**, **property type**, **location** (state, city, municipality or colonia), **price range**, **bedrooms**, **bathrooms**, **area** and **publication date**, or paste any Lamudi search URL. Each property comes with price and currency (MXN or USD), m², bedrooms, bathrooms, parking spaces, colonia / city / state, GPS coordinates, the agency or developer name, photos and the full description.

Need more? Switch on the **detail add-on** and every listing also gets its publication date, the full photo gallery, the complete amenities list, the **monthly maintenance fee (cuota de mantenimiento)**, built vs land area, construction year, condition and floor.

**Why this Actor**

- **Covers the whole portal, not just page 1.** Lamudi stops showing results after 5,000 per search. When you ask for more, the Actor automatically splits the search into price bands, so a full state like Jalisco or Ciudad de México can be exported in one run.
- **Structured, typed fields.** Prices and areas are numbers, coordinates are decimals, dates are ISO, amenities are arrays — no text cleaning needed.
- **New developments too.** Turn on *New developments only* to get developer projects (desarrollos / preventa) with price-from, bedroom and bathroom ranges, construction status, developer name and unit types.
- **Privacy-safe by design.** Agency and developer names are returned only when the publisher is a business; names of individual brokers or owners are never output, and phone numbers, e-mails and WhatsApp links inside descriptions are masked.
- **Built to keep working.** Lamudi blocks cloud IPs and rate-limits busy IPs with a security check. The Actor rotates IPs, falls back to Mexican residential proxy only when needed and steps back down to the cheaper proxy as soon as it works again.

### How to scrape Lamudi

1. Choose **Operation** (for sale / for rent), **Property type** and **Location** (e.g. `Ciudad de México`, `Zapopan`, `Polanco, Miguel Hidalgo`, `Mérida`).
2. Optionally set price, bedrooms, bathrooms, area, *published within* and sort order.
3. Set **Max properties** and decide whether you want the **detail add-on**.
4. Click **Start**. Download the results as JSON, CSV, Excel or via API.

Prefer to filter on the website? Copy the URL of any Lamudi results page (or of single listings) into **Direct URLs** — all filters in the URL are kept.

#### Example input

```json
{
    "operation": "rent",
    "propertyType": "departamento",
    "location": "Polanco, Miguel Hidalgo",
    "priceMax": 60000,
    "bedroomsMin": 2,
    "sort": "newest",
    "maxItems": 200,
    "fetchDetails": true
}
```

Direct URLs instead of filters:

```json
{
    "startUrls": [
        { "url": "https://www.lamudi.com.mx/jalisco/zapopan/casa/for-sale/?bedrooms=3%2C4%2C5" },
        { "url": "https://www.lamudi.com.mx/detalle/41032-73-3c4ebb926776-5e21-1a11154-b1d4-79dc" }
    ],
    "maxItems": 500
}
```

#### Input fields

| Field | Description |
|---|---|
| `operation` | `sale` or `rent` (rent prices are monthly). |
| `propertyType` | `departamento`, `casa`, `terreno`, `oficina`, `comercial` (each includes its sub-types) or a sub-type: `penthouse`, `loft`, `estudio`, `duplex`, `casa-en-condominio`, `casa-en-fraccionamiento`, `lote-terreno`, `rancho`, `bodega`, `local`, `edificio`, `consultorio`; `any` for everything. |
| `location` | State, city/municipality or colonia (add the city after a comma to disambiguate), or a URL slug like `jalisco/zapopan`. Empty = all of Mexico. |
| `priceMin` / `priceMax` / `priceCurrency` | Price range in MXN or USD (0 = open). |
| `bedroomsMin`, `bathroomsMin` | Minimum recámaras / baños (5 = 5+). |
| `areaMinM2` / `areaMaxM2` | Surface range in m². |
| `newDevelopmentsOnly` | Return developer projects instead of individual listings. |
| `postedWithinDays` | `1`, `7`, `30` or `any`. |
| `sort` | `relevance`, `newest`, `price_asc`, `price_desc`. |
| `startUrls` | Lamudi search or listing URLs (overrides the filters). |
| `maxItems` | Maximum number of properties (default 50). |
| `fetchDetails` | Detail add-on (one extra page per property). |
| `splitByPrice` | Split searches with more than 5,000 results into price bands (default on). |
| `proxyConfiguration` | Apify Proxy by default; residential fallback is automatic. |

### Output

One dataset item per property. Example (real listing, detail add-on on, shortened):

```json
{
    "id": "41032-73-3c4ebb926776-5e21-1a11154-b1d4-79dc",
    "url": "https://www.lamudi.com.mx/detalle/41032-73-3c4ebb926776-5e21-1a11154-b1d4-79dc",
    "listingType": "listing",
    "title": "Departamento en Venta en Obrera",
    "headline": "Depa en venta frente a Cintermex, amueblado y listo para rentar PUNTACERO",
    "operation": "sale",
    "propertyType": "Departamento",
    "price": 5700000,
    "currency": "MXN",
    "priceIsFrom": false,
    "maintenanceFee": 2800,
    "maintenanceFeeCurrency": "MXN",
    "areaM2": 62,
    "builtAreaM2": 62,
    "landAreaM2": null,
    "bedrooms": 1,
    "bathrooms": 1,
    "halfBathrooms": null,
    "parkingSpaces": 1,
    "address": "Puntacero, Avenida Fundidora entre Cintermex y Pabellón Ciudadano, Centro, Monterrey, Nuevo León, México",
    "neighborhood": "Obrera",
    "city": "Monterrey",
    "state": "Nuevo León",
    "country": "MX",
    "latitude": 25.6760572,
    "longitude": -100.2902868,
    "exactLocation": true,
    "agencyName": "Landing Point Estudio Inmobiliario",
    "agencyProfileUrl": "https://www.lamudi.com.mx/inmobiliaria/41032-73-2c382ddf42ef-e17b-aad56df-812b-4295",
    "isNewDevelopment": true,
    "isFeatured": true,
    "photoCount": 23,
    "photos": ["https://img.lamudi.com.mx/eyJidWNrZXQiOi…", "…"],
    "publishedAt": "2026-10-06",
    "updatedAt": "2026-10-06",
    "description": "Invierte tu dinero, no tu tiempo. Este departamento en Torre Puntacero se entrega amueblado y equipado…",
    "amenities": ["Seguridad", "Estacionamiento", "Alberca", "Gimnasio", "Cocina equipada", "Completamente amueblado"],
    "constructionYear": null,
    "condition": "Nuevo",
    "floor": null,
    "detailsFetched": true,
    "searchUrl": "https://www.lamudi.com.mx/nuevo-leon/monterrey/departamento/for-sale/",
    "scrapedAt": "2026-10-12T18:20:52.073Z"
}
```

#### Field reference

| Field | Search card | Detail add-on |
|---|---|---|
| `id`, `url`, `title`, `operation`, `propertyType`, `listingType` | ✓ | ✓ |
| `price`, `currency`, `priceIsFrom` | ✓ | ✓ |
| `areaM2` (headline surface), `bedrooms`, `bathrooms`, `parkingSpaces` | ✓ | ✓ |
| `address`, `neighborhood`, `city`, `state`, `latitude`, `longitude`, `exactLocation` | ✓ | ✓ |
| `agencyName` (businesses only), `isFeatured`, `photoCount`, `description` | ✓ | ✓ |
| `isNewDevelopment`, `developmentStatus`, `developmentUnits`, `areaM2Max`, `bedroomsMax`, `bathroomsMax` | ✓ (developments) | ✓ |
| `photos` | first photo | full gallery (original size) |
| `amenities` | main amenity | full list |
| `headline`, `publishedAt`, `updatedAt`, `maintenanceFee`, `builtAreaM2`, `landAreaM2`, `halfBathrooms`, `constructionYear`, `condition`, `floor`, `agencyProfileUrl` | – | ✓ |

Every field is always present (`null` when Lamudi does not show it), so CSV columns stay stable. A `SUMMARY` record in the key-value store lists the resolved search URL, counts, price bands used, proxy tiers used and any errors.

### Pricing

Pay per result — you only pay for properties saved to your dataset.

| Event | Price | When it is charged |
|---|---|---|
| `property-result` | **US$2.00 per 1,000** (US$0.002 each) | Every property saved to the dataset. |
| `property-details` | **US$3.00 per 1,000** (US$0.003 each) | Only with the detail add-on (or direct listing URLs): each property whose detail page was fetched. |
| Actor start | US$0.00005 per run | Once per run (per GB of memory). |

Examples: 1,000 search results = **US$2.00**; 1,000 properties with full details = **US$5.00**. Set a *maximum cost per run* in Apify and the Actor stops cleanly when it is reached — it never hands out more items than your limit allows.

### Use cases

- **Price monitoring and market reports** — median price per m² by colonia, city or state, sale vs rent yields.
- **Lead generation for real-estate services** — find active agencies and developers per area (business names only).
- **Investment research** — screen new developments, maintenance fees and price drops over time with scheduled runs.
- **Proptech and data science** — feed valuation models with geocoded listings and amenities.
- **Competitive intelligence for agencies** — track inventory, new listings and featured listings in your market.

### FAQ

**How many properties can I get?** As many as Lamudi lists for your filters. Searches above 5,000 results are split into price bands automatically (listings without a published price cannot be reached in split mode). The hard cap per run is 100,000.

**How fresh is the data?** It is read live from lamudi.com.mx at run time. Use `sort: newest` with a schedule for daily monitoring.

**Why are some agency names empty?** Lamudi lists both companies and individual brokers. To respect privacy rules the Actor only outputs names that clearly belong to a business (inmobiliaria, desarrolladora, real estate, S.A. de C.V., brand names…). Individual people's names, phones and e-mails are never returned.

**Do I need a proxy?** No setup needed: the default Apify Proxy works, and the Actor switches to Mexican residential IPs by itself only when Lamudi blocks the cheaper ones.

**Which currencies?** Prices are returned exactly as published (MXN or USD) with the `currency` field; nothing is converted.

**Can I scrape a single listing?** Yes — put its `/detalle/` or `/desarrollo/` URL in **Direct URLs**.

**Is it legal?** The Actor only collects publicly visible listing information, without login, and excludes personal data of private individuals. Make sure your use of the data complies with Lamudi's terms and the laws that apply to you.

### Integrations

Results are available through the Apify API, webhooks, Zapier, Make, Google Sheets, Airbyte and every other Apify integration. Schedule the Actor to build a daily price history.

### En español

**Lamudi Scraper** extrae avisos inmobiliarios de **lamudi.com.mx** (México): precio en MXN o USD, m², recámaras, baños, estacionamientos, colonia, municipio, estado, coordenadas GPS, inmobiliaria o desarrolladora, fotos y descripción. Filtra por venta o renta, tipo de propiedad, ubicación, rango de precio, recámaras, baños, superficie y fecha de publicación, o pega directamente una URL de búsqueda de Lamudi. Con el complemento de detalle obtienes también fecha de publicación, galería completa, amenidades, **cuota de mantenimiento**, superficie construida y de terreno, año de construcción, estado y piso. Las búsquedas de más de 5.000 resultados se dividen automáticamente por rangos de precio. Solo se publican nombres de empresas (nunca de personas) y se ocultan teléfonos y correos en los textos. Precio: **US$2 por 1.000 propiedades** y **US$3 por 1.000** detalles adicionales.

# Actor input Schema

## `operation` (type: `string`):

Listings for sale (Venta) or for rent (Renta).

## `propertyType` (type: `string`):

Main groups (departamento, casa, terreno, oficina, comercial) include all their sub-types. Pick a sub-type to narrow the search.

## `location` (type: `string`):

State, city/municipality or colonia as written on lamudi.com.mx — e.g. `Ciudad de México`, `Jalisco`, `Zapopan`, `Polanco, Miguel Hidalgo`, `Mérida`. Add the city after a comma to disambiguate colonias. You can also paste a URL slug such as `jalisco/zapopan` or `distrito-federal/miguel-hidalgo/polanco-7`. Leave empty for all of Mexico.

## `priceMin` (type: `integer`):

Lower price bound in the currency below (0 = no minimum). Rent prices are monthly.

## `priceMax` (type: `integer`):

Upper price bound in the currency below (0 = no maximum).

## `priceCurrency` (type: `string`):

Currency used by the price filter (the site converts listings priced in the other currency).

## `bedroomsMin` (type: `integer`):

0 = any. 5 means 5 or more.

## `bathroomsMin` (type: `integer`):

0 = any. 5 means 5 or more.

## `areaMinM2` (type: `integer`):

0 = no minimum.

## `areaMaxM2` (type: `integer`):

0 = no maximum.

## `newDevelopmentsOnly` (type: `boolean`):

Return developer projects (desarrollos / preventa) instead of individual listings. Each project comes with its price-from, bedroom/bathroom ranges, construction status, developer and the unit types shown on the card.

## `postedWithinDays` (type: `string`):

Only listings published in the last day, week or month.

## `sort` (type: `string`):

`relevance` is the site default (promoted listings first). Use `newest` for monitoring pipelines.

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

Lamudi search result URLs (any page of lamudi.com.mx ending in /for-sale/ or /for-rent/, with or without filters) and/or listing URLs (/detalle/… or /desarrollo/…). When set, the filter fields above are ignored. Listing URLs are always fetched in full (billed as result + details).

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

Stop after this many properties. Lamudi shows at most 5,000 results per search; bigger runs are split into price bands automatically (see below).

## `fetchDetails` (type: `boolean`):

Visit each listing page (1 extra request per property) to add: publication and update dates, the full photo gallery, the complete amenities list, maintenance fee, built vs land area, construction year, condition, floor, half bathrooms, the publisher's own headline and the agency profile link. Billed as an extra `property-details` event per property.

## `splitByPrice` (type: `boolean`):

When a search has more than 5,000 results and you ask for more than that, run it as several price bands so you are not stuck at the site's 5,000-result limit. Listings without a published price are not reachable in split mode.

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

Lamudi rejects requests from cloud/datacenter IP ranges that look automated, so the Actor uses Apify Proxy by default. If the site still answers with its security-verification page, the Actor automatically switches to Mexican RESIDENTIAL proxy for the rest of the run (see the SUMMARY record for the tier used).

## Actor input object example

```json
{
  "operation": "sale",
  "propertyType": "departamento",
  "location": "Ciudad de México",
  "priceMin": 0,
  "priceMax": 0,
  "priceCurrency": "MXN",
  "bedroomsMin": 0,
  "bathroomsMin": 0,
  "areaMinM2": 0,
  "areaMaxM2": 0,
  "newDevelopmentsOnly": false,
  "postedWithinDays": "any",
  "sort": "relevance",
  "maxItems": 50,
  "fetchDetails": false,
  "splitByPrice": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `properties` (type: `string`):

All property listings collected during the run

## `summary` (type: `string`):

Counts, resolved search URL, proxy tier used and errors

# 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 = {
    "operation": "sale",
    "propertyType": "departamento",
    "location": "Ciudad de México",
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/lamudi-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 = {
    "operation": "sale",
    "propertyType": "departamento",
    "location": "Ciudad de México",
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/lamudi-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 '{
  "operation": "sale",
  "propertyType": "departamento",
  "location": "Ciudad de México",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fabrikit/lamudi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fabrikit/lamudi-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/XZmKgpUa5twNTfeKW/builds/mN4LrTqOypzKkJgZg/openapi.json
