# QuintoAndar Scraper 💰 $1/1K – Brazil Rentals & Sales (`lukass/quintoandar-mp-actor`) Actor

Scrape QuintoAndar rentals and homes for sale in São Paulo, Rio, BH, Curitiba and 80+ Brazilian cities: rent, total monthly cost, condo fee, IPTU, sale price, size, rooms, GPS, amenities, photos. Search by city, neighbourhood or URL. No 1,000-result cap. No login.

- **URL**: https://apify.com/lukass/quintoandar-mp-actor.md
- **Developed by:** [Lukáš Širhal](https://apify.com/lukass) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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

## QuintoAndar Scraper - Brazil Rentals & Sales

Scrape rental and sale listings from [QuintoAndar](https://www.quintoandar.com.br), Brazil's largest
rental platform, across the ~90 cities it serves (São Paulo, Rio de Janeiro, Belo Horizonte, Porto
Alegre, Brasília, Curitiba, Campinas, …).

### How to use

- **Paste a URL** from quintoandar.com.br: a search page
  (`/alugar/imovel/pinheiros-sao-paulo-sp-brasil/apartamento/2-quartos`) or a single listing
  (`/imovel/895834302`). Or
- **Type locations**: a city (`São Paulo`) or `Neighbourhood, City` (`Copacabana, Rio de Janeiro`).

Then narrow with filters: rent or buy, property type, price (rent, total monthly cost or sale
price), condo + IPTU, area, bedrooms, bathrooms, suites, parking, furnished, pets, near the metro,
recently published.

QuintoAndar answers at most 1000 listings per search. The scraper splits bigger searches into map
areas on its own, so a whole city can be scraped in one run.

### Output

Each listing comes with rent, **total monthly cost**, condo fee, IPTU, sale price, rental yield, area,
bedrooms, bathrooms, suites, parking, furnished, elevator, street, neighbourhood, city, **GPS
coordinates**, apartment and building amenities, tags (e.g. `RENT_PRICE_DECREASED`) and photos.

Turn on **Fetch listing details** to also get the full description, ZIP code, building name and
number, floor range, construction year, home insurance and service fee, nearby places, and the first
and last publication dates. That costs one extra request per listing.

```json
{
    "id": "895748113",
    "url": "https://www.quintoandar.com.br/imovel/895748113/alugar",
    "operation": "rent",
    "propertyType": "Apartamento",
    "rent": 3400,
    "totalMonthlyCost": 4904,
    "condoFee": 1280,
    "iptu": 92,
    "area": 39,
    "bedrooms": 2,
    "street": "Rua Anita Garibaldi",
    "neighborhood": "Copacabana",
    "city": "Rio de Janeiro",
    "latitude": -22.9689095,
    "longitude": -43.1879479
}
```

QuintoAndar does not publish unit numbers. `streetNumber` (detail mode) is the building's number
and is only there when the listing belongs to a known condominium.

### Pricing

Pay only for results. Platform usage and proxies are included.

| What you get | Free plan | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Listing | $1.00 / 1,000 | $0.90 | $0.80 | $0.70 |
| + listing details (`Fetch listing details` on) | +$0.50 / 1,000 | +$0.45 | +$0.40 | +$0.35 |
| Run start | $0.005 | $0.005 | $0.004 | $0.003 |

So 1,000 São Paulo rentals cost $1.00, or $1.50 with full details. Set **Maximum listings**, or a
maximum cost per run, to cap a run: the scraper stops as soon as the budget is spent.

### Live API

Need one answer right now instead of a dataset? The Actor also runs as a live HTTP API (Apify
Server mode): each call returns JSON within seconds.

```bash
## One page of a search - any filter of the input works as a query parameter
curl "https://<actor-server-url>/search?location=Pinheiros,%20São%20Paulo&operation=rent&maxPrice=5000&limit=20" \
  -H "Authorization: Bearer <APIFY_TOKEN>"

## One listing with full details
curl "https://<actor-server-url>/listing?id=895834302" -H "Authorization: Bearer <APIFY_TOKEN>"
```

`GET /` lists every parameter. `/search` pages with `offset` and `limit` (up to 100 per call;
QuintoAndar answers at most 1,000 results per search, so use filters or a batch run for more).

| API event | Free plan | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| API request (any answered call) | $4.00 / 1,000 | $3.70 | $3.30 | $3.00 |
| API listing (per listing a `/search` returns) | $1.00 / 1,000 | $0.90 | $0.80 | $0.70 |
| API listing details (per `/listing`) | $1.50 / 1,000 | $1.35 | $1.20 | $1.05 |

Failed calls are never billed, and a search page asked for again within 2 minutes costs no request
fee.

# Actor input Schema

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

Search on quintoandar.com.br, then paste the URL. Works with search pages (/alugar/imovel/sao-paulo-sp-brasil, /comprar/imovel/pinheiros-sao-paulo-sp-brasil/apartamento/2-quartos) and single listings (/imovel/895834302). Rent/sale, property type, bedrooms, furnished, pets and near-subway are read from the URL; the filters below fill in the rest.

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

City or "Neighbourhood, City", one per line, e.g. São Paulo, Pinheiros, São Paulo or Copacabana, Rio de Janeiro. QuintoAndar operates in ~90 Brazilian cities (São Paulo, Rio de Janeiro, Belo Horizonte, Porto Alegre, Brasília, Curitiba, Campinas, …).

## `operation` (type: `string`):

Used for locations. Pasted URLs keep their own (alugar/comprar).

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

Leave empty for all types

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

Monthly rent for rentals, asking price for sales

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

Monthly rent for rentals, asking price for sales

## `rentPriceType` (type: `string`):

Bare rent, or the total monthly cost (rent + condo fee + IPTU + insurance + fees) - QuintoAndar offers both

## `maxCondoIptu` (type: `integer`):

Highest monthly condo fee plus IPTU (property tax) a listing may have

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

Smallest usable area a listing may have, e.g. 50

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

Largest usable area a listing may have, e.g. 120

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

Fewest bedrooms a listing may have

## `maxBedrooms` (type: `integer`):

Most bedrooms a listing may have

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

Fewest bathrooms a listing may have

## `minSuites` (type: `integer`):

Fewest suites (bedrooms with their own bathroom) a listing may have

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

Fewest parking spaces a listing may have

## `furnished` (type: `boolean`):

Checked: furnished only. Unchecked: unfurnished only. Leave unset for both.

## `petsAllowed` (type: `boolean`):

Checked: only listings that accept pets. Leave unset for all.

## `nearSubway` (type: `boolean`):

Checked: only listings near a metro station. Leave unset for all.

## `publishedWithinDays` (type: `integer`):

e.g. 7 for listings (re)published during the last week

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

Order within each search. Large searches are split into map areas, so the order holds per area, not across the whole dataset.

## `fetchDetails` (type: `boolean`):

Open every listing page for the full description, ZIP code, building name and number, floor range, construction year, publication dates and nearby places. One extra request per listing.

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

Stop after this many listings. Leave empty for everything.

## `maxSplitDepth` (type: `integer`):

QuintoAndar returns at most 1000 listings per search, so bigger searches are split into map quadrants, recursively. 8 levels covers the largest cities.

## `proxy` (type: `object`):

Apify Proxy is recommended. The API has shown no bot protection, so the default group is enough; switch to Residential (BR) if requests start failing.

## `debugLog` (type: `boolean`):

Log every request the Actor makes - useful when a search returns nothing

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.quintoandar.com.br/alugar/imovel/pinheiros-sao-paulo-sp-brasil"
    }
  ],
  "locations": [
    "Pinheiros, São Paulo"
  ],
  "operation": "rent",
  "propertyTypes": [],
  "rentPriceType": "rent",
  "sortBy": "newest",
  "fetchDetails": false,
  "maxItems": 100,
  "maxSplitDepth": 8,
  "proxy": {
    "useApifyProxy": true
  },
  "debugLog": false
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.quintoandar.com.br/alugar/imovel/pinheiros-sao-paulo-sp-brasil"
        }
    ],
    "locations": [
        "Pinheiros, São Paulo"
    ],
    "maxItems": 100,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lukass/quintoandar-mp-actor").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.quintoandar.com.br/alugar/imovel/pinheiros-sao-paulo-sp-brasil" }],
    "locations": ["Pinheiros, São Paulo"],
    "maxItems": 100,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lukass/quintoandar-mp-actor").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.quintoandar.com.br/alugar/imovel/pinheiros-sao-paulo-sp-brasil"
    }
  ],
  "locations": [
    "Pinheiros, São Paulo"
  ],
  "maxItems": 100,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call lukass/quintoandar-mp-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lukass/quintoandar-mp-actor"
        }
    }
}
```

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/vMDdiQmvc3E77IhpY/builds/p4fNTVFzXEKFs2cPZ/openapi.json
