# ZAP Imóveis Scraper — Brazil Sale & Rent (`crawloop/zap-imoveis-scraper`) Actor

Extract ZAP Imóveis listings for sale or rent across Brazil. Get price in BRL, area, bedrooms, neighborhood, condo fee, and the agency. Search URL or city filters, plus a monitor for new listings.

- **URL**: https://apify.com/crawloop/zap-imoveis-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (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.99 / 1,000 property listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## ZAP Imóveis Scraper — Brazil Sale & Rent

> **Disclaimer:** Unofficial tool. Not affiliated with, sponsored by, or endorsed by the portal or its affiliates. Listings are read from publicly available search results. No login. You are responsible for complying with applicable law and the site’s terms. No warranty on accuracy or availability.

**ZAP Imóveis scraper** for Brazil property: apartments, houses, penthouses, land, and commercial space **for sale or for rent**. Each row has price in BRL, m², bedrooms, neighborhood, condo fee, and the agency. Use it as a **ZAP Imóveis API alternative** from **Python**, **Node.js**, **cURL**, or **Apify MCP**.

**Best for:** São Paulo and Rio sale comps, rent rolls, and a scheduled check that saves only new listings.

| Actor | Role |
| :--- | :--- |
| ZAP Imóveis Scraper ◄── you are here | Brazil sale and rent listings |
| [Subito Real Estate Scraper](https://apify.com/crawloop/subito-real-estate-scraper) | Italy property: sale, rent, private vs agency |
| [realestate.com.au Scraper](https://apify.com/crawloop/realestate-com-au-scraper) | Australia sold comps and listing monitor |

### When to use this Actor

- **Search URL in, rows out** — Paste a filtered sale or rent results page (city, neighborhood, price, bedrooms).
- **One listing** — Paste a single property URL when you already have the page.
- **City builder** — Set state, city, and property type when you do not have a URL.
- **New-listing monitor** — Schedule the same search. The next run saves listings created after the previous newest one. A quiet tick writes zero rows.

### When not to use this Actor

- **Other Brazil portals** — This Actor reads ZAP Imóveis only. It does not cover VivaReal, ImovelWeb, or OLX as separate sites.
- **A full national dump in one run** — Cap `maxItems`. Split by city and price instead of one unbounded crawl.

### Key features

- **Search JSON** — One HTTP call per results page. No browser. Default **256 MB**.
- **Sale and rent** — Apartments, houses, penthouses, kitnets, land, commercial, offices, farms.
- **Structured property fields** — Price, condo fee, IPTU, m², BRL/m², bedrooms, bathrooms, parking, coordinates.
- **Agency on the row** — Name and the public phone already shown on the listing.
- **Monitor cursor** — A named key-value store remembers the newest `createdAt`. The next scheduled run keeps only newer rows.
- **Proxy off by default** — If the platform IP is blocked, the run retries once on datacenter proxy. Turn on residential only when that retry is blocked too.

### Input

| Field | What it does |
| :--- | :--- |
| **Start URLs** | Search pages or a single listing URL. When set, the builder fields are ignored. |
| **Sale or rent** / **Property type** | Builder used when Start URLs is empty. |
| **State / city / neighborhood** | For example `SP`, `Sao Paulo`, `Pinheiros`. |
| **Min / max price / bedrooms** | Extra filters, in reais. |
| **Maximum listings** | Cap on dataset rows. Default 30. |
| **Private sellers only** | Skip agency contracts. Most ZAP rows are agencies, so this filter can return nothing. |
| **Monitor mode** | Save only listings newer than the stored cursor. |
| **Monitor state store** | Named store so scheduled runs share the cursor. |
| **Proxy** | Off unless you enable it. |

```json
{
  "startUrls": [
    { "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/" }
  ],
  "maxItems": 30,
  "onlyPrivate": false,
  "monitorMode": false,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

Rent in one city, no URL:

```json
{
  "transaction": "rent",
  "propertyType": "apartments",
  "state": "RJ",
  "city": "Rio de Janeiro",
  "priceMax": 4000,
  "bedrooms": 2,
  "maxItems": 40
}
```

### Output

| Field | Meaning |
| :--- | :--- |
| `title`, `url`, `description` | Headline, link, listing text |
| `transaction`, `propertyType` | `sale` or `rent`, plus the unit type |
| `price`, `condoFee`, `iptu`, `usableAreaSqm`, `pricePerSqm` | Reais, monthly condo, yearly IPTU, square meters |
| `bedrooms`, `bathrooms`, `suites`, `parkingSpaces` | Counts from the listing |
| `city`, `state`, `neighborhood`, `street` | Location. `latitude` / `longitude` when the listing has a point |
| `advertiserName`, `advertiserType`, `phone` | Agency or private, and the public phone on the card |
| `createdAt`, `updatedAt`, `imageUrls` | Timestamps and photo URLs |

```json
{
  "id": "2912498272",
  "url": "https://www.zapimoveis.com.br/imovel/id-2912498272/",
  "title": "Venda 3 dormitorios no Cerqueira Cesar",
  "transaction": "sale",
  "propertyType": "APARTMENT",
  "price": 1890000,
  "currency": "BRL",
  "condoFee": 1990,
  "usableAreaSqm": 110,
  "bedrooms": 3,
  "city": "São Paulo",
  "state": "SP",
  "neighborhood": "Cerqueira César",
  "advertiserName": "Olimpia House",
  "advertiserType": "agency",
  "phone": "1139373900"
}
```

### Use cases

- Pull a neighborhood sale set for pricing comps (price, m², BRL/m²).
- Build a rent list for Rio or São Paulo with a bedroom and price cap.
- Schedule the same search daily and keep only listings created since the last run.

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/zap-imoveis-scraper").call({
  startUrls: [{ url: "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/" }],
  maxItems: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token="YOUR_APIFY_TOKEN")
run = client.actor("crawloop/zap-imoveis-scraper").call(run_input={
    "transaction": "rent",
    "propertyType": "apartments",
    "state": "RJ",
    "city": "Rio de Janeiro",
    "maxItems": 40,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~zap-imoveis-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"startUrls\":[{\"url\":\"https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/\"}],\"maxItems\":30}"
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name `crawloop/zap-imoveis-scraper`.

Example prompts:

- "Run ZAP Imóveis Scraper for apartments for sale in São Paulo and return the top 20 rows as JSON with price, m², and neighborhood."
- "Scrape ZAP rentals in Rio de Janeiro under a bedroom filter and summarize median price per m²."
- "After ZAP Imóveis, run Subito Real Estate Scraper for a comparable Italy sale search."

### Suite next step

For a scheduled Brazil watch, run this Actor again with **Monitor mode** on the same search. For Italy sale and rent, use [Subito Real Estate Scraper](https://apify.com/crawloop/subito-real-estate-scraper).

### FAQ

**Does it open a browser?** No. It reads the public listings API over HTTP.

**Why is a monitor tick empty?** The cursor is already at the newest listing. That is a successful run with zero new rows.

**Can I filter private owners?** Yes, with **Private sellers only**. ZAP inventory is mostly agencies, so the dataset may be empty.

# Actor input Schema

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

ZAP Imóveis search pages or a single listing URL. When this list is set, the builder fields below are ignored.

## `transaction` (type: `string`):

Used only when Start URLs is empty.

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

Used only when Start URLs is empty.

## `state` (type: `string`):

Two-letter state code, for example SP or RJ. Used with City when Start URLs is empty.

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

City name, for example Sao Paulo. Used when Start URLs is empty.

## `neighborhood` (type: `string`):

Optional neighborhood, for example Pinheiros.

## `priceMin` (type: `integer`):

Minimum price in Brazilian reais.

## `priceMax` (type: `integer`):

Maximum price in Brazilian reais.

## `bedrooms` (type: `integer`):

Minimum bedroom count.

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

Maximum dataset rows for this run.

## `onlyPrivate` (type: `boolean`):

Keep rows that are not marked as a real-estate agency.

## `monitorMode` (type: `boolean`):

Remember the newest listing and, on the next run, save only listings created after it. An empty tick saves nothing.

## `monitorStateStore` (type: `string`):

Named key-value store that keeps the monitor cursor across scheduled runs.

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

Leave proxy off unless the run is blocked. If it is blocked, enable Apify Proxy and try datacenter before residential.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/"
    }
  ],
  "transaction": "sale",
  "propertyType": "apartments",
  "state": "SP",
  "city": "Sao Paulo",
  "maxItems": 30,
  "onlyPrivate": false,
  "monitorMode": false,
  "monitorStateStore": "zap-imoveis-monitor",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items — one property listing per row.

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

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

# Run the Actor and wait for it to finish
run = client.actor("crawloop/zap-imoveis-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 '{
  "startUrls": [
    {
      "url": "https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/"
    }
  ]
}' |
apify call crawloop/zap-imoveis-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/zap-imoveis-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/Di6FCkaJvS7A1KWs3/builds/ceWX9xx395vaoIHNS/openapi.json
