# VivaReal Scraper · Sale and rental listings · $2/1K (`mlg14/vivareal-scraper`) Actor

Scrape property listings from VivaReal Brazil for real-estate price research, investment screening and lead generation. Sale and rental homes by city or URL with price, area, address, amenities, images and advertiser. $2/1K results.

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

## Pricing

$2.00 / 1,000 results

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

## VivaReal Scraper

Scrape VivaReal property listings by Brazilian city or city search URL, then export VivaReal real estate data as JSON, CSV, or a spreadsheet. This VivaReal API alternative collects public sale and rental listings with prices, property details, locations, photos, and public advertiser information in one consistent dataset.

Enter a city name such as `São Paulo` or a city URL such as `https://www.vivareal.com.br/venda/sp/sao-paulo/`. Set a result limit for a small research sample or collect multiple pages for a broader view. Each dataset row represents one unique property listing. Results include a direct source link so you can inspect the current public advertisement.

### What data can you extract from VivaReal?

The source exposes listing fields at different levels of completeness. The output uses flat camelCase keys. A missing optional value is `null`, while `amenities`, `images`, and `advertiserPhones` are empty arrays when none are supplied. Prices and fees are numeric values in Brazilian reais; areas are in square metres. Source codes such as `APARTMENT` and `SALE` are retained so they can be filtered without translation ambiguity.

| Field | Description | Example |
|---|---|---|
| `id` | Stable source listing identifier | `"2574767489"` |
| `externalId` | Advertiser's external identifier, if published | `"CY3108PB"` |
| `url` | Public property advertisement URL | `"https://www.vivareal.com.br/imovel/..."` |
| `title` | Listing headline | `"Apartamento para venda tem 56 m² com 2 quartos..."` |
| `description` | Advertisement text with markup removed | `"Apartamento próximo a serviços..."` |
| `listingType` | Transaction associated with the chosen price | `"SALE"` |
| `propertyType` | Unit type | `"APARTMENT"` |
| `sourceListingType` | Source category | `"USED"` |
| `sourcePropertyType` | Source property class | `"UNIT"` |
| `price` | Advertised sale or rental price in BRL | `526438` |
| `condoFee` | Monthly condominium fee in BRL | `1` |
| `iptu` | Published property tax amount in BRL | `1` |
| `iptuPeriod` | Source tax period label | `"Period_NONE"` |
| `usableArea` | First advertised usable area in m² | `56` |
| `totalArea` | First advertised total area in m² | `68` |
| `bedrooms` | First published bedroom count | `2` |
| `bathrooms` | First published bathroom count | `2` |
| `parkingSpaces` | First published parking space count | `1` |
| `suites` | First published suite count | `1` |
| `street` | Published street name | `"Rua Dom Vilares"` |
| `neighborhood` | Published neighborhood | `"Vila das Mercês"` |
| `city` | City shown on the advertisement | `"São Paulo"` |
| `state` | Two letter state code | `"SP"` |
| `stateName` | Full state name | `"São Paulo"` |
| `zipCode` | Postal code kept as text | `"04160001"` |
| `lat` | Published or approximate latitude | `-23.622293` |
| `lng` | Published or approximate longitude | `-46.602496` |
| `coordinatesApproximate` | Whether the source marks the point approximate | `false` |
| `amenities` | Source amenity codes | `["ELEVATOR", "GYM"]` |
| `images` | Photo URLs when media is supplied | `["https://resizedimgs.vivareal.com/..."]` |
| `advertiserName` | Public advertiser display name | `"(public display name)"` |
| `advertiserPhones` | Published phone numbers with duplicates removed | `["(public number)"]` |
| `whatsapp` | Published messaging number, if present | `"(public number)"` |
| `createdAt` | Source creation timestamp | `"2022-08-05T18:24:13.854Z"` |
| `updatedAt` | Source update timestamp | `"2026-09-17T22:55:40.729Z"` |

The address describes what the advertiser makes public. Some advertisements show only a neighborhood or an approximate map point. `coordinatesApproximate` helps distinguish a precise point from a general location. A postal code can start with zero, which is why `zipCode` is text rather than a number. Do not interpret an absent total area, fee, phone number, or tax amount as zero.

