# ZAP Imóveis & VivaReal Scraper 🇧🇷 (Brazil property listings) (`tagadanar/zap-imoveis-scraper`) Actor

Brazil property listings from ZAP Imóveis and VivaReal by city, neighbourhood or pasted search URL: sale price or rent, condo fee, IPTU, area, rooms, address, geo point, photos, agency name, CRECI and phones. $1.50 per 1,000 listings.

- **URL**: https://apify.com/tagadanar/zap-imoveis-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 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 & VivaReal Scraper 🇧🇷 (Brazil property listings)

Get Brazil property listings from **ZAP Imóveis** and **VivaReal** as clean rows. Type a city or a neighbourhood ("Pinheiros, São Paulo, SP") or paste a search URL from either site, pick sale or rent, and get one row per listing: sale price or monthly rent, condo fee, IPTU, usable area, bedrooms, bathrooms, parking, amenities, full address with CEP and map point, photo URLs, and the agency's name, CRECI licence and phones.

**$1.50 per 1,000 listings on Free ($1.05 on Gold), plus $0.001 per run. Platform usage is included.** No API key, no login, no proxy needed.

### What you get

One flat row per listing. Fields the advertiser did not fill in are null.

| Field | What it is |
| --- | --- |
| `portal` | `ZAP` or `VIVAREAL` (which site the listing link points to) |
| `search` | The location or URL that found this listing |
| `id` | Listing ID (the same ID on ZAP and VivaReal) |
| `url` | Listing page |
| `title` | Card title, e.g. "Apartamento com 2 Quartos à venda, 65m²" |
| `business` | `SALE` or `RENTAL` |
| `propertyType`, `propertySubType`, `usageType` | e.g. `APARTMENT` / `KITNET` / `RESIDENTIAL` |
| `salePrice`, `rentPrice`, `rentTotalMonthly` | Prices in BRL (a listing offered for both has both) |
| `condoFee`, `iptuYearly` | Monthly condo fee and yearly IPTU, in BRL |
| `priceHidden` | True when the advertiser hides the price |
| `usableArea`, `totalArea`, `pricePerSqm` | m², and sale price per m² (some listings give two areas; the row carries the lowest) |
| `bedrooms`, `suites`, `bathrooms`, `parkingSpaces`, `floor` | Counts as published. Some listings give two values for a count (for example 2 and 6 bathrooms); the row carries the lowest |
| `amenities` | e.g. `POOL`, `GYM`, `ELEVATOR`, `PETS_ALLOWED` |
| `street`, `streetNumber`, `neighborhood`, `zone`, `city`, `state`, `stateCode`, `zipCode` | Address parts the advertiser chose to show |
| `latitude`, `longitude`, `geoApproximate` | Map point; approximate when the advertiser hides the exact address |
| `addressShown` | `ALL`, `STREET` or `NEIGHBORHOOD`: how much of the address the advertiser shows |
| `imageUrls`, `videoUrls` | Photo URLs (870 x 653) and video / tour links |
| `advertiserType` | `professional` (agency or broker) or `private owner` |
| `advertiserName`, `advertiserCreci`, `advertiserPhones`, `advertiserWhatsapp`, `advertiserWebsite`, `advertiserUrl` | Agency or broker contact details |
| `advertiserReference` | The agency's own reference code for the property |
| `publicationType` | Listing tier on the portal (`STANDARD`, `PREMIUM`, ...) |
| `createdAt`, `updatedAt` | When the listing was published and last updated |
| `retrievedAt` | When the row was fetched (ISO 8601) |

Private owners' names and phone numbers are never delivered: for those listings the advertiser fields are null.

### Who uses it

- **Real-estate agencies and brokers**: watch the newest listings in their neighbourhoods and see which agencies list what, with CRECI and contact details.
- **Investors and analysts**: compare asking prices, rents, condo fees and price per m² across neighbourhoods and property types.
- **Proptech and data teams**: feed a database or a price model with structured listings, geo points and photos.

### Examples

Prefill (the canary run): the 50 newest listings for sale in Pinheiros, São Paulo.

```json
{"locations":["Pinheiros, São Paulo, SP"],"maxItems":50}
```

Apartments for rent in two Rio de Janeiro neighbourhoods, 2+ bedrooms, up to R$ 6,000 a month, cheapest first:

```json
{"locations":["Copacabana, Rio de Janeiro, RJ","Botafogo, Rio de Janeiro, RJ"],"business":"RENTAL","propertyTypes":["APARTMENT"],"minBedrooms":2,"maxPrice":6000,"sort":"PRICE_LOW","maxItems":500,"maxItemsPerSearch":250}
```

Houses and gated-condominium houses for sale in Campinas, with VivaReal links:

```json
{"locations":["Campinas, SP"],"portal":"VIVAREAL","propertyTypes":["HOME","CONDOMINIUM"],"minPrice":500000,"maxPrice":1500000,"maxItems":1000}
```

Paste search URLs straight from the sites (their own filters are used):

```json
{"searchUrls":["https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/","https://www.vivareal.com.br/aluguel/sp/campinas/"],"maxItems":200}
```

