# ChilePropiedades Scraper - Chile Real Estate API (`scraperschile/chilepropiedades`) Actor

Extrae avisos públicos de ChilePropiedades para venta, arriendo y arriendo diario. Obtén precios UF/CLP/USD, tipo de propiedad, ubicación, dormitorios, baños, superficie, estacionamientos, imágenes, fechas y URLs.

- **URL**: https://apify.com/scraperschile/chilepropiedades.md
- **Developed by:** [Scrapers Chile](https://apify.com/scraperschile) (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 $3.00 / 1,000 chilepropiedades listing 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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## ChilePropiedades Scraper - Chile Real Estate API

Extrae avisos inmobiliarios públicos desde las páginas de resultados de [ChilePropiedades](https://chilepropiedades.cl/). Sirve para investigación de mercado, comparación de precios, monitoreo de oferta y análisis de propiedades en venta, arriendo mensual o arriendo diario.

### Datos extraídos

- ID, título y URL pública del aviso.
- Venta, arriendo o arriendo diario.
- Tipo de propiedad y ubicación.
- Precio publicado, moneda y monto numérico.
- Dormitorios, baños, superficie y estacionamientos cuando aparecen.
- Resumen, fecha, imagen, corredora comercial y etiquetas públicas.
- Página, posición, URL de búsqueda y fecha de extracción.

El Actor lee únicamente las tarjetas públicas de resultados. No abre datos de contacto, no inicia sesión ni accede a rutas privadas. También redacta patrones comunes de correo, teléfono y RUT que pudieran aparecer dentro del título o resumen público.

### Filtros

- Operación: venta, arriendo mensual o arriendo diario.
- Departamento, casa, oficina, local, parcela, terreno y otros tipos publicados.
- Comuna, ciudad, región o barrio.
- Precio mínimo/máximo en UF, CLP o USD.
- Dormitorios, baños y superficie mínima.
- Orden reciente, precio ascendente o descendente.
- Hasta 50 páginas y 500 avisos por ejecución.

### Ejemplo

```json
{
  "operation": "venta",
  "propertyType": "departamento",
  "location": "Santiago",
  "maxPages": 2,
  "maxResults": 20,
  "sortBy": "recent"
}
```

### Precio propuesto

- USD 0.003 por aviso guardado en el dataset.
- No existe cobro de inicio.
- El usuario paga además el uso de plataforma que corresponda.
- Una búsqueda sin resultados no genera cobro por resultados.

### Extracción responsable

El [`robots.txt`](https://chilepropiedades.cl/robots.txt) permite las páginas públicas de resultados y establece `Crawl-delay: 2`. Este Actor espera al menos 2 segundos entre páginas. También respeta las rutas expresamente prohibidas, incluyendo contacto, revelación de datos, favoritos y publicaciones privadas.

Los avisos pueden cambiar o desaparecer. Usa los datos conforme a la normativa, los derechos de terceros y las condiciones vigentes de la fuente.

### Condición antes de publicar

Este proyecto debe permanecer privado hasta obtener autorización previa de ChilePropiedades. Sus [términos vigentes](https://chilepropiedades.cl/terminos) prohíben copiar, republicar, transmitir, almacenar o distribuir material del sitio sin permiso. La prueba técnica local no equivale a una autorización comercial.

# Actor input Schema

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

Elige avisos de venta, arriendo mensual o arriendo diario.

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

Tipo de inmueble que quieres buscar.

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

Comuna, ciudad, región o barrio. Ejemplos: Santiago, Las Condes, Valparaíso.

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

Cada página pública contiene normalmente 10 avisos.

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

Límite total de avisos únicos que se guardarán en el dataset.

## `priceUnit` (type: `string`):

Moneda usada solo para interpretar precio mínimo y máximo.

## `minPrice` (type: `number`):

Opcional. Se interpreta en la moneda seleccionada.

## `maxPrice` (type: `number`):

Opcional. Se interpreta en la moneda seleccionada.

## `minBedrooms` (type: `integer`):

Cantidad mínima de dormitorios. Usa 0 para no filtrar.

## `minBathrooms` (type: `integer`):

Cantidad mínima de baños. Usa 0 para no filtrar.

## `minArea` (type: `number`):

Superficie mínima publicada, en metros cuadrados.

## `sortBy` (type: `string`):

Ordena la búsqueda por publicación reciente o precio.

## `delaySecs` (type: `number`):

Mínimo 2 segundos para respetar robots.txt.

## `timeoutSecs` (type: `integer`):

Segundos máximos para esperar cada página pública.

## `retries` (type: `integer`):

Cantidad de intentos ante errores transitorios por página.

## `locationSlug` (type: `string`):

Opcional. Déjalo vacío salvo que conozcas el slug exacto usado por ChilePropiedades.

## Actor input object example

```json
{
  "operation": "venta",
  "propertyType": "departamento",
  "location": "Santiago",
  "maxPages": 1,
  "maxResults": 100,
  "priceUnit": "UF",
  "minBedrooms": 0,
  "minBathrooms": 0,
  "sortBy": "recent",
  "delaySecs": 2,
  "timeoutSecs": 30,
  "retries": 3
}
```

# Actor output Schema

## `status` (type: `string`):

success, partial o no\_results.

## `results` (type: `string`):

No description

## `errors` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("scraperschile/chilepropiedades").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("scraperschile/chilepropiedades").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 '{}' |
apify call scraperschile/chilepropiedades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraperschile/chilepropiedades"
        }
    }
}

```

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/SLCN5lYX524rjy8SV/builds/4zRX3jLnqWkmVeFi2/openapi.json
