# VivaReal and ZAP Imóveis Scraper - Brazil Property Listings (`deepurple/vivareal-listings-scraper`) Actor

Scrape VivaReal and ZAP Imóveis in one actor: sale and rental price, condo fee, IPTU, total monthly cost, area, rooms, address with coordinates, amenities, agency name and business phone. Big cities are split automatically past the portal result cap. Pay per listing.

- **URL**: https://apify.com/deepurple/vivareal-listings-scraper.md
- **Developed by:** [Misha Ershov](https://apify.com/deepurple) (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.90 / 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

## VivaReal and ZAP Imoveis Scraper: Brazil Property Listings for Sale and Rent

Collect property listings from **VivaReal** (vivareal.com.br) and **ZAP Imoveis** (zapimoveis.com.br) by city, neighborhood or pasted search link. Each row is a flat, spreadsheet-ready record with price, condo fee, IPTU, area, rooms, full address with coordinates, amenities, photos and the listing agency.

You only need an Apify account. No API key, no login, no extra proxy subscription: residential Brazil proxies are built in and selected by default.

### What you can do with it

- **Market monitoring.** Track asking prices and price per square meter by neighborhood, week over week.
- **Investment research.** Compare sale prices against rents in the same area and compute gross yield from `price` and rental rows.
- **Rental cost analysis.** Rental rows include `totalMonthlyCost` (rent plus condo fee plus monthly IPTU).
- **Lead and competitor research for real estate businesses.** Agency name, license, tier and published business phone (can be switched off).
- **Geo datasets.** Latitude and longitude, zone, neighborhood and zip code for mapping.

### Input

| Field | What it does |
|---|---|
| `portal` | `vivareal` or `zap`. Both share one backend, so rows have the same shape. |
| `locations` | Places such as `São Paulo, SP` or `Pinheiros, São Paulo, SP`. Always include the state code. |
| `searchUrls` | Optional: paste vivareal / zapimoveis result links. Place, business type and filters in the link are honored. |
| `businessType` | `SALE` or `RENTAL`. |
| `propertyStatus` | `USED`, `DEVELOPMENT` (new builds) or `ANY`. |
| `unitTypes` | Apartment, house, condominium, penthouse, flat, kitnet, farm, office, commercial, land, building. |
| `usageType` | `ANY`, `RESIDENTIAL` or `COMMERCIAL`. |
| `priceMin`, `priceMax` | Price range in BRL. |
| `minArea`, `maxArea` | Usable area in m2. |
| `minBedrooms`, `minBathrooms`, `minParkingSpaces` | Minimum room counts. |
| `amenities` | Keep only listings that have these amenities. |
| `sortBy` | `relevance`, `price-asc`, `price-desc`, `newest`. |
| `maxResults` | Total rows to return (default 50). You pay per returned row, so this is your budget cap. |
| `includeAgencyContacts` | Include the agency business phone numbers (default on). No e-mail addresses and no private-person contacts are ever collected. |
| `sliceThreshold` | When one search has more results than this, it is split into price bands so the portal's result window does not cut it off. |
| `proxyConfiguration` | Defaults to Apify Residential, Brazil. Leave it as is. |

#### Example input

```json
{
  "portal": "vivareal",
  "locations": ["Pinheiros, São Paulo, SP"],
  "businessType": "RENTAL",
  "unitTypes": ["APARTMENT"],
  "minBedrooms": 2,
  "priceMax": 6000,
  "maxResults": 100
}
```

### Output

One row per listing, all fields always present (null when the portal does not publish a value). Main groups:

- **Identity:** `listingId`, `url`, `portal`, `recordType`, `title`, `description`
- **Deal:** `businessType`, `listingType`, `propertyType`, `unitTypes`, `usageTypes`, `constructionStatus`
- **Money:** `price`, `currency`, `monthlyCondoFee`, `iptu`, `iptuMonthly`, `pricePerSquareMeter`, `totalMonthlyCost` (rentals), `acceptsExchange`
- **Size and rooms:** `usableArea`, `totalAreas`, `bedrooms`, `bathrooms`, `suites`, `parkingSpaces`, `unitFloor`, `floors`
- **Amenities:** `amenities` (readable) and `amenitiesRaw` (portal codes)
- **Location:** `street`, `streetNumber`, `neighborhood`, `zone`, `city`, `state`, `stateAbbr`, `zipCode`, `addressFull`, `latitude`, `longitude`, `locationId`
- **Media:** `images`, `imageCount`, `videoTourLink`
- **Dates:** `listedAt`, `updatedAt`, `scrapedAt`
- **Agency:** `agencyId`, `agencyName`, `agencyLicense`, `agencyTier`, `agencyPhone`, `agencyMobile`, `agencyWhatsapp`, `agencyWebsite`
- **Run context:** `searchLocation`, `searchPosition`, `sourcePortal`

### Pricing

You are charged one `property` event per row stored in the dataset, never for a row that was not saved. The run stops by itself when your spending limit is reached.

### FAQ

**How many listings can one search return?** Portals cap how deep a single search can page. When a search has more results than `sliceThreshold`, the actor automatically splits it into price bands, so large cities can be collected in full.

**Can I scrape ZAP Imoveis too?** Yes, set `portal` to `zap`.

**Does it collect e-mails or private phone numbers?** No. Only the business phone lines the agency publishes on the listing, and you can turn them off.

**A run returned fewer rows than expected.** Narrow place names are matched against the portal's location index. Add the state code and check the spelling, or paste a search link instead.

# Actor input Schema

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

Which portal's listing pages to search. VivaReal and ZAP Imóveis share one property database, so results are nearly identical; choose the one whose listing URLs you want in the output.

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

Cities or neighborhoods to search, written as 'City, UF' or 'Neighborhood, City, UF' (for example 'São Paulo, SP' or 'Pinheiros, São Paulo, SP'). Each location is searched separately and duplicates are returned once.

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

Alternative or addition to locations: paste vivareal.com.br or zapimoveis.com.br results-page links such as https://www.vivareal.com.br/venda/sp/sao-paulo/apartamento_residencial/. Sale or rent, state, city, neighborhood and property type in the link are honored.

## `businessType` (type: `string`):

Search properties for sale or for rent. Ignored for pasted URLs, which carry their own choice.

## `propertyStatus` (type: `string`):

Resale (used) properties, new developments (lançamentos), or both.

## `unitTypes` (type: `array`):

Only these property types. Leave empty for all types.

## `usageType` (type: `string`):

Restrict to residential or commercial use, or leave on Any.

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

Skip properties priced below this amount in Brazilian reais (monthly rent for rentals). Leave empty for no lower limit.

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

Skip properties priced above this amount in Brazilian reais (monthly rent for rentals). Leave empty for no upper limit.

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

Skip properties with a smaller usable area. Leave empty for no lower limit.

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

Skip properties with a larger usable area. Leave empty for no upper limit.

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

Keep only properties with at least this many bedrooms.

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

Keep only properties with at least this many bathrooms.

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

Keep only properties with at least this many parking spaces.

## `amenities` (type: `array`):

Keep only properties that have all of these amenities.

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

Order in which the portal returns properties.

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

Total properties to return across all locations. Billing is per returned property, so this is your budget cap.

## `includeAgencyContacts` (type: `boolean`):

Add the business phone numbers the agency published on each listing (landline, mobile and WhatsApp). Turn off to leave the contact fields empty.

## `sliceThreshold` (type: `integer`):

Searches with more results than this are automatically cut into price bands so the portal's result window never hides listings. Lower it only if big searches return fewer rows than expected.

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

Brazilian residential proxies are used by default and are required; datacenter IPs are blocked by the portals.

## Actor input object example

```json
{
  "portal": "vivareal",
  "locations": [
    "São Paulo, SP"
  ],
  "businessType": "SALE",
  "propertyStatus": "USED",
  "usageType": "ANY",
  "sortBy": "relevance",
  "maxResults": 50,
  "includeAgencyContacts": true,
  "sliceThreshold": 1400,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# Actor output Schema

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

Dataset with the scraped property listings.

# 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": [
        "São Paulo, SP"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepurple/vivareal-listings-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": ["São Paulo, SP"],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("deepurple/vivareal-listings-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": [
    "São Paulo, SP"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}' |
apify call deepurple/vivareal-listings-scraper --silent --output-dataset

```

## MCP server setup

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