### How a location is matched

Each location goes through the site's own location search and must match a city or neighbourhood name exactly (accents and case do not matter). Add the city and the state code when a name exists in several places: "Centro" alone is ambiguous, "Centro, Curitiba, PR" is not. A location the site does not know is named in the run status with the site's suggestions, and costs nothing.

### Large searches

The sites serve at most 1,500 listings per query. When you ask for more than that from one location, the actor splits the search into price bands until each fits, and removes duplicates, so a big city can deliver up to 10,000 listings per run. Each property type you select is also searched on its own. Listings without a public price can only be reached in the first 1,500 of an unsplit search.

### Results, zeros and errors

- A search the site answered with 0 listings is reported as "no listing" and costs nothing beyond the run start.
- A search the site refused, or the run clock stopped, is named in the status and is never reported as "no listing".
- Duplicates (the same listing found by two searches or two price bands) are delivered and charged once.
- A filter in a pasted URL that the actor cannot read is named in the status as "not applied".
- Counts in a pasted URL are used as written: `vagas=2` returns listings with exactly 2 parking spaces. For "2 or more" in a pasted URL write `vagas=2,3,4` (4 means 4 or more), or search by location with `minParkingSpaces`, which asks for "or more" itself.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $1.50 per 1,000 listings on Free, with lower prices on higher Apify plans ($1.05 per 1,000 on Gold). Platform usage is included.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**ZAP or VivaReal, which should I pick?** Both portals belong to the same group and show the same listings: the same search returns the same listing IDs on both. The choice only changes which site the `url` field points to.

**Do I get the listing description?** No. The sites' search results do not carry the description text; the row has the card title, all the numbers, the address and the photos.

**Do I get the phone number of the owner?** Only for agencies and brokers (business contacts). Listings published by private owners come without name or phone.

**Why does a row show 2 bathrooms when I asked for at least 3?** Some listings give two values for a count or an area (for example 2 and 6 bathrooms). The site's filters match a listing when any of its values fits, while the row carries the lowest value, so a few rows can show less than your minimum. Measured on São Paulo with at least 3 bathrooms: 3 of 60 rows.

**Can I get every listing in São Paulo?** Up to 10,000 per run. Split very large markets by neighbourhood or property type across runs.

### Data use

The data comes from the public search pages of zapimoveis.com.br and vivareal.com.br. You are responsible for how you use it, including Brazil's LGPD for any contact data: agency contacts are business details published for that purpose; private owners' contacts are not collected.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/zap-imoveis-scraper/changelog.md

# Actor input Schema

## `locations` (type: `array`):

Cities or neighbourhoods in Brazil, one per line: "São Paulo, SP", "Pinheiros, São Paulo, SP", "Copacabana, Rio de Janeiro". Each is matched exactly through the site's own location search (add the city and the state code when a name exists in several places). Give locations, search URLs, or both.

## `searchUrls` (type: `array`):

Optional: search result URLs pasted from zapimoveis.com.br or vivareal.com.br, e.g. https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/. The URL's own deal type, location, property type, price, area, bedroom, bathroom and parking filters are used; the filter fields below apply to Locations only. A URL filter the actor cannot read is named in the run status.

## `portal` (type: `string`):

Which site's listing URLs and API to use for Locations. ZAP Imóveis and VivaReal belong to the same group and show the same listings; the choice only changes the listing links.

## `business` (type: `string`):

For sale (venda) or for rent (aluguel). Applies to Locations.

## `propertyTypes` (type: `array`):

Leave empty for every type. Each type is searched on its own, so a city can deliver more listings in total.

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

Lowest sale price, or lowest monthly rent for rentals, in reais.

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

Highest sale price, or highest monthly rent for rentals, in reais.

## `minArea` (type: `integer`):

Smallest usable area in square metres.

## `maxArea` (type: `integer`):

Largest usable area in square metres.

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

1 to 4 (4 means 4 or more).

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

1 to 4 (4 means 4 or more).

## `minParkingSpaces` (type: `integer`):

1 to 4 (4 means 4 or more).

## `sort` (type: `string`):

Newest listings first, or by price.

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

Cap on listings delivered by the run, across all locations and URLs. Each listing is one paid event. Max 10,000.

## `maxItemsPerSearch` (type: `integer`):

Optional cap per location or URL, so the first search does not use the whole run cap. 0 or empty = no per-search cap.

## Actor input object example

```json
{
  "locations": [
    "Pinheiros, São Paulo, SP"
  ],
  "portal": "ZAP",
  "business": "SALE",
  "sort": "NEWEST",
  "maxItems": 50
}
```

# Actor output Schema

## `dataset` (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 = {
    "locations": [
        "Pinheiros, São Paulo, SP"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/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 = {
    "locations": ["Pinheiros, São Paulo, SP"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/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 '{
  "locations": [
    "Pinheiros, São Paulo, SP"
  ],
  "maxItems": 50
}' |
apify call tagadanar/zap-imoveis-scraper --silent --output-dataset

```

## MCP server setup

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