### How to scrape VivaReal

1. Enter a city name or a VivaReal city search URL in `location`.
2. Keep `transaction` on `auto` to use the URL's sale or rental path. For a city name, `auto` searches sale listings; choose `rental` to search rental listings.
3. Set `maxItems` to the number of unique properties you need. Add a minimum or maximum price only when you want a narrower result set.
4. Run the actor and inspect the first rows in its dataset. Download JSON, CSV, or a spreadsheet format from the dataset view.

A city URL includes a state code, which makes city selection unambiguous. A plain city name must resolve to one city. If several cities have the same name, use a city URL with a state code. The actor searches the published location index first, then requests listing pages for the matched location identifier. This prevents a text match elsewhere in an address from being mistaken for a city filter.

### Input

The input is deliberately small. The first three parameters cover the main search workflow. Price bounds are optional, and the proxy setting normally needs no adjustment.

| Name | Type | Default | Description |
|---|---|---|---|
| `location` | string | Required | Brazilian city name or a VivaReal city search URL. |
| `transaction` | string | `"auto"` | `auto`, `sale`, or `rental`. `auto` follows a URL path and otherwise means sale. |
| `maxItems` | integer | `100` | Maximum unique listings. Zero requests more pages up to the safety limit. |
| `minPrice` | integer | Omitted | Minimum advertised price in BRL. |
| `maxPrice` | integer | Omitted | Maximum advertised price in BRL. |
| `proxyConfiguration` | object | Platform proxy | The actor starts with datacenter access and escalates after a block. |

Example sale search:

```json
{
  "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
  "transaction": "auto",
  "maxItems": 100
}
```

Example rental search using a city name:

```json
{
  "location": "Aracaju",
  "transaction": "rental",
  "maxItems": 60,
  "maxPrice": 3000
}
```

The first example searches São Paulo sale properties. The second searches Aracaju rentals within a price ceiling. Price is taken from the entry matching the selected transaction. Some advertisements publish both a sale and a rental price; the row uses the price for the requested transaction. A listing can move, be edited, or disappear after a run, so use `url` and `updatedAt` when reviewing historical exports.

### Output example

The selected fields below came from the first item of the successful 40-property São Paulo run. The amenity and photo arrays are shortened; description and public contact fields are omitted from this display example. The dataset retains the full record.

```json
{
  "id": "2574767489",
  "externalId": "CY3108PB",
  "url": "https://www.vivareal.com.br/imovel/apartamento-2-quartos-vila-das-merces-zona-sul-sao-paulo-com-garagem-56m2-venda-RS526438-id-2574767489/",
  "title": "Apartamento para venda tem 56 m² com 2 quartos em Vila das Mercês - São Paulo - SP",
  "listingType": "SALE",
  "propertyType": "APARTMENT",
  "sourceListingType": "USED",
  "sourcePropertyType": "UNIT",
  "price": 526438,
  "condoFee": 1,
  "iptu": 1,
  "iptuPeriod": "Period_NONE",
  "usableArea": 56,
  "totalArea": null,
  "bedrooms": 2,
  "bathrooms": 2,
  "parkingSpaces": 1,
  "suites": 1,
  "street": "Rua Dom Vilares",
  "neighborhood": "Vila das Mercês",
  "city": "São Paulo",
  "state": "SP",
  "stateName": "São Paulo",
  "zipCode": "04160001",
  "lat": -23.622293,
  "lng": -46.602496,
  "coordinatesApproximate": false,
  "amenities": [
    "ELEVATOR",
    "SPORTS_COURT",
    "BICYCLES_PLACE"
  ],
  "images": [
    "https://resizedimgs.vivareal.com/img/vr-listing/c9335f5d7ffc29e8f85c97cebb1b4e8d/apartamento-para-venda-tem-56-m-com-2-quartos-em-vila-das-merces-sao-paulo-sp.webp?action=crop&dimension=360x240"
  ],
  "createdAt": "2022-08-05T18:24:13.854Z",
  "updatedAt": "2026-09-17T22:55:40.729Z"
}
```

