# Metrocuadrado Scraper — Colombia Real Estate Listings (`blackfalcondata/metrocuadrado-scraper`) Actor

Scrape Metrocuadrado property listings across Colombia with full pricing, price-per-m², area, rooms, stratum, photos, GPS, nearby places, agent phone & WhatsApp, multi-city & neighborhood filtering, price/area filters, and incremental NEW/UPDATED/EXPIRED tracking.

- **URL**: https://apify.com/blackfalcondata/metrocuadrado-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### What does Metrocuadrado Scraper do?

Metrocuadrado Scraper extracts structured property listings from metrocuadrado.com across Colombia — price, price-per-m², area, rooms, stratum, photos, GPS, and agent contact (phone & WhatsApp). Filter by city, neighborhood, price, area, or a precise lat/long radius, paste any Metrocuadrado search URL, and run incrementally to capture only new or changed listings. An optional Agencies mode aggregates the companies behind the listings for lead generation.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctarich)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

<!-- KEY_FEATURES:START -->
- **💵 Structured pricing** — full sale or rental price plus a computed price-per-square-metre for every listing, so you can rank and compare value across a market instantly.
- **📞 Phone & WhatsApp contact** — every listing carries the advertiser's phone number, WhatsApp number, and the owner type (builder, agency, or owner) — structured fields, not text-mined.
- **♻️ Incremental mode** — recurring runs emit and charge only for listings that are new or whose tracked content changed. First run builds the baseline; subsequent runs emit only NEW / UPDATED / REAPPEARED records (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🔔 Notifications** — Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **🔗 Paste-mode** — build the search you want on metrocuadrado.com, copy the result-page URL, and paste it — each URL's operation, property type, city and neighborhood are read from the URL. Add several; results are merged and deduplicated by listing id.
- **📦 Compact mode** — AI-agent and MCP-friendly payloads with core fields only.
- **🧹 Empty-field stripping** — drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.
- **📤 Export anywhere** — Download the dataset as JSON, CSV, or Excel from the Apify Console, or stream live via the Apify API and integrations (Make, Zapier, Google Sheets, n8n, …).
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
<!-- KEY_FEATURES:END -->

### What data can you extract from Metrocuadrado?

Each result includes Core listing fields (`listingId`, `adId`, `url`, `portalUrl`, `title`, `operation`, `propertyType`, and `propertyState`, and more), detail fields when enrichment is enabled (`description`, `descriptionMarkdown`, and `descriptionLength`), contact information (`contactPhone` and `contactsCount`), and company metadata (`companyId`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

### Input

The main inputs are a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`operation`** — Sale or rental listings. (default: `"sale"`)
- **`propertyTypes`** — One or more property typologies. Each is scanned independently. (default: `["apartamento"]`)
- **`cities`** — City slug(s), e.g. "bogota", "medellin", "cali". Accents/spaces are normalized. Leave empty if you only use Start URLs.
- **`neighborhoods`** — Neighborhood slug(s) to narrow the search within the chosen cities, e.g. "chico", "el-poblado".
- **`startUrls`** — Paste Metrocuadrado search-result URLs (e.g. https://www.metrocuadrado.com/apartamentos/venta/bogota/chico/) to scrape those exact searches. Each URL's operation, property type, city and neighborhood are read from the URL; the filters below still apply.
- **`mode`** — Listings (default) or Agencies — aggregate the companies behind the listings (id, owner type, listing volume, contact phone, areas served) for lead generation. (default: `"listings"`)
- **`maxResults`** — Maximum records to return (0 = full coverage). In agencies mode this caps the number of companies. (default: `50`)
- **`minPrice`** — Minimum listing price.
- **`maxPrice`** — Maximum listing price.
- **`minAreaM2`** — Minimum floor area in square metres.
- **`maxAreaM2`** — Maximum floor area in square metres.
- **`rooms`** — Filter by number of bedrooms (any of the selected counts).
- **`bathrooms`** — Filter by number of bathrooms.
- **`garages`** — Filter by number of garages/parking spaces.
- **`stratum`** — Filter by socioeconomic stratum (1–6).
- **`propertyState`** — New or used.
- **`centerLat`** — Optional radius filter — center latitude (decimal, e.g. 4.6097 for Bogotá). Combine with Center Longitude + Radius to keep only listings within the radius.
- **`centerLng`** — Radius filter — center longitude (decimal, e.g. -74.0817).
- **`radiusKm`** — Keep only listings within this many kilometres of the center point. Requires Center Latitude + Center Longitude; listings without coordinates are kept.
- **`descriptionMaxLength`** — Truncate description to this many characters. 0 = no truncation. (default: `0`)
- **`compact`** — Output only core fields (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before output. Smaller, cleaner payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Track new/changed/expired listings across runs. Requires a State Key. (default: `false`)
- **`stateKey`** — Stable identifier for this tracking universe (e.g. "co-bogota-sale-apartamento").
- ...and 16 more parameters

### Input examples

**Apartments for sale in a city** — Search listings in one or more Colombian cities. Choose the operation (sale or rent) and one or more property types.

→ Listing records with price, price-per-m², size, rooms, stratum, neighborhood, GPS, photos, and contact phone/WhatsApp.

```json
{
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "maxResults": 100
}
````

**Houses for rent with a price ceiling** — Filter by operation, property type, city, and a maximum monthly rent.

→ Rental listings within the price band, each with area, rooms, stratum, and contact details.

```json
{
  "operation": "rent",
  "propertyTypes": [
    "casa"
  ],
  "cities": [
    "medellin"
  ],
  "maxPrice": 3000000,
  "maxResults": 200
}
```

**Listings within a radius of a point** — Set a centre (latitude, longitude) and a radius in km to keep only listings within that distance — e.g. near a workplace, school, or transit stop. Combine with the city and price/area filters.

→ Only listings within the radius of the centre — each carrying a `distanceKm` field so you can sort by proximity.

```json
{
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "centerLat": "4.6097",
  "centerLng": "-74.0817",
  "radiusKm": 3,
  "maxResults": 100
}
```

**Daily monitoring with filters** — Re-run on a schedule to capture only new and changed listings, restricted to the price range and stratum you care about.

→ Records tagged NEW / UPDATED / EXPIRED against the previous run, within the chosen filters.

```json
{
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "minPrice": 200000000,
  "maxPrice": 500000000,
  "stratum": [
    "4",
    "5"
  ],
  "incrementalMode": true,
  "stateKey": "co-bogota-sale-apartamento",
  "maxResults": 500
}
```

**Compact output for a neighborhood** — Return only the core listing fields for a smaller, faster export, narrowed to specific neighborhoods.

→ Core fields only (listing ID, URL, title, price, location) — ideal for large exports and AI pipelines.

```json
{
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "neighborhoods": [
    "chico"
  ],
  "compact": true,
  "maxResults": 100
}
```

**Paste a search URL** — Build the search you want on metrocuadrado.com, copy the result-page URL, and paste it. Each URL's operation, property type, city and neighborhood are read from the URL.

→ The listings from exactly that search, merged and deduplicated.

```json
{
  "startUrls": [
    "https://www.metrocuadrado.com/casas/arriendo/medellin/el-poblado/"
  ],
  "maxResults": 100
}
```

**Agencies / lead-gen mode** — Aggregate the companies behind the listings in a city — owner type, listing volume, a contact phone, and the areas they operate in.

→ One record per company (no company name is available from this source).

```json
{
  "mode": "agencies",
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "maxResults": 50
}
```

### Output

Each run produces a dataset of structured property records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example property record

```json
{
  "listingId": "319af0cc41f27d997fbfd760f6f9c64d4d396d214ed697edfce64dc83a61d97a",
  "adId": "1654-C0017-05",
  "url": "https://www.metrocuadrado.com/proyecto/caney-reservado-fontibon/1654-C0017-05",
  "portalUrl": "https://www.metrocuadrado.com/proyecto/caney-reservado-fontibon/1654-C0017-05",
  "title": "Apartamento en Venta, EL PORVENIR, Bogotá D.C.",
  "operation": "Venta",
  "propertyType": "Apartamento",
  "propertyState": "Nuevo",
  "category": "Tradicional",
  "housingType": "VIS",
  "projectName": "CANEY RESERVADO FONTIBON",
  "badge": "Proyecto de vivienda",
  "priceText": "COP 133.200.000",
  "price": 133200000,
  "priceCurrency": "COP",
  "pricePerM2": 3512658,
  "sizeM2": 37.92,
  "privateAreaM2": 33.36,
  "rooms": 2,
  "bathrooms": 1,
  "garages": 0,
  "stratum": 3,
  "hasElevator": false,
  "hasGarage": false,
  "gatedCommunity": false,
  "features": [
    "conTerrazaBalcon:Ninguno",
    " conZonaLavanderia:S",
    " nroBanos:1",
    " nroCuartos:2",
    " nroGarajes:0",
    " tipoCocina:Lineal",
    " tipoComedor:Sala-comedor",
    " tipoDeposito:0"
  ],
  "description": "El proyecto esta constituido por una torre de 17 pisos con 252 apartamentos con áreas desde 29 m2 hasta los 46.99 m2 .El proyecto será VIS. En zonas comunales habrá una portería con lobby de acceso, C...",
  "descriptionMarkdown": "El proyecto esta constituido por una torre de 17 pisos con 252 apartamentos con áreas desde 29 m2 hasta los 46.99 m2 .El proyecto será VIS. En zonas comunales habrá una portería con lobby de acceso, C...",
  "descriptionLength": 484,
  "neighborhood": "EL PORVENIR",
  "zone": "Occidental",
  "city": "Bogotá D.C.",
  "country": "CO",
  "latitude": 4.6890154,
  "longitude": -74.16353,
  "nearbyPlaces": [
    {
      "name": "Br. El Charco (av. Centenario - Kr 127)",
      "address": "sin dirección",
      "latitude": 4.689557,
      "longitude": -74.16333
    },
    {
      "name": "Fontibon Calle 13",
      "address": "ac 17 # 128 - 25",
      "latitude": 4.689962,
      "longitude": -74.16402
    },
    {
      "name": "Suárez",
      "address": "avenida calle 17",
      "latitude": 4.6904,
      "longitude": -74.1646
    },
    {
      "name": "Paisano 33",
      "address": "avenida carrera 129",
      "latitude": 4.6935267,
      "longitude": -74.16084
    },
    {
      "name": "Hospital Fontibón Upa 48 San Pablo",
      "address": "calle 18a 122-25",
      "latitude": 4.688876,
      "longitude": -74.15666
    },
    {
      "name": "Instituto Psicopedagógico El Calpulli",
      "address": "sin dirección",
      "latitude": 4.6881814,
      "longitude": -74.15579
    }
  ],
  "thumbnail": "https://multimedia.metrocuadrado.com/1654-C0017-05/1654-C0017-05_2_p.jpg",
  "numPhotos": 2,
  "photos": [
    "https://multimedia.metrocuadrado.com/1654-C0017-05_2/1654-C0017-05_2_p.jpg",
    "https://multimedia.metrocuadrado.com/1654-C0017-05_3/1654-C0017-05_3_p.jpg"
  ],
  "contactPhone": "3167273693",
  "whatsappNumber": "573167273693",
  "contactsCount": 17,
  "ownerType": "Constructora",
  "companyId": "609",
  "sourceDomain": "metrocuadrado.com",
  "searchCity": "bogota",
  "scrapedAt": "2026-06-17T00:00:00Z",
  "contentQuality": "full",
  "isHighlighted": true
}
```

### With a centre set, each record also carries `distanceKm`

```json
{
  "listingId": "319af0cc41f27d997fbfd760f6f9c64d4d396d214ed697edfce64dc83a61d97a",
  "adId": "1654-C0017-05",
  "title": "Apartamento en Venta, EL PORVENIR, Bogotá D.C.",
  "operation": "Venta",
  "price": 133200000,
  "priceCurrency": "COP",
  "neighborhood": "EL PORVENIR",
  "city": "Bogotá D.C.",
  "latitude": 4.6890154,
  "longitude": -74.16353,
  "distanceKm": 12.65
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape Metrocuadrado

1. Go to [Metrocuadrado Scraper](https://apify.com/blackfalcondata/metrocuadrado-scraper?fpr=1h3gvi) in Apify Console.
2. Configure the input.
3. Set `maxResults` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract property data from Metrocuadrado for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Research broker and agency profiles, provider coverage, and market distribution.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape Metrocuadrado?

Metrocuadrado Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.0005 per run
- **Per result:** $0.0015 per property record

Example costs:

- 10 results: **$0.015**
- 25 results: **$0.038**
- 100 results: **$0.15**
- 200 results: **$0.3**
- 500 results: **$0.75**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 200 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.30 | $0.02 | $0.28 (95%) | $0.46 |
| 15% — moderate broad query | $0.30 | $0.05 | $0.26 (85%) | $1.36 |
| 30% — high-volume aggregator | $0.30 | $0.09 | $0.21 (70%) | $2.71 |

Full re-scrape monthly cost at daily polling: $9.02. First month with incremental costs $0.75 / $1.62 / $2.92 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from Metrocuadrado?

The number of results depends on the search query and available listings on Metrocuadrado. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Metrocuadrado Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Metrocuadrado Scraper with other apps?

Yes. Metrocuadrado Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Metrocuadrado Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Metrocuadrado Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape Metrocuadrado?

This actor extracts publicly available data from Metrocuadrado. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/metrocuadrado-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Idealista Scraper — Spain, Portugal & Italy](https://apify.com/blackfalcondata/idealista-scraper?fpr=1h3gvi) — Scrape idealista.com / .pt / .it property listings with prices, photos, GPS, agent phone numbers.
- [Immowelt Scraper — German Real Estate Listings](https://apify.com/blackfalcondata/immowelt-scraper?fpr=1h3gvi) — Scrape immowelt.de — one of Germany's largest residential property portals — and pull every active.
- [Realtor Scraper — US Real Estate Listings & Property Data](https://apify.com/blackfalcondata/realtor-scraper?fpr=1h3gvi) — Scrape US real estate from realtor.com — for-sale, for-rent & recently-sold listings with price &.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctarich) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

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

Sale or rental listings.

## `propertyTypes` (type: `array`):

One or more property typologies. Each is scanned independently.

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

City slug(s), e.g. "bogota", "medellin", "cali". Accents/spaces are normalized. Leave empty if you only use Start URLs.

## `neighborhoods` (type: `array`):

Neighborhood slug(s) to narrow the search within the chosen cities, e.g. "chico", "el-poblado".

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

Paste Metrocuadrado search-result URLs (e.g. https://www.metrocuadrado.com/apartamentos/venta/bogota/chico/) to scrape those exact searches. Each URL's operation, property type, city and neighborhood are read from the URL; the filters below still apply.

## `mode` (type: `string`):

Listings (default) or Agencies — aggregate the companies behind the listings (id, owner type, listing volume, contact phone, areas served) for lead generation.

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

Maximum records to return (0 = full coverage). In agencies mode this caps the number of companies.

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

Minimum listing price.

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

Maximum listing price.

## `minAreaM2` (type: `integer`):

Minimum floor area in square metres.

## `maxAreaM2` (type: `integer`):

Maximum floor area in square metres.

## `rooms` (type: `array`):

Filter by number of bedrooms (any of the selected counts).

## `bathrooms` (type: `array`):

Filter by number of bathrooms.

## `garages` (type: `array`):

Filter by number of garages/parking spaces.

## `stratum` (type: `array`):

Filter by socioeconomic stratum (1–6).

## `propertyState` (type: `array`):

New or used.

## `centerLat` (type: `string`):

Optional radius filter — center latitude (decimal, e.g. 4.6097 for Bogotá). Combine with Center Longitude + Radius to keep only listings within the radius.

## `centerLng` (type: `string`):

Radius filter — center longitude (decimal, e.g. -74.0817).

## `radiusKm` (type: `integer`):

Keep only listings within this many kilometres of the center point. Requires Center Latitude + Center Longitude; listings without coordinates are kept.

## `descriptionMaxLength` (type: `integer`):

Truncate description to this many characters. 0 = no truncation.

## `compact` (type: `boolean`):

Output only core fields (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before output. Smaller, cleaner payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Track new/changed/expired listings across runs. Requires a State Key.

## `stateKey` (type: `string`):

Stable identifier for this tracking universe (e.g. "co-bogota-sale-apartamento").

## `emitUnchanged` (type: `boolean`):

When incremental, also emit listings that have not changed.

## `emitExpired` (type: `boolean`):

When incremental, also emit listings no longer found.

## `skipReposts` (type: `boolean`):

When incremental, skip listings that are reposts of previously seen (now expired) listings.

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID where alerts are sent.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL.

## `whatsappPhoneNumberId` (type: `string`):

WhatsApp Business phone number ID from Meta Business Manager.

## `whatsappAccessToken` (type: `string`):

Meta Cloud API access token with whatsapp\_business\_messaging scope.

## `whatsappTo` (type: `string`):

Recipient phone number in E.164 format (e.g. +573001234567).

## `webhookUrl` (type: `string`):

Universal escape hatch for n8n / Make / Zapier / custom HTTP backends. Receives a JSON POST per run.

## `webhookHeaders` (type: `object`):

Additional HTTP headers sent with the generic webhook POST.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only notify for NEW and UPDATED listings.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including contact details where available). A run-summary is written to the connected app; support is best-effort as Apify expands its connector catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "operation": "sale",
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "neighborhoods": [],
  "startUrls": [],
  "mode": "listings",
  "maxResults": 10,
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false
}
```

# 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 = {
    "propertyTypes": [
        "apartamento"
    ],
    "cities": [
        "bogota"
    ],
    "neighborhoods": [],
    "startUrls": [],
    "maxResults": 10,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/metrocuadrado-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 = {
    "propertyTypes": ["apartamento"],
    "cities": ["bogota"],
    "neighborhoods": [],
    "startUrls": [],
    "maxResults": 10,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/metrocuadrado-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "propertyTypes": [
    "apartamento"
  ],
  "cities": [
    "bogota"
  ],
  "neighborhoods": [],
  "startUrls": [],
  "maxResults": 10,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/metrocuadrado-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/metrocuadrado-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Metrocuadrado Scraper — Colombia Real Estate Listings",
        "description": "Scrape Metrocuadrado property listings across Colombia with full pricing, price-per-m², area, rooms, stratum, photos, GPS, nearby places, agent phone & WhatsApp, multi-city & neighborhood filtering, price/area filters, and incremental NEW/UPDATED/EXPIRED tracking.",
        "version": "0.1",
        "x-build-id": "ELTcSU5L5mVNSWZFs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~metrocuadrado-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-metrocuadrado-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~metrocuadrado-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-metrocuadrado-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~metrocuadrado-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-metrocuadrado-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "operation": {
                        "title": "🔁 Operation",
                        "enum": [
                            "sale",
                            "rent"
                        ],
                        "type": "string",
                        "description": "Sale or rental listings.",
                        "default": "sale"
                    },
                    "propertyTypes": {
                        "title": "🏠 Property Types",
                        "type": "array",
                        "description": "One or more property typologies. Each is scanned independently.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "apartamento",
                                "casa",
                                "oficina",
                                "local",
                                "bodega",
                                "consultorio",
                                "lote",
                                "finca",
                                "edificio"
                            ],
                            "enumTitles": [
                                "Apartment",
                                "House",
                                "Office",
                                "Commercial premises",
                                "Warehouse",
                                "Medical office",
                                "Land/Plot",
                                "Farm/Estate",
                                "Apartment building"
                            ]
                        },
                        "default": [
                            "apartamento"
                        ]
                    },
                    "cities": {
                        "title": "🏙️ Cities",
                        "type": "array",
                        "description": "City slug(s), e.g. \"bogota\", \"medellin\", \"cali\". Accents/spaces are normalized. Leave empty if you only use Start URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "neighborhoods": {
                        "title": "📍 Neighborhoods (optional)",
                        "type": "array",
                        "description": "Neighborhood slug(s) to narrow the search within the chosen cities, e.g. \"chico\", \"el-poblado\".",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "🔗 Start URLs",
                        "type": "array",
                        "description": "Paste Metrocuadrado search-result URLs (e.g. https://www.metrocuadrado.com/apartamentos/venta/bogota/chico/) to scrape those exact searches. Each URL's operation, property type, city and neighborhood are read from the URL; the filters below still apply.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "mode": {
                        "title": "⚙️ Scrape mode",
                        "enum": [
                            "listings",
                            "agencies"
                        ],
                        "type": "string",
                        "description": "Listings (default) or Agencies — aggregate the companies behind the listings (id, owner type, listing volume, contact phone, areas served) for lead generation.",
                        "default": "listings"
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum records to return (0 = full coverage). In agencies mode this caps the number of companies.",
                        "default": 50
                    },
                    "minPrice": {
                        "title": "💰 Min Price (COP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum listing price."
                    },
                    "maxPrice": {
                        "title": "💰 Max Price (COP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listing price."
                    },
                    "minAreaM2": {
                        "title": "📐 Min Area (m²)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum floor area in square metres."
                    },
                    "maxAreaM2": {
                        "title": "📐 Max Area (m²)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum floor area in square metres."
                    },
                    "rooms": {
                        "title": "🛏️ Bedrooms",
                        "type": "array",
                        "description": "Filter by number of bedrooms (any of the selected counts).",
                        "items": {
                            "type": "string",
                            "enum": [
                                "1",
                                "2",
                                "3",
                                "4",
                                "5"
                            ],
                            "enumTitles": [
                                "1",
                                "2",
                                "3",
                                "4",
                                "5+"
                            ]
                        }
                    },
                    "bathrooms": {
                        "title": "🛁 Bathrooms",
                        "type": "array",
                        "description": "Filter by number of bathrooms.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "1",
                                "2",
                                "3",
                                "4"
                            ],
                            "enumTitles": [
                                "1",
                                "2",
                                "3",
                                "4+"
                            ]
                        }
                    },
                    "garages": {
                        "title": "🚗 Garages",
                        "type": "array",
                        "description": "Filter by number of garages/parking spaces.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "0",
                                "1",
                                "2",
                                "3"
                            ],
                            "enumTitles": [
                                "0",
                                "1",
                                "2",
                                "3+"
                            ]
                        }
                    },
                    "stratum": {
                        "title": "🏷️ Stratum (estrato)",
                        "type": "array",
                        "description": "Filter by socioeconomic stratum (1–6).",
                        "items": {
                            "type": "string",
                            "enum": [
                                "1",
                                "2",
                                "3",
                                "4",
                                "5",
                                "6"
                            ],
                            "enumTitles": [
                                "1",
                                "2",
                                "3",
                                "4",
                                "5",
                                "6"
                            ]
                        }
                    },
                    "propertyState": {
                        "title": "🔨 Condition",
                        "type": "array",
                        "description": "New or used.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "Nuevo",
                                "Usado"
                            ],
                            "enumTitles": [
                                "New",
                                "Used"
                            ]
                        }
                    },
                    "centerLat": {
                        "title": "🧭 Center Latitude",
                        "type": "string",
                        "description": "Optional radius filter — center latitude (decimal, e.g. 4.6097 for Bogotá). Combine with Center Longitude + Radius to keep only listings within the radius."
                    },
                    "centerLng": {
                        "title": "🧭 Center Longitude",
                        "type": "string",
                        "description": "Radius filter — center longitude (decimal, e.g. -74.0817)."
                    },
                    "radiusKm": {
                        "title": "📏 Radius (km)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Keep only listings within this many kilometres of the center point. Requires Center Latitude + Center Longitude; listings without coordinates are kept."
                    },
                    "descriptionMaxLength": {
                        "title": "✂️ Description Max Length",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Truncate description to this many characters. 0 = no truncation.",
                        "default": 0
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Output only core fields (for AI-agent/MCP workflows).",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🧹 Exclude Empty Fields",
                        "type": "boolean",
                        "description": "Drop null, empty-string, and empty-array fields from each record before output. Smaller, cleaner payloads for AI agents and dashboards.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Track new/changed/expired listings across runs. Requires a State Key.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Stable identifier for this tracking universe (e.g. \"co-bogota-sale-apartamento\")."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Emit Unchanged Records",
                        "type": "boolean",
                        "description": "When incremental, also emit listings that have not changed.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⚰️ Emit Expired Records",
                        "type": "boolean",
                        "description": "When incremental, also emit listings no longer found.",
                        "default": false
                    },
                    "skipReposts": {
                        "title": "🚫 Skip Reposts",
                        "type": "boolean",
                        "description": "When incremental, skip listings that are reposts of previously seen (now expired) listings.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID where alerts are sent."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📱 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "WhatsApp Business phone number ID from Meta Business Manager."
                    },
                    "whatsappAccessToken": {
                        "title": "🔐 WhatsApp Access Token",
                        "type": "string",
                        "description": "Meta Cloud API access token with whatsapp_business_messaging scope."
                    },
                    "whatsappTo": {
                        "title": "📨 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone number in E.164 format (e.g. +573001234567)."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Universal escape hatch for n8n / Make / Zapier / custom HTTP backends. Receives a JSON POST per run."
                    },
                    "webhookHeaders": {
                        "title": "🪝 Webhook Headers (optional)",
                        "type": "object",
                        "description": "Additional HTTP headers sent with the generic webhook POST."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Listings Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of listings included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only New/Updated",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only notify for NEW and UPDATED listings.",
                        "default": false
                    },
                    "appConnector": {
                        "title": "📤 Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results (including contact details where available). A run-summary is written to the connected app; support is best-effort as Apify expands its connector catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "🏷️ Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
