# Mercado Libre Real Estate Scraper - Inmuebles MX AR CO CL UY (`gangary/mercado-libre-real-estate-scraper`) Actor

Scrape property listings from Mercado Libre Inmuebles (Mexico, Argentina, Colombia, Uruguay) and Portal Inmobiliario (Chile): price, currency, bedrooms, bathrooms, m², location, seller, sale or rent, new developments. Paste any search URL.

- **URL**: https://apify.com/gangary/mercado-libre-real-estate-scraper.md
- **Developed by:** [Gangary](https://apify.com/gangary) (community)
- **Categories:** Real estate, 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 listing scrapeds

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

![mercado-libre-real-estate-scraper](https://api.apify.com/v2/key-value-stores/OyVv4PDUM8I4otx0e/records/mercado-libre-real-estate-scraper.png)

## Mercado Libre Real Estate Scraper: Inmuebles MX, AR, CO, UY + Portal Inmobiliario CL | $2/1K

**US$2 per 1,000 listings + US$0.02 per run. Residential proxies of each country and retries are included; blocked pages are never charged.**

Scrape property listings from **Mercado Libre Inmuebles** (Mexico, Argentina, Colombia, Uruguay) and **Portal Inmobiliario** (Chile, part of Mercado Libre) and get one clean row per listing: **price and currency, bedrooms, bathrooms, rooms (ambientes), m², location, seller / real-estate agency, sale or rent, property type and new-development flag**.

- **Paste any search URL** after applying the filters you want on the site (city, neighborhood, price range, bedrooms…), up to 20 URLs per run, any mix of countries.
- **Or pick from a menu:** country + sale/rent + apartments, houses, land, offices or commercial, for the whole country.
- **Up to 5,000 listings per run**, following the site's pagination (48 listings per page, up to ~2,000 per search, which is what the site shows).
- Ranges are split into numbers: "1 a 3 dormitorios" → `bedrooms: 1`, `bedroomsMax: 3`; "37 - 53 m² construidos" → `areaM2: 37`, `areaM2Max: 53`.

**En español:** extrae avisos de inmuebles de **Mercado Libre** (México, Argentina, Colombia, Uruguay) y de **Portal Inmobiliario** (Chile): precio y moneda, dormitorios/recámaras/habitaciones, baños, ambientes, m², ubicación, inmobiliaria, venta o alquiler/arriendo, tipo de propiedad y si es un desarrollo nuevo. Pega la URL de la búsqueda con tus filtros (ciudad, barrio, precio) o elige país, operación y tipo. Hasta 5.000 avisos por ejecución, con proxy residencial del país incluido. Cuesta US$2 por 1.000 avisos más US$0,02 por ejecución; las páginas bloqueadas no se cobran.

### What you get

One row per listing, real output from a Colombia rent search:

```json
{
  "position": 1,
  "itemId": "MCO4632526848",
  "title": "Alquiler Apartamento Amoblado Temporal Bogotá Días, Semanas",
  "url": "https://apartamento.mercadolibre.com.co/MCO-4632526848-alquiler-apartamento-amoblado-temporal-bogota-dias-semanas-_JM",
  "operation": "rent",
  "propertyType": "apartments",
  "isDevelopment": false,
  "headline": "Apartamento en arriendo",
  "price": 50000,
  "currency": "COP",
  "pricePrefix": null,
  "bedrooms": 2,
  "bedroomsMax": 2,
  "rooms": null,
  "roomsMax": null,
  "bathrooms": 1,
  "bathroomsMax": 1,
  "areaM2": 70,
  "areaM2Max": 70,
  "areaType": "cubiertos",
  "attributes": ["2 habitaciones", "1 baño", "70 m² cubiertos"],
  "location": "Carrera 68g #63c-11, Bogotá, Colombia, Bosque Popular, Engativa, Bogotá D.C.",
  "sellerName": null,
  "isOfficialStore": false,
  "possessionDate": null,
  "availableUnits": null,
  "isAd": false,
  "categoryId": "MCO1473",
  "domainId": "MCO-APARTMENTS_FOR_RENT",
  "thumbnail": "https://http2.mlstatic.com/D_NQ_NP_751700-MCO52231399816_112022-O.webp",
  "country": "CO",
  "searchUrl": "https://listado.mercadolibre.com.co/inmuebles/apartamentos/arriendo/",
  "scrapedAt": "2026-11-21T06:35:33.338Z"
}
```

| Field | Meaning |
|---|---|
| `operation` / `propertyType` / `isDevelopment` | `sale`, `rent` or `temporary-rent`; type (`apartments`, `houses`, `lands`…); `true` for new developments sold off-plan |
| `price` / `currency` / `pricePrefix` | Price as shown, in the listing's currency (MXN, ARS, USD, COP, UYU, CLP or CLF = Chilean UF); `pricePrefix` is "Desde" on developments (price "from") |
| `bedrooms` / `bedroomsMax` | Bedrooms (recámaras, dormitorios, habitaciones); 0 for studios / monoambientes; min and max on developments with several units |
| `rooms` / `roomsMax` | Rooms ("ambientes"), used in Argentina instead of bedrooms |
| `bathrooms` / `bathroomsMax` | Bathrooms |
| `areaM2` / `areaM2Max` / `areaType` | Area in m² and its kind as written on the card (`construidos`, `cubiertos`, `útiles`, `totales`) |
| `attributes` | The raw attribute texts of the card, in case you want your own parsing |
| `location` | Address / neighborhood / city text of the card |
| `sellerName` / `isOfficialStore` | Real-estate agency or developer, when the card shows it |
| `possessionDate` / `availableUnits` | Developments only: delivery stage ("Venta en blanco", "En construcción"…) and units available |
| `url` / `itemId` / `searchUrl` | Listing link and ID, and the search it came from |
| `error` | Set only on failed searches — those rows are **not charged** |

### Use cases

- **Price per m² research:** pull every apartment for sale in a city and compute price per m² by neighborhood.
- **Rental market monitoring:** schedule the same rent searches weekly and track supply and asking rents.
- **Lead lists for agencies and developers:** see which agencies and developers publish the most in each area.
- **Investment screening:** compare new developments ("Desde" prices, delivery stage, units left) across Mexico City, Buenos Aires, Bogotá, Santiago and Montevideo.

### How to use it

1. Open Mercado Libre Inmuebles or Portal Inmobiliario in your browser, search and apply your filters (location, price, bedrooms…), then copy the URL of the results page into **Search URLs**. Add up to 20.
2. No URL? Pick **Country**, **Operation** and **Property type** and the actor searches the whole country.
3. Set **Max listings** (default 100, up to 5,000) — the total across all URLs.

| Input | Type | Default | Notes |
|---|---|---|---|
| `startUrls` | array of URLs | — | `inmuebles.mercadolibre.com.mx`, `.com.ar`, `.com.co`, `.com.uy`, `listado.mercadolibre.*` real-estate pages, `www.portalinmobiliario.com`. Other links are skipped and listed in the log |
| `country` | `MX`, `AR`, `CO`, `CL`, `UY` | `MX` | Only when `startUrls` is empty (Chile = Portal Inmobiliario) |
| `operation` | `sale` or `rent` | `sale` | Only when `startUrls` is empty |
| `propertyType` | `apartment`, `house`, `land`, `office`, `commercial` | `apartment` | Only when `startUrls` is empty |
| `maxItems` | integer | 100 | 1 to 5,000, total across all searches |

### Pricing

Pay per event: a small start fee opens the residential session, then a flat fee per **listing delivered**. Blocked pages, failures and skipped URLs are **never charged**, the same listing is never delivered twice in a run, and every run respects the `maxTotalChargeUsd` budget you set on Apify.

| Scenario | Approximate cost |
|---|---|
| 100 listings (1 run) | ~US$ 0.22 |
| 1,000 listings (1 run) | ~US$ 2.02 |
| 10,000 listings (2 runs) | ~US$ 20.04 |

**Run cost limit.** If a run keeps costing more than the results it delivers (for example a long streak of blocked or empty pages), it stops opening new pages: the searches not finished come back as rows with `error: "run-cost-limit"` and are **not charged**. Normal runs are not affected.

### Run it from code

Replace `<YOUR_APIFY_TOKEN>` with your token from **Apify Console → Settings → API & Integrations**.

**cURL:**

```bash
curl -X POST "https://api.apify.com/v2/acts/gangary~mercado-libre-real-estate-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://inmuebles.mercadolibre.com.mx/departamentos/venta/"], "maxItems": 100}'
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("gangary~mercado-libre-real-estate-scraper").call(
    run_input={"country": "AR", "operation": "rent", "propertyType": "apartment", "maxItems": 500}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("price"), item.get("currency"), item.get("areaM2"), item.get("location"))
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('gangary~mercado-libre-real-estate-scraper').call({
    startUrls: ['https://www.portalinmobiliario.com/venta/departamento/providencia-metropolitana'],
    maxItems: 1000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

For runs of thousands of listings, start the run asynchronously and read the dataset when it finishes (the synchronous endpoint waits up to 300 seconds).

### Integrations

- **[Schedules](https://docs.apify.com/platform/schedules):** repeat the same searches every day or week to follow prices and supply.
- **[Webhooks](https://docs.apify.com/platform/integrations/webhooks):** get a call to your own endpoint when a run finishes.
- **[Make](https://docs.apify.com/platform/integrations/make), [n8n](https://docs.apify.com/platform/integrations/n8n) and [Zapier](https://docs.apify.com/platform/integrations/zapier):** send each run's rows to Google Sheets, a CRM or a database.
- **Exports:** JSON, CSV, Excel, XML or HTML from the dataset, or straight from the API.

### Use with AI agents (MCP)

Add this server URL to Claude, Cursor, VS Code or any MCP client (OAuth on first use, or `Authorization: Bearer <YOUR_APIFY_TOKEN>`):

```
https://mcp.apify.com?tools=gangary/mercado-libre-real-estate-scraper
```

Then ask, e.g. *"Get 500 apartments for rent in Providencia from Portal Inmobiliario and give me the median price per m²."* Setup details: **[Apify MCP server docs](https://docs.apify.com/platform/integrations/mcp)**.

### FAQ

**Is it legal?**
The actor reads publicly listed search results — no login, no paywall bypass. Agency names are the public names shown on each card; no private contact data is collected.

**Why do some fields come back `null`?**
Each card shows only what the advertiser filled in. Land and commercial listings often have no bedrooms; private owners have no agency name.

**Why do developments have two numbers?**
A new development groups several units, so the card shows ranges ("1 a 3 dormitorios", "37 - 53 m²"). You get the minimum in `bedrooms` / `areaM2` and the maximum in `bedroomsMax` / `areaM2Max`; `price` is the "from" price.

**What is the CLF currency in Chile?**
Unidad de Fomento (UF), the inflation-indexed unit in which most Chilean property is priced. Rents are usually in CLP.

**Why do some searches stop around 2,000 listings?**
The site itself shows at most 42 pages per search. Split big areas into several URLs (by neighborhood or price range) to go further.

**Is proxy included?**
Yes — residential proxies of the country of each URL are included in the per-listing price.

**Why do some pages come back `blocked`?**
Mercado Libre runs anti-bot protection. When a session is blocked the actor opens a fresh residential IP and tries the same page again, with up to 3 sessions per page. If it still fails, the search stops there: what it already delivered is kept, an error row (`blocked`, or `blocked-partial` when earlier pages worked) is added, and the failed page is not charged.

### Honest limitations

- Data comes from the search result cards. Exact coordinates, the full description, condo fees and the photo gallery live on each listing page and are not included in this version.
- Up to 20 search URLs and 5,000 listings per run; for more, schedule several runs.
- Peru and the other Mercado Libre countries are not supported for real estate yet.

### Changelog

- **2026-11-21:** first release — Mexico, Argentina, Colombia, Uruguay and Portal Inmobiliario (Chile).

### From the same maker

- **[Mercado Libre Scraper — Mexico, Argentina, Colombia, Chile](https://apify.com/gangary/mercado-libre-search-scraper)** — product search with prices and sales data.
- **[Mercado Libre Best Sellers Scraper](https://apify.com/gangary/mercado-libre-best-sellers-scraper)** — "Más Vendidos" rankings and daily deals in 6 countries.
- **[Zap Imóveis Scraper](https://apify.com/gangary/zap-imoveis-scraper)** — Brazilian property listings from Zap Imóveis.
- **[VivaReal Scraper](https://apify.com/gangary/vivareal-scraper)** — Brazilian property listings from VivaReal.

***

If this actor helped you, a rating on its Store page helps others find it. Something broke or a field is missing? Open an issue on the actor's **Issues** tab.

*Keywords: mercado libre real estate scraper, mercado libre inmuebles scraper, portal inmobiliario scraper, departamentos en venta, casas en renta méxico, alquiler departamentos argentina, arriendo apartamentos colombia, propiedades chile, inmuebles uruguay, real estate data latin america, precio por m2.*

# Actor input Schema

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

Search result pages copied from the browser after applying your filters (city, neighborhood, price, bedrooms…). Accepted: inmuebles.mercadolibre.com.mx / .com.ar / .com.co / .com.uy, listado.mercadolibre.\* real-estate pages and www.portalinmobiliario.com. Up to 20 URLs, any mix of countries. Leave empty to use Country + Operation + Property type below.

## `country` (type: `string`):

Used only when Search URLs is empty: the whole country search for the chosen operation and property type.

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

Used only when Search URLs is empty.

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

Used only when Search URLs is empty.

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

Maximum number of listings to deliver in total across all search URLs. The site itself shows up to ~2,000 listings (42 pages) per search.

## Actor input object example

```json
{
  "startUrls": [
    "https://inmuebles.mercadolibre.com.mx/departamentos/venta/"
  ],
  "country": "MX",
  "operation": "sale",
  "propertyType": "apartment",
  "maxItems": 100
}
```

# 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 = {
    "startUrls": [
        "https://inmuebles.mercadolibre.com.mx/departamentos/venta/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gangary/mercado-libre-real-estate-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://inmuebles.mercadolibre.com.mx/departamentos/venta/"] }

# Run the Actor and wait for it to finish
run = client.actor("gangary/mercado-libre-real-estate-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://inmuebles.mercadolibre.com.mx/departamentos/venta/"
  ]
}' |
apify call gangary/mercado-libre-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gangary/mercado-libre-real-estate-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/QWm7kWirbPzWiDd3Q/builds/HCYoprqjZi8WWMvFP/openapi.json