The same keys become columns in a CSV or spreadsheet export. Arrays remain arrays in JSON and are serialized for tabular formats. A photo URL is generated from the source media template using a readable title segment and a standard image size. If a listing has no media, `images` is empty. The actor keeps the source amenity codes because they are stable across translated interfaces.

### Use cases

- Property analysts can compare advertised prices, usable area, and bedroom counts within one Brazilian city.
- Rental researchers can track asking rent and condominium fees over repeated snapshots of the same location.
- Buyers can build a bounded shortlist and revisit current advertisements through their direct URLs.
- Housing researchers can compare neighborhood availability while retaining the source listing ID for deduplication.
- Market teams can inspect which amenities and property types are most common in a selected price range.
- Operations teams can monitor new or updated advertisements by comparing `id`, `createdAt`, and `updatedAt` between runs.

These are observations of public advertisements, not verified transaction records. An advertised price can change, and the listing count returned by a search can fluctuate as the site adds, removes, or ranks advertisements. If a calculation will guide a purchase or investment decision, verify the linked current advertisement and any important details independently.

### How much does it cost to scrape VivaReal?

The configured result price is **$2.00 per 1,000 properties**, or **$0.002 per delivered property**, with platform usage included in this pricing model. A 100 property run costs **$0.20** in result charges. A 1,000 property run costs **$2.00**. A 5,000 property run costs **$10.00** if that many public listings can be collected for the chosen search. These are arithmetic examples based on delivered rows; an input limit is a ceiling, not a promise that the source will expose that many listings.

The actor uses a platform proxy to request the source. Residential access can be used after a block and may consume account proxy allowance. Keep `maxItems` small when testing a location, inspect the first dataset, and increase the limit once the results are relevant. If your account has a spending limit, the run stops when its event charging limit is reached.

### Tips for best results

Start with a city URL if a city name could refer to more than one place. The URL's state code lets the actor select the corresponding city in the location index. For a plain city name, check the first rows to confirm `city` and `state` match your intended area. The actor does not quietly substitute a text search when a city cannot be resolved.

Use `transaction` when comparing sale and rental listings. `auto` reads `/venda/` as sale and `/aluguel/` as rental. If you supply only a city name, select `rental` explicitly for rental data. A price bound is measured against the selected sale or rental price, not against a combined monthly housing cost. The separate `condoFee` and `iptu` fields let you calculate additional costs downstream with the period labels visible.

For a snapshot series, save the exact input and the run date with each export. Match rows by `id` when comparing repeated runs. Two pages can occasionally contain the same listing because ranking changes while a crawl is in progress; the actor removes duplicate IDs within a run. If the source returns fewer than the requested maximum, review the search location, price limits, and source availability before concluding that the market contains no other listings.

When using images, retain the original `url` alongside any photo URL. The photo service can resize or replace images over time. An address may be generalized; use `coordinatesApproximate` before doing distance calculations. If a field matters to a decision and the row contains `null`, inspect the public listing rather than filling the gap with an assumed value.

### Limits

The listing endpoint accepts **20 results per request** in the verified search path and rejected a 50-result request. The actor therefore paginates in 20-result slices, stops at `maxItems`, and has a 500-page safety limit when `maxItems` is zero. Very large city searches may expose more matches than one run can collect through that limit. Split broad research into narrower city, transaction, and price searches, then deduplicate by `id`.

City names and city search URLs are supported. Common residential apartment and house URL suffixes can be interpreted as property type filters; other specialized URL paths produce a clear input error. Query strings on a pasted search URL are not reproduced as filters. Use the explicit input fields for price and transaction. The location index can return similar names, so a city URL is the safer choice when names are ambiguous.

