# Chile Real Estate & Propiedades – Portal Inmobiliario, TocToc (`ener90/chile-real-estate-scraper`) Actor

Extrae propiedades en venta y arriendo en Chile desde Portal Inmobiliario y TocToc: departamentos y casas en Santiago, precio en UF y CLP, precio por m², dormitorios, baños, comuna y coordenadas. Chile real estate scraper & property listings data.

- **URL**: https://apify.com/ener90/chile-real-estate-scraper.md
- **Developed by:** [René Del Valle Rodríguez](https://apify.com/ener90) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.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

## Chile Real Estate & Propiedades – Portal Inmobiliario, TocToc

Saca departamentos, casas, oficinas y terrenos en venta o arriendo de Portal Inmobiliario y TocToc, por comuna, con el precio en UF y en pesos, el precio por m², dormitorios, baños, superficie y coordenadas. Lo uso para comparar comunas sin abrir aviso por aviso.

Si prefieres verlo funcionando antes de probarlo, grabé un tutorial corto en video:

https://www.youtube.com/watch?v=e1ULlFXrIeM

![Formulario con comunas de Santiago](https://raw.githubusercontent.com/ENER90/chile-real-estate-scraper/main/docs/screenshots/01-input.png)

### Qué datos obtienes

| Campo | Ejemplo real | Comentario |
|---|---|---|
| `title`, `url`, `source` | "Vive Santa Isabel", link, `portalinmobiliario` | De qué portal viene |
| `priceUF` / `priceCLP` | `8.01` / `330000` | Siempre en las dos monedas, con la UF del día |
| `pricePerM2UF` / `pricePerM2CLP` | `0.31` / `12692` | Solo en unidades con superficie única, no en proyectos con rango |
| `bedrooms`, `bathrooms` | `1`, `1` | En proyectos nuevos también vienen `bedroomsMax` y `bathroomsMax` |
| `m2Util`, `m2Total` | `26`, … | Superficie útil y total |
| `comuna`, `address`, `lat`, `lon` | Santiago, "Av. Sta. Rosa 537…", -33.45, -70.64 | Para mapas |
| `isNewProject`, `pricePrefix` | `true`, "Desde" | Si es un proyecto nuevo o un aviso normal |
| `publisher`, `publisherType`, `images` | "Assetplan Chile", `inmobiliaria` | Quién publica y las fotos |

![Tabla con propiedades reales en arriendo](https://raw.githubusercontent.com/ENER90/chile-real-estate-scraper/main/docs/screenshots/02-output-table.png)

### Cuánto cuesta

US$0,003 por propiedad, o sea US$3 por cada 1.000 propiedades.

| Ejemplo | Propiedades | Costo |
|---|---|---|
| Una comuna, para mirar | 20 | US$0,06 |
| 4 comunas × 50 | 200 | US$0,60 |
| Toda la RM en arriendo, una vez | 1.000 | US$3,00 |

Con el plan gratis de Apify (US$5 al mes) te alcanza para unas 1.600 propiedades al mes. Con **Max results** pones el tope y nunca pagas más que eso. Una ejecución real con 40 propiedades de 4 comunas y los dos portales tardó unos 4 minutos, porque abre cada aviso para sacar más datos. Si desmarcas **Open listing pages** va más rápido.

### Cómo usarlo

1. Crea una cuenta gratis en Apify y abre este actor.
2. En **Comunas** escribe las comunas que quieres, por ejemplo `Providencia` y `Ñuñoa`, y en **Region** elige la región.
3. En **Operation** elige `venta` o `arriendo`, y en **Property type** el tipo (`departamento`, `casa`, `oficina`…).
4. En **Sources** marca Portal Inmobiliario, TocToc o los dos.
5. Si quieres, filtra por precio con **Min price** / **Max price** y elige la moneda en **Price currency** (UF o CLP).
6. Pon un tope en **Max results** (20 para probar) y, si buscas en varias comunas, usa **Max results per comuna** para repartir.
7. Aprieta **Start** y baja la tabla como Excel desde la pestaña **Output**.

### Ejemplo de entrada

```json
{
  "comunas": ["Santiago", "Providencia", "Ñuñoa", "Las Condes"],
  "region": "metropolitana",
  "operation": "arriendo",
  "propertyType": "departamento",
  "sources": ["portalinmobiliario", "toctoc"],
  "maxItems": 40,
  "maxItemsPerComuna": 5
}
```

### Ejemplo de salida

![Una propiedad completa en JSON](https://raw.githubusercontent.com/ENER90/chile-real-estate-scraper/main/docs/screenshots/03-output-json.png)

### Para qué sirve

- Comparar el precio por m² entre comunas antes de comprar o arrendar.
- Si eres corredor o inversionista, seguir las propiedades nuevas en las comunas que trabajas (con un Schedule diario).
- Armar un mapa con `lat` y `lon` en Google Sheets, Looker Studio o QGIS.
- Estudiar arriendos en proyectos de renta residencial (multifamily).

### Integraciones

- **Excel, CSV o Google Sheets:** desde la pestaña Output, o con la integración de Google Sheets de Apify.
- **Make, Zapier y n8n:** app oficial de Apify, "Run Actor" (`ener90/chile-real-estate-scraper`) y luego "Get dataset items".
- **Webhook o Slack** al terminar cada ejecución, desde la pestaña Integrations.
- **API:**

```python
from apify_client import ApifyClient
client = ApifyClient("TU_TOKEN")
run = client.actor("ener90/chile-real-estate-scraper").call(run_input={"comunas": ["Ñuñoa"], "operation": "venta", "maxItems": 20})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["title"], p.get("priceUF"), p.get("pricePerM2UF"))
```

- **Agentes de IA:** agrégalo a [Apify MCP](https://mcp.apify.com) y pregunta "¿cuánto cuesta el m² de un depto en Ñuñoa?".

### Limitaciones

- TocToc solo tiene departamento, casa, oficina y terreno.
- Los resultados no se deduplican entre portales: si la misma propiedad está en los dos, sale dos veces.
- El precio por m² no se calcula en proyectos que publican un rango de superficies, porque sería engañoso.
- Los portales bloquean IPs de datacenter, por eso viene configurado con proxy residencial chileno (en **Advanced**).

### Preguntas frecuentes

**¿De dónde sale el valor de la UF?** De la UF del día de la ejecución. Con ella se calcula la moneda que el aviso no trae.

**¿Puedo incluir o excluir proyectos nuevos?** Sí, con **Include new projects (proyectos)**. Los proyectos muestran un precio "Desde" y rangos de m², dormitorios y baños.

**¿Es legal?** Solo saca avisos públicos. Revisa igual los términos de cada portal para tu caso.

### Otros actores míos

- [Mercado Libre Reviews & Preguntas](https://apify.com/ener90/mercadolibre-reviews-questions)
- [Mercado Libre Price Tracker](https://apify.com/ener90/mercadolibre-seller-price-monitor)

In English: this Actor scrapes Chilean property listings for sale or rent from Portal Inmobiliario and TocToc, by comuna. Each listing comes with its price in UF and CLP, price per m² (for single units), bedrooms, bathrooms, size, coordinates and publisher. It costs US$3 per 1,000 listings, and **Max results** caps your spend.

# Changelog

This Actor's version history is a separate document: https://apify.com/ener90/chile-real-estate-scraper/changelog.md

# Actor input Schema

## `comunas` (type: `array`):

Chilean comunas to search, e.g. Providencia, Las Condes, Ñuñoa, Santiago. Accents and capitals are optional.

## `region` (type: `string`):

Region the comunas belong to.

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

Sale or rent.

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

Type of property. TocToc supports departamento, casa, oficina and terreno.

## `sources` (type: `array`):

Portals to scrape. Results are deduplicated per portal, not across portals.

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

Minimum price in the currency below.

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

Maximum price in the currency below.

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

Currency of min/max price. Default: UF for venta, CLP for arriendo. Listings in the other currency are converted with today's UF value.

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

Maximum listings for the whole run (you pay per result).

## `maxItemsPerComuna` (type: `integer`):

Spread results across comunas. 0 = no limit.

## `includeNewProjects` (type: `boolean`):

New developments show a 'Desde' (from) price and ranges of m², bedrooms and bathrooms.

## `includeDetails` (type: `boolean`):

Adds total m², parking, coordinates, publish date, publisher and all photos. Slower; turn off for fast price-only runs.

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

Chilean residential proxy is recommended: the portals block datacenter IPs.

## Actor input object example

```json
{
  "comunas": [
    "Providencia",
    "Ñuñoa"
  ],
  "region": "metropolitana",
  "operation": "venta",
  "propertyType": "departamento",
  "sources": [
    "portalinmobiliario"
  ],
  "minPrice": 3000,
  "maxPrice": 8000,
  "priceCurrency": "UF",
  "maxItems": 20,
  "maxItemsPerComuna": 0,
  "includeNewProjects": true,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CL"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "comunas": [
        "Providencia",
        "Ñuñoa"
    ],
    "region": "metropolitana",
    "operation": "venta",
    "propertyType": "departamento",
    "sources": [
        "portalinmobiliario"
    ],
    "maxItems": 20,
    "maxItemsPerComuna": 0,
    "includeNewProjects": true,
    "includeDetails": true,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "CL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ener90/chile-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 = {
    "comunas": [
        "Providencia",
        "Ñuñoa",
    ],
    "region": "metropolitana",
    "operation": "venta",
    "propertyType": "departamento",
    "sources": ["portalinmobiliario"],
    "maxItems": 20,
    "maxItemsPerComuna": 0,
    "includeNewProjects": True,
    "includeDetails": True,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "CL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ener90/chile-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 '{
  "comunas": [
    "Providencia",
    "Ñuñoa"
  ],
  "region": "metropolitana",
  "operation": "venta",
  "propertyType": "departamento",
  "sources": [
    "portalinmobiliario"
  ],
  "maxItems": 20,
  "maxItemsPerComuna": 0,
  "includeNewProjects": true,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CL"
  }
}' |
apify call ener90/chile-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ener90/chile-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/Ezy38S2XncLBCZr0B/builds/1ffKhBO6pEw9jyWer/openapi.json
