# Brazil Real Estate Scraper — Zap, VivaReal, ImovelWeb, OLX + (`ocrad/brazil-real-estate-scraper`) Actor

Scrape Brazilian property listings from Zap Imóveis, Viva Real, Lugar Certo, ImovelWeb, OLX and Mercado Livre in one actor: prices, addresses, features, photos and sellers. Export JSON/CSV/Excel.

- **URL**: https://apify.com/ocrad/brazil-real-estate-scraper.md
- **Developed by:** [Ocrad](https://apify.com/ocrad) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 120 total users, 16 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 listing records

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

## Brazilian Multi-Site Real Estate Scraper

Scrapes property listings from multiple Brazilian real estate sites: **Zap Imóveis**, **Viva Real**, **Lugar Certo**, **ImovelWeb**, **OLX**, and **Mercado Livre**.

<p align="center">
  <a href="https://www.zapimoveis.com.br"><img src="https://www.google.com/s2/favicons?domain=zapimoveis.com.br&sz=48" alt="Zap Imóveis" width="48" height="48" /></a>
  <a href="https://www.vivareal.com.br"><img src="https://www.google.com/s2/favicons?domain=vivareal.com.br&sz=48" alt="Viva Real" width="48" height="48" /></a>
  <a href="https://www.lugarcerto.com.br"><img src="https://www.google.com/s2/favicons?domain=lugarcerto.com.br&sz=48" alt="Lugar Certo" width="48" height="48" /></a>
  <a href="https://www.imovelweb.com.br"><img src="https://www.google.com/s2/favicons?domain=imovelweb.com.br&sz=48" alt="ImovelWeb" width="48" height="48" /></a>
  <a href="https://www.olx.com.br"><img src="https://www.google.com/s2/favicons?domain=olx.com.br&sz=48" alt="OLX" width="48" height="48" /></a>
  <a href="https://imoveis.mercadolivre.com.br"><img src="https://www.google.com/s2/favicons?domain=mercadolivre.com.br&sz=48" alt="Mercado Livre" width="48" height="48" /></a>
</p>

### Input

| Field | Type | Description |
|-------|------|-------------|
| **urls** | requestListSources | Listing page URLs for any of the supported sites |
| **max_items_per_url** | number | Maximum items to scrape per URL (default: 100) |
| **max_retries_per_url** | number | Maximum retry attempts per URL (default: 2) |
| **ignore_url_failures** | checkbox | Continue scraping even if some URLs fail (default: true) |
| **proxy** | proxy | Proxy configuration. Use Apify Proxy with country BR for best results |

### Output

Results are stored in the default dataset. Each item follows this schema:

```json
{
  "posting_id": "12345",
  "url": "https://www.zapimoveis.com.br/imovel/...",
  "title": "Apartamento 2 quartos - São Paulo",
  "price": "R$ 450.000",
  "location": "São Paulo, SP",
  "features": { "bedrooms": 2, "bathrooms": 1, "area": "80m²" },
  "publisher": "Imobiliária XYZ",
  "images": ["https://..."],
  "from_url": "https://www.zapimoveis.com.br/venda/...",
  "source_site": "zap-imoveis"
}
```

Fields may be `null` when data is not available. The schema is not strictly validated.

### Proxy

For best results when scraping Brazilian sites, use **Apify Proxy** with country **BR** (Brazil):

- Set `useApifyProxy: true` in the proxy input
- Default country is Brazil (BR) when using Apify Proxy

### Support

For issues or questions, please open an issue in the repository.

# Changelog

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

# Actor input Schema

## `urls` (type: `array`):

Listing page URLs from any supported site (Zap Imóveis, Viva Real, Lugar Certo, ImovelWeb, OLX, Mercado Livre)

## `max_items_per_url` (type: `integer`):

Maximum number of items to scrape per URL

## `max_retries_per_url` (type: `integer`):

Maximum retry attempts per URL

## `ignore_url_failures` (type: `boolean`):

Continue scraping even if some URLs fail

## `proxy` (type: `object`):

Proxy configuration

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/"
    }
  ],
  "max_items_per_url": 100,
  "max_retries_per_url": 2,
  "ignore_url_failures": true,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Scraped property listings in the default dataset. Each item has posting_id, url, title, price, location, features, publisher, images, from_url, and source_site.

# 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 = {
    "urls": [
        {
            "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/"
        }
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ocrad/brazil-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 = {
    "urls": [{ "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/" }],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ocrad/brazil-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 '{
  "urls": [
    {
      "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/"
    }
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ocrad/brazil-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ocrad/brazil-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/gPtWuG5R0Lsw6pkMg/builds/d52MERxOLA0Yxvabt/openapi.json