Some advertisements omit total area, suites, street, exact coordinates, tax, photos, or public contact details. Published fees may reflect placeholders or outdated advertiser input; the actor reports the number the source provides. The source can return an approximate map point, indicated by `coordinatesApproximate`. Listing pages can be removed after collection. Access controls or source changes can reduce result counts or prevent a run from completing, and no historical completeness guarantee is made.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/vivareal-scraper`

The actor returns one dataset item per property (price, area, address, amenities, images, advertiser). Keep `maxItems` at 20-100 so runs finish quickly.

**Prompt 1:** "Get 40 apartments for sale in São Paulo from VivaReal."

```json
{
  "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
  "transaction": "sale",
  "maxItems": 40
}
```

**Prompt 2:** "Find 30 rentals in Rio de Janeiro under BRL 3,000 on VivaReal."

```json
{
  "location": "https://www.vivareal.com.br/aluguel/rj/rio-de-janeiro/",
  "transaction": "rental",
  "maxItems": 30,
  "maxPrice": 3000
}
```

**Prompt 3:** "Collect 25 properties in Belo Horizonte priced above BRL 500,000."

```json
{
  "location": "Belo Horizonte",
  "transaction": "sale",
  "maxItems": 25,
  "minPrice": 500000
}
```

### FAQ

**Is it legal to collect these listings?** The actor reads public listing information. Follow the site's terms and applicable law, including privacy rules, and use public contact details responsibly. Do not republish photos or personal information without the rights to do so.

**Do I need to configure a proxy?** Usually no. The default configuration uses platform proxy access and can escalate to a Brazilian residential route after a block. If you provide a custom proxy configuration, make sure it can reach the public site from Brazil.

**How fast is a run?** Time depends on proxy response, location lookup, and the number of 20-item pages needed. A small input is the best way to measure current performance for your account. Broad searches and retrying blocked requests can take longer.

**Can I schedule and monitor runs?** Yes. Save a working input, schedule repeat runs, and monitor the run status and result count. Compare datasets by stable listing ID rather than row position, because search ranking changes.

**Can I export to a spreadsheet?** Yes. Download the dataset in CSV or spreadsheet format, or feed its JSON rows to your own reporting workflow. Keep IDs and URLs as columns for checking and deduplication.

**Why is a field empty?** The public search response may not include that value, or the advertiser may not have supplied it. For example, a listing can have usable area but no total area, or an approximate point but no exact coordinates.

**Does a pasted URL carry all of its filters?** The city, sale or rental path, and supported residential property suffix are interpreted. Other query-string filters are not carried into the input. Use `minPrice`, `maxPrice`, and `transaction` for those controls.

**What happens when the source changes during a run?** Duplicate IDs are removed from that run. Page ranking can still change between requests, so a very large search is better split into narrower slices when repeatability matters.

### Integrations

Read the default dataset through the platform API or download it after a run. Completion webhooks can start another workflow, and scheduled runs can create regular market snapshots. A spreadsheet or database import can join records on `id`, while the source `url` keeps every row traceable. Preserve numeric prices, text postal codes, and the coordinate precision flag when moving data to another system.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `location` (type: `string`):

Brazilian city name or a VivaReal city sale or rental URL. Example: https://www.vivareal.com.br/venda/sp/sao-paulo/ or São Paulo. Use a URL to control sale or rental and the city exactly; city names default to sale.

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

Sale or rental search. Allowed values: auto (take it from the URL, sale for city names), sale, rental. Example: rental for rent listings. Use auto unless you want to override the URL path.

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

Stop after this many unique properties; 0 continues until the source ends or the 500-page safety limit. Example: 50 for a quick sample. Use 20-100 for tests and agent calls.

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

Optional minimum listing price in Brazilian reais (integer). Example: 300000 for sales above BRL 300,000. Leave empty for no lower price limit.

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

Optional maximum listing price in Brazilian reais (integer). Example: 3000 for rentals under BRL 3,000. Leave empty for no upper price limit.

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

Use the platform proxy. The actor starts with datacenter access and escalates to Brazilian residential access on a block.

## Actor input object example

```json
{
  "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
  "transaction": "auto",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `properties` (type: `string`):

Scraped properties in the default dataset.

# 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 = {
    "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/vivareal-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 = {
    "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/vivareal-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 '{
  "location": "https://www.vivareal.com.br/venda/sp/sao-paulo/",
  "maxItems": 50
}' |
apify call mlg14/vivareal-scraper --silent --output-dataset

```

## MCP server setup

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