# Quinto Andar API (`brasil-scrapers/quinto-andar-api`) Actor

Quinto Andar API: extraia dados detalhados de imóveis no Brasil utilizando esse scraper do Quinto Andar, incluindo tipo, localização, preço e descrição.
Ideal para análise de mercado e buscas imobiliárias. Automatize a coleta de informações do Quinto Andar com eficiência.

- **URL**: https://apify.com/brasil-scrapers/quinto-andar-api.md
- **Developed by:** [Brasil Scrapers](https://apify.com/brasil-scrapers) (community)
- **Categories:** Real estate, Automation
- **Security:** Full permissions
- **Stats:** 246 total users, 4 monthly users, 100.0% runs succeeded, 13 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## What is Quinto Andar Scraper?

This is a scraper designed to extract property data from the Quinto Andar website, one of the biggest brazilian real estate platforms for buying and renting properties. It allows you to scrape property information by providing a list of start URLs.
It scrapes all the property information from the website, for example: price, location, number of bedrooms, number of bathrooms, description, etc.

## Why use Quinto Andar Scraper?

Quinto Andar Scraper is a great tool for real estate agents, brokers, and investors who want to scrape property data from Quinto Andar. It allows you to scrape property data from Quinto Andar without having to write any code.

## Input Options

The json below shows all the inputs available.
Location can be either the city name (exactly as shown in the Quinto Andar's website) or the first URL after the first search you make in the website (example: https://www.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil).

```json
{
    "location": "São Paulo",
    "searchType": "rent",
    "maxConcurrency": 5,
    "maxItems": 10,
    "apartments": true,
    "condominiumHouses": true,
    "houses": true,
    "studioApartments": true,
    "minArea": null,
    "maxArea": null,
    "minPrice": null,
    "maxPrice": null,
    "rentValueType": "total",
    "minCondoPrice": null,
    "maxCondoPrice": null,
    "minBedrooms": null,
    "minBathrooms": null,
    "minGarages": null,
    "furnished": null,
    "closeToSubway": null,
    "minSuits": null,
    "acceptPets": null,
    "availability": null
}
```

### Basic Configuration

#### location (required)

Must be one of the two options:

- City name - must be exactly as listed below
- URL after the first search, example: https://www.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil

Available cities: `São Paulo`, `Rio de Janeiro`, `Belo Horizonte`, `Porto Alegre`, `Brasília`, `Curitiba`, `Goiania`, `Campinas`, `Canoas`, `Guarulhos`, `Jundiaí`, `Nova Lima`, `Novo Hamburgo`, `Niterói`, `Osasco`, `Santo André`, `São Bernardo do Campo`, `São Caetano do Sul`, `Barueri`, `São Leopoldo`, `Florianópolis`, `São José`, `Contagem`, `Taboão da Serra`, `Diadema`, `São José dos Pinhais`, `Várzea Paulista`, `Pinhais`, `Santana de Parnaíba`, `Santos`, `Recife`, `Salvador`, `Mogi das Cruzes`, `São José dos Campos`, `Cotia`, `Ribeirão Preto`, `Sorocaba`, `São José do Rio Preto`, `Uberlândia`, `Vinhedo`, `Indaiatuba`, `Nova Iguaçu`, `Americana`, `Hortolândia`, `Paulínia`, `Praia Grande`, `Guarujá`, `Carapicuíba`, `Votorantim`, `São Vicente`, `Duque de Caxias`, `São Gonçalo`, `Betim`, `Aparecida de Goiânia`, `Suzano`, `Itaquaquecetuba`, `Sumaré`, `Embu das Artes`, `Ferraz de Vasconcelos`, `Poá`, `Gravataí`, `Viamão`, `Alvorada`, `Jaboatão dos Guararapes`, `Belford Roxo`, `Nilópolis`, `Mesquita`, `Taubaté`, `Jacareí`, `Ribeirão das Neves`, `Ribeirão Pires`, `Brumadinho`, `Itabirito`, `Lagoa Santa`, `Sabará`, `Vespasiano`, `Fortaleza`, `Manaus`, `Belém`

#### searchType (required)

It can be one of those values:

- `rent` - to search for properties to rent
- `buy` - to search for properties to sale

#### maxItems

- The number of properties to scrape data. Default is 5.

#### maxConcurrency

This property allows you to set the maximum number of concurrent requests. Default is 5. More concurrent requests needs more memory!

### Property Types

#### apartments

- Boolean value, set it true if you want to search for apartments. Default: true

#### houses

- Boolean value, set it true if you want to search for houses. Default: true

#### studioApartments

- Boolean value, set it true if you want to search for studio apartments (kitnet). Default: true

#### condominiumHouses

- Boolean value, set it true if you want to search for condominium houses. Default: true

### Area Filters

#### minArea

- Minimum property area in square meters (m²)
- If not specified, defaults to 20 m²

#### maxArea

- Maximum property area in square meters (m²)
- If not specified, defaults to 10,000 m²

### Price Filters

#### minPrice

- Minimum property price in Brazilian Reais (R$)
- For `searchType: "rent"` - monthly rent amount
- For `searchType: "buy"` - total sale price
- If not specified, defaults to 0

#### maxPrice

- Maximum property price in Brazilian Reais (R$)
- For `searchType: "rent"` - monthly rent amount
- For `searchType: "buy"` - total sale price
- If not specified, defaults to 20,000,000

#### rentValueType *(rent only)*

Type of rent value to filter. Only applies when `searchType: "rent"`

- `total` - includes rent + condominium + IPTU (default)
- `rentOnly` - filters only by base rent value

#### minCondoPrice *(buy only)*

- Minimum condominium fee + IPTU in Brazilian Reais (R$)
- Only applies when `searchType: "buy"`
- If not specified, defaults to 0

#### maxCondoPrice *(buy only)*

- Maximum condominium fee + IPTU in Brazilian Reais (R$)
- Only applies when `searchType: "buy"`
- If not specified, defaults to 15,000

### Rooms and Spaces

#### minBedrooms

- Minimum number of bedrooms
- Setting to `1` means 1+ bedrooms, `2` means 2+ bedrooms, etc.

#### minBathrooms

- Minimum number of bathrooms (range from 1 to 4)
- Setting to `2` will search for properties with 2, 3, or 4 bathrooms

#### minGarages

- Minimum number of parking/garage spaces (range from 1 to 3)
- Setting to `1` will search for properties with 1, 2, or 3 parking spaces

#### minSuits

- Minimum number of suites/master bedrooms
- Setting to `1` means 1+ suites, `2` means 2+ suites, etc.

### Amenities and Features

#### furnished

- Filter by furnished status
- `furnished` - only furnished properties
- `unfurnished` - only unfurnished properties
- `both` - no filter (default)

#### closeToSubway

- Filter properties close to subway/metro stations
- `yes` - only properties near subway
- `no` - only properties not near subway
- `both` - no filter (default)

#### acceptPets *(rent only)*

Filter by pet acceptance. Only applies when `searchType: "rent"`

- `yes` - only pet-friendly properties
- `no` - only properties that don't accept pets
- `both` - no filter (default)

#### availability *(rent only)*

Filter by property availability. Only applies when `searchType: "rent"`

- `available` - immediately available properties
- `soon` - properties available soon
- `both` - no filter (default)

## Sample Output JSON

This is an example of the data scraped by this scraper.

```
{"url": "https://www.quintoandar.com.br/imovel/892922636/alugar/apartamento-2-quartos-freguesia-de-jacarepagua-rio-de-janeiro",
  "title": "Apartamento com 2 quartos para alugar em Freguesia de Jacarepaguá, Rio de Janeiro por R$ 1.400,00 - QuintoAndar",
  "houseInfo": {
    "id": "892922636",
    "displayId": "222636",
    "bedrooms": 2,
    "city": "Rio de Janeiro",
    "cityId": 1507,
    "bathrooms": 2,
    "iptu": 77,
    "area": 60,
    "rentPrice": 1400,
    "condoPrice": 744,
    "condoType": "Normal",
    "region": {
      "name": "Freguesia ",
      "hub": {
        "loading": "UNSET",
        "enabled": false,
        "abSecretariat": false,
        "isPrimaryMarket": false
      },
      "id": 1648
    },
    "type": "Apartamento",
    "iptuType": "Normal",
    "totalCost": 2276,
    "parkingSpaces": 1,
    "address": {
      "street": "Rua Orizona",
      "neighborhood": "Freguesia de Jacarepaguá",
      "city": "Rio de Janeiro",
      "zipCode": "22755-160",
      "stateName": "Rio de Janeiro",
      "stateAcronym": "RJ",
      "lat": -22.944633,
      "lng": -43.3433841,
      "countryName": "Brasil",
      "countryCode": "BR",
      "country": "Brasil"
    },
    "floor": 3,
    "homeProtection": 19,
    "remarks": "Ampla rede de comércio próxima, condução para vários bairros inclusive Barra da Tijuca e Centro, bares restaurantes, mercados (Mundial e Prezunic), padaria, bancos, escolas, etc. Muito amplo o imóvel (construção antiga). Imóvel todo revisado. Tudo funcionando. Pronto pra morar. Preço acessível pra média da região!",
    "furniture": "Imóvel mobiliado com armários planejados na cozinha , ventiladores de teto, luminárias, ar condicionado spliter, chuveiro elétrico, armário em um dos quartos,, espelho de banheiro e armário de bancada de pia, box de blindex, banheiro de empregada, área de serviço.",
    "acceptsPets": true,
    "hasFurniture": false,
    "isNearSubway": false,
    "placesNearby": [...],
    "installations": [...]
    "amenities": [...],
    "offers": {
      "closingRate": 0,
      "shouldHighlightIcon": true,
      "shouldShowOfferDialog": false,
      "shouldShowOffers": false,
      "summary": []
    },
    "condominium": {
      "hashId": "jdjrsv2rek",
      "name": "Edifício Meridional",
      "slug": "edificio-meridional-catumbi-rio-de-janeiro",
      "address": "Rua Itapiru"
    },
    "forRent": true,
    "forSale": false,
    "salePrice": 0,
    "mortgageFirstInstallment": 0
    ...
  }

```

# Actor input Schema

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

Locations to search for properties. Acceptable values. Must be one of the two options:

- URLs of the search made on Quinto Andar website. (Example: https://www.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil)
- City name. Available cities: `São Paulo`, `Rio de Janeiro`, `Belo Horizonte`, `Porto Alegre`, `Brasília`, `Curitiba`, `Goiania`, `Campinas`, `Canoas`, `Guarulhos`, `Jundiaí`, `Nova Lima`, `Novo Hamburgo`, `Niterói`, `Osasco`, `Santo André`, `São Bernardo do Campo`, `São Caetano do Sul`, `Barueri`, `São Leopoldo`, `Florianópolis`, `São José`, `Contagem`, `Taboão da Serra`, `Diadema`, `São José dos Pinhais`, `Várzea Paulista`, `Pinhais`, `Santana de Parnaíba`, `Santos`, `Recife`, `Salvador`, `Mogi das Cruzes`, `São José dos Campos`, `Cotia`, `Ribeirão Preto`, `Sorocaba`, `São José do Rio Preto`, `Uberlândia`, `Vinhedo`, `Indaiatuba`, `Nova Iguaçu`, `Americana`, `Hortolândia`, `Paulínia`, `Praia Grande`, `Guarujá`, `Carapicuíba`, `Votorantim`, `São Vicente`, `Duque de Caxias`, `São Gonçalo`, `Betim`, `Aparecida de Goiânia`, `Suzano`, `Itaquaquecetuba`, `Sumaré`, `Embu das Artes`, `Ferraz de Vasconcelos`, `Poá`, `Gravataí`, `Viamão`, `Alvorada`, `Jaboatão dos Guararapes`, `Belford Roxo`, `Nilópolis`, `Mesquita`, `Taubaté`, `Jacareí`, `Ribeirão das Neves`, `Ribeirão Pires`, `Brumadinho`, `Itabirito`, `Lagoa Santa`, `Sabará`, `Vespasiano`, `Fortaleza`, `Manaus`, `Belém`

## `searchType` (type: `string`):

Type of search to be performed, rent or buy. The default value is rent.

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

Maximum number of properties to scrape data. The default value is 5. If the URL provided doesn't have the total requested, everything will be returned.

## `maxConcurrency` (type: `integer`):

Maximum number of concurrent requests that can be made at a time. The default value is 5.

## `apartments` (type: `boolean`):

Search for apartments

## `houses` (type: `boolean`):

Search for houses

## `condominiumHouses` (type: `boolean`):

Search for condominium houses

## `studioApartments` (type: `boolean`):

Search for studio apartments

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

Minimum property area in square meters. Default limit is 20 m² if not specified.

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

Maximum property area in square meters. Default limit is 10000 m² if not specified.

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

Minimum property price in Brazilian Reais. For rent: monthly rent amount. For buy: total sale price.

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

Maximum property price in Brazilian Reais. For rent: monthly rent amount. For buy: total sale price.

## `rentValueType` (type: `string`):

Type of rent value to filter. 'total' includes rent + condominium + IPTU. 'rentOnly' filters only by base rent value. Only applies when searchType is 'rent'.

## `minCondoPrice` (type: `integer`):

Minimum condominium fee + IPTU in Brazilian Reais. Default limit is 0 if not specified. Only applies when searchType is 'buy'.

## `maxCondoPrice` (type: `integer`):

Maximum condominium fee + IPTU in Brazilian Reais. Default limit is 15000 if not specified. Only applies when searchType is 'buy'.

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

Minimum number of bedrooms (1+ means 1 or more, 2+ means 2 or more, etc.).

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

Minimum number of bathrooms (range from 1 to 4).

## `minGarages` (type: `integer`):

Minimum number of parking/garage spaces (range from 1 to 3).

## `minSuits` (type: `integer`):

Minimum number of suites/master bedrooms (1+ means 1 or more, etc.).

## `furnished` (type: `string`):

Filter by furnished status. 'furnished' = only furnished, 'unfurnished' = only unfurnished, 'both' = no filter.

## `closeToSubway` (type: `string`):

Filter properties close to subway/metro stations. 'yes' = only near subway, 'no' = not near subway, 'both' = no filter.

## `acceptPets` (type: `string`):

Filter by pet acceptance. 'yes' = only pet-friendly, 'no' = no pets allowed, 'both' = no filter. Only applies when searchType is 'rent'.

## `availability` (type: `string`):

Filter by property availability. 'available' = immediately available, 'soon' = available soon, 'both' = no filter. Only applies when searchType is 'rent'.

## Actor input object example

```json
{
  "location": "https://www.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil",
  "searchType": "rent",
  "maxItems": 5,
  "maxConcurrency": 5,
  "apartments": true,
  "houses": true,
  "condominiumHouses": true,
  "studioApartments": true,
  "rentValueType": "total",
  "furnished": "both",
  "closeToSubway": "both",
  "acceptPets": "both",
  "availability": "both"
}
```

# 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.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil",
    "searchType": "rent",
    "maxItems": 5,
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("brasil-scrapers/quinto-andar-api").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.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil",
    "searchType": "rent",
    "maxItems": 5,
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("brasil-scrapers/quinto-andar-api").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.quintoandar.com.br/alugar/imovel/sao-paulo-sp-brasil",
  "searchType": "rent",
  "maxItems": 5,
  "maxConcurrency": 5
}' |
apify call brasil-scrapers/quinto-andar-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brasil-scrapers/quinto-andar-api"
        }
    }
}
```

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/iBHSek1aCC8EADyUC/builds/ZHZeSgFjesTMNgwHH/openapi.json
