# ZAP Imóveis Scraper (`paulovitor18/zap-imoveis-scraper`) Actor

Extrai listagens do ZAP Imóveis com filtros por bairro, preço, tipo de negócio e imóvel. Retorna dataset limpo com preço, condomínio, quartos, área, logradouro e link direto. Sem proxy necessário. Ideal para análise de mercado imobiliário, monitoramento de preços e geração de leads no Brasil.

- **URL**: https://apify.com/paulovitor18/zap-imoveis-scraper.md
- **Developed by:** [Paulo Vitor Silva da Costa](https://apify.com/paulovitor18) (community)
- **Categories:** Real estate, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 imóvel coletados

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## ZAP Imóveis Scraper — Listagens Imobiliárias Brasileiras

Extrai listagens estruturadas do ZAP Imóveis (zapimoveis.com.br) — o maior portal imobiliário do Brasil. Retorna JSON limpo com preço, condomínio, localização, quartos, área e link direto para o anúncio. Sem necessidade de proxy.

### Por que este scraper

A maioria dos scrapers de ZAP disponíveis na Store exige proxies residenciais pagos ou retorna JSON profundamente aninhado que precisa de pós-processamento. Este funciona sem proxy na infraestrutura padrão da Apify e entrega um dataset plano, pronto para usar.

### Input

| Parâmetro | Tipo | Obrigatório | Padrão | Descrição |
|---|---|---|---|---|
| `bairros` | array de strings | Não | `[]` (cidade inteira) | Slugs de bairros (ex: `trindade`, `centro`, `campeche`) |
| `precoMinimo` | inteiro | Não | — | Preço mínimo em R$ |
| `precoMaximo` | inteiro | Não | — | Preço máximo em R$ |
| `maxPaginas` | inteiro | Não | `10` | Máximo de páginas (1–100, ~30 anúncios/página) |
| `estado` | string | Não | `sc` | Sigla do estado em minúsculas |
| `cidade` | string | Não | `florianopolis` | Slug da cidade como aparece na URL do ZAP |
| `tipoNegocio` | string | Não | `aluguel` | `aluguel` ou `venda` |
| `tipoImovel` | string | Não | `apartamentos` | `apartamentos`, `casas` ou `imoveis` (todos os tipos) |

#### Exemplo de input

```json
{
  "bairros": ["trindade", "centro", "campeche"],
  "precoMinimo": 1500,
  "precoMaximo": 5000,
  "maxPaginas": 5,
  "estado": "sc",
  "cidade": "florianopolis",
  "tipoNegocio": "aluguel",
  "tipoImovel": "apartamentos"
}
````

### Output

Um registro por anúncio. Todos os campos no nível superior, sem aninhamento.

| Campo | Tipo | Descrição |
|---|---|---|
| `id` | string | ID do anúncio no ZAP Imóveis |
| `titulo` | string | Título completo do anúncio |
| `url` | string | Link direto para o anúncio |
| `bairro` | string | Bairro do imóvel |
| `logradouro` | string | Nome da rua |
| `preco` | número | Preço em R$ |
| `condominio` | número | Condomínio mensal em R$ (quando disponível) |
| `quartos` | número | Número de quartos |
| `area_m2` | número | Área útil em m² |
| `coletado_em` | string | Timestamp da coleta (ISO 8601) |

#### Exemplo de output

```json
{
  "id": "2880454998",
  "titulo": "Apartamento para alugar com 50 m², 1 quarto, 1 banheiro em Centro, Florianópolis",
  "url": "https://www.zapimoveis.com.br/imovel/aluguel-apartamento-1-quarto-com-salao-de-festas-centro-florianopolis-50m2-id-2880454998/",
  "bairro": "Centro",
  "logradouro": "Avenida Professor Othon Gama D'Eça",
  "preco": 2500,
  "condominio": 530,
  "quartos": 1,
  "area_m2": 50,
  "coletado_em": "2026-04-15T12:01:53"
}
```

### Casos de uso

- **Análise de mercado imobiliário** — acompanhe preços e disponibilidade por bairro
- **Geração de leads para imobiliárias** — monitore novos anúncios dentro dos critérios do cliente
- **Monitoramento de preços** — detecte variações nos preços pedidos ao longo do tempo
- **Pesquisa de investimento** — compare preço por m² entre bairros
- **Pesquisa acadêmica e jornalística** — dados do mercado habitacional brasileiro

### Preços

Pay Per Event: **$2,00 por 1.000 imóveis coletados** ($0,002 por anúncio). Uma execução coletando 300 anúncios em 10 páginas custa aproximadamente $0,60.

### Performance

Aproximadamente 30 anúncios por página e 1 segundo por página. Com as configurações padrão de 10 páginas, você obtém cerca de 300 anúncios em menos de 30 segundos, sem necessidade de proxy.

### Observações

Os dados são extraídos de páginas públicas do ZAP Imóveis. O usuário é responsável por garantir que o uso esteja em conformidade com os termos de serviço do ZAP Imóveis e com a LGPD.

***

### Veja também

- [Consulta CNPJ em Lote](https://apify.com/paulovitor18/cnpj-bulk-lookup) — dados cadastrais, score de risco, regime tributário
- [CEP em Lote](https://apify.com/paulovitor18/cep-bulk-lookup) — consulta de endereços em lote com DDD
- [Reclame Aqui Scraper](https://apify.com/paulovitor18/reclameaqui-scraper) — reputação de empresas brasileiras

# Actor input Schema

## `bairros` (type: `array`):

Lista de bairros para filtrar (slugs, ex: trindade, centro, campeche). Deixe vazio para a cidade toda.

## `precoMinimo` (type: `integer`):

Valor mínimo de aluguel ou venda em reais.

## `precoMaximo` (type: `integer`):

Valor máximo de aluguel ou venda em reais.

## `maxPaginas` (type: `integer`):

Número máximo de páginas de resultados a percorrer.

## `estado` (type: `string`):

Sigla do estado em minúsculas (ex: sc, sp, rj).

## `cidade` (type: `string`):

Slug da cidade como aparece na URL do ZAP (ex: florianopolis, sao-paulo).

## `tipoNegocio` (type: `string`):

Tipo de negócio a buscar.

## `tipoImovel` (type: `string`):

Categoria de imóvel a buscar.

## Actor input object example

```json
{
  "bairros": [],
  "maxPaginas": 10,
  "estado": "sc",
  "cidade": "florianopolis",
  "tipoNegocio": "aluguel",
  "tipoImovel": "apartamentos"
}
```

# 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("paulovitor18/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("paulovitor18/zap-imoveis-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 paulovitor18/zap-imoveis-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=paulovitor18/zap-imoveis-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "ZAP Imóveis Scraper",
        "description": "Extrai listagens do ZAP Imóveis com filtros por bairro, preço, tipo de negócio e imóvel. Retorna dataset limpo com preço, condomínio, quartos, área, logradouro e link direto. Sem proxy necessário. Ideal para análise de mercado imobiliário, monitoramento de preços e geração de leads no Brasil.",
        "version": "0.1",
        "x-build-id": "ukmlJ1sI4FOKaH1fz"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/paulovitor18~zap-imoveis-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-paulovitor18-zap-imoveis-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/paulovitor18~zap-imoveis-scraper/runs": {
            "post": {
                "operationId": "runs-sync-paulovitor18-zap-imoveis-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/paulovitor18~zap-imoveis-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-paulovitor18-zap-imoveis-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "bairros": {
                        "title": "Bairros",
                        "type": "array",
                        "description": "Lista de bairros para filtrar (slugs, ex: trindade, centro, campeche). Deixe vazio para a cidade toda.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "precoMinimo": {
                        "title": "Preço Mínimo (R$)",
                        "type": "integer",
                        "description": "Valor mínimo de aluguel ou venda em reais."
                    },
                    "precoMaximo": {
                        "title": "Preço Máximo (R$)",
                        "type": "integer",
                        "description": "Valor máximo de aluguel ou venda em reais."
                    },
                    "maxPaginas": {
                        "title": "Máximo de Páginas",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Número máximo de páginas de resultados a percorrer.",
                        "default": 10
                    },
                    "estado": {
                        "title": "Estado",
                        "type": "string",
                        "description": "Sigla do estado em minúsculas (ex: sc, sp, rj).",
                        "default": "sc"
                    },
                    "cidade": {
                        "title": "Cidade",
                        "type": "string",
                        "description": "Slug da cidade como aparece na URL do ZAP (ex: florianopolis, sao-paulo).",
                        "default": "florianopolis"
                    },
                    "tipoNegocio": {
                        "title": "Tipo de Negócio",
                        "enum": [
                            "aluguel",
                            "venda"
                        ],
                        "type": "string",
                        "description": "Tipo de negócio a buscar.",
                        "default": "aluguel"
                    },
                    "tipoImovel": {
                        "title": "Tipo de Imóvel",
                        "enum": [
                            "apartamentos",
                            "casas",
                            "imoveis"
                        ],
                        "type": "string",
                        "description": "Categoria de imóvel a buscar.",
                        "default": "apartamentos"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
