# Metrocuadrado Colombia Property Scraper (`barefoot_grade/metrocuadrado-co-scraper`) Actor

Property listings for sale and rent from Metrocuadrado, a leading Colombian real-estate portal. Fields: price, currency, property type, area, rooms, bathrooms, address, images, posting date, listing URL. On-demand scrape — fresh listings every run.

- **URL**: https://apify.com/barefoot_grade/metrocuadrado-co-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/barefoot_grade) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 listings

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

## Colombia Property Listings from Metrocuadrado

### Quick Start

Collect current apartment or house listings for sale or rent in Colombia.
Useful for real-estate research, comparisons, and property discovery.
Run with this minimal input:

```json
{"city":"bogota","operation":"venta","propertyType":"apartamento","maxResults":50}
```

### Input

| Name | Type | Default | What it does |
| --- | --- | --- | --- |
| `operation` | string | `venta` | Search for sale or rent (`arriendo`). |
| `propertyType` | string | `apartamento` | Search apartments or houses (`casa`). |
| `city` | string | `bogota` | City to search: Bogota, Medellin, or Cali. |
| `zone` | string | empty | Optional neighbourhood or zone slug. |
| `maxPages` | integer | `1` | Maximum search pages, from 1 to 5. |
| `maxResults` | integer | `50` | Maximum listings, from 1 to 200. |
| `requestDelaySecs` | number | `1.0` | Delay between page requests, from 0.5 to 10 seconds. |
| `proxyUrl` | string | empty | Optional proxy URL for resilience. |
| `proxyUsername` | string | empty | Username for the optional proxy. |
| `proxyPassword` | string | empty | Password for the optional proxy. |

### Output

Each item includes `listing_key`, `id`, `url`, `title`, `price_cop`, `currency`, `city`, `zone`, `area_m2`, `rooms`, `bathrooms`, `garages`, `property_type`, `listing_type`, `images`, `source`, `country`, and `scraped_at`.

Example record:

```json
{"listing_key":"metrocuadrado.com:206251234","id":"206251234","title":"Apartamento moderno","price_cop":420000000,"currency":"COP","city":"Bogota","zone":"Chico","area_m2":82,"rooms":3,"bathrooms":2,"url":"https://www.metrocuadrado.com/inmueble/..."}
```

### FAQ

**How fresh are the results?** Results are fetched at run time.

**Which locations are supported?** Bogota, Medellin, and Cali, with optional zones.

**What are the limits?** A run can fetch up to 5 pages and 200 listings.

**What happens when a request fails?** The Actor reports the failure rather than labeling incomplete results as complete.

For help, contact Apify support and include the Actor run ID.

# Actor input Schema

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

Listing operation to search: sale (venta) or rental (arriendo).

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

Property type to search: apartments (apartamentos) or houses (casas).

## `city` (type: `string`):

City to search. Bogotá, Medellín and Cali are the v1 coverage; each carries its own zone table.

## `zone` (type: `string`):

Optional zone/neighbourhood within the city as a slug ("chico", "chapinero", "el-poblado", "granada"). Free text is slugified and accents fold. Empty searches the whole city.

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

Search-result pages to fetch. The parser follows the site's own rel=next link.

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

Stop after this many listings.

## `requestDelaySecs` (type: `number`):

Minimum 0.5 seconds.

## `proxyUrl` (type: `string`):

Optional resilience-only proxy. Either a full URL with embedded credentials, or a bare host:port together with proxyUsername/proxyPassword. Empty = direct connection.

## `proxyUsername` (type: `string`):

Username for proxyUrl when the URL does not embed credentials.

## `proxyPassword` (type: `string`):

Password for proxyUrl when the URL does not embed credentials.

## Actor input object example

```json
{
  "operation": "venta",
  "propertyType": "apartamento",
  "city": "bogota",
  "zone": "",
  "maxPages": 1,
  "maxResults": 50,
  "requestDelaySecs": 1
}
```

# 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 = {
    "proxyPassword": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("barefoot_grade/metrocuadrado-co-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 = { "proxyPassword": "" }

# Run the Actor and wait for it to finish
run = client.actor("barefoot_grade/metrocuadrado-co-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 '{
  "proxyPassword": ""
}' |
apify call barefoot_grade/metrocuadrado-co-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,barefoot_grade/metrocuadrado-co-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/THueKpN4k3Z2WT9wL/builds/dEPNHdp8nREjZXbqx/openapi.json
