# Santander Imóveis API (`brasil-scrapers/santander-imoveis-api`) Actor

API para busca de imóveis do Santander com diversos filtros personalizáveis.

- **URL**: https://apify.com/brasil-scrapers/santander-imoveis-api.md
- **Developed by:** [Brasil Scrapers](https://apify.com/brasil-scrapers) (community)
- **Categories:** Real estate, Automation
- **Security:** Full permissions
- **Stats:** 35 total users, 1 monthly users, 100.0% runs succeeded, 5 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

## Santander Imóveis API

API para busca de imóveis do Santander com diversos filtros personalizáveis.

### Filtros Disponíveis

#### Localização

##### Estado (`state`)

- Tipo: String
- Descrição: Estado onde deseja buscar imóveis
- Formato: Sigla do estado (2 letras)
- Valores possíveis: AC, AL, AM, AP, BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PI, PR, RJ, RN, RO, RR, RS, SC, SE, SP, TO
- Valor padrão: "SP"

##### Cidade (`city`)

- Tipo: String
- Descrição: Cidade onde deseja buscar imóveis
- Formato: Nome da cidade
- Valor padrão: "SAO PAULO"
- Exemplo: "PORTO ALEGRE"

#### Características do Imóvel

##### Categoria (`category`)

- Tipo: Array de strings
- Descrição: Categorias de imóveis para busca
- Valores possíveis:
  - `comercial`: Imóveis comerciais
  - `residencial`: Imóveis residenciais
  - `industrial`: Imóveis industriais
  - `rural`: Imóveis rurais

##### Situação (`situation`)

- Tipo: Array de strings
- Descrição: Status de ocupação do imóvel
- Valores possíveis:
  - `ocupado`: Imóvel ocupado
  - `desocupado`: Imóvel vazio
  - `locado`: Imóvel alugado

##### Tipo de Imóvel (`type`)

- Tipo: Array de strings
- Descrição: Tipos específicos de imóveis
- Valores possíveis:
  - `apartamento`: Apartamento
  - `galpao`: Galpão
  - `casa`: Casa
  - `loja`: Loja
  - `casacom`: Casa em condomínio
  - `salacomer`: Sala Comercial
  - `chacara`: Chácara
  - `lote`: Lote
  - `fazenda`: Fazenda
  - `lotecom`: Lote em condomínio

#### Preço

##### Preço Máximo (`maxPrice`)

- Tipo: Inteiro
- Descrição: Valor máximo do imóvel em reais
- Valor mínimo: 0
- Exemplo: 100000 (para R$ 100.000,00)

##### Preço Mínimo (`minPrice`)

- Tipo: Inteiro
- Descrição: Valor mínimo do imóvel em reais
- Valor mínimo: 0
- Exemplo: 50000 (para R$ 50.000,00)

#### Configurações de Scraping

##### Número de Páginas (`numberOfPages`)

- Tipo: Inteiro
- Descrição: Quantidade de páginas que serão extraídas
- Valor padrão: 1
- Valor máximo: 1000

##### Delay entre Domínios (`sameDomainDelaySecs`)

- Tipo: Inteiro
- Descrição: Tempo de espera (em segundos) entre requisições ao mesmo domínio
- Valor padrão: 1

##### Concorrência Mínima (`minConcurrency`)

- Tipo: Inteiro
- Descrição: Número mínimo de páginas para extrair simultaneamente

##### Concorrência Máxima (`maxConcurrency`)

- Tipo: Inteiro
- Descrição: Número máximo de páginas para extrair simultaneamente

#### Configuração de Proxy

##### Proxy (`proxy`)

- Tipo: Objeto
- Descrição: Configurações de proxy para as requisições
- Propriedades:
  - `useApifyProxy`: Boolean (padrão: false)
- Observação: Permite definir um proxy para passar os dados através dele

### Exemplo de Uso

```json
{
  "state": "RS",
  "city": "PORTO ALEGRE",
  "category": ["residencial"],
  "situation": ["desocupado"],
  "type": ["apartamento", "casa"],
  "minPrice": 200000,
  "maxPrice": 500000,
  "numberOfPages": 5,
  "sameDomainDelaySecs": 2,
  "minConcurrency": 1,
  "maxConcurrency": 3,
  "proxy": {
    "useApifyProxy": false
  }
}
```

Este exemplo buscará imóveis residenciais desocupados (apartamentos e casas) em Porto Alegre/RS, com valores entre R$ 200.000 e R$ 500.000, extraindo 5 páginas de resultados.

### Dados de Saída (Output)

A API retorna informações detalhadas sobre cada imóvel encontrado. Abaixo está a descrição de cada campo retornado:

#### Informações Básicas

- `url`: URL completa do anúncio do imóvel
- `codigo`: Código identificador único do imóvel (ex: "Cód. 02.20592")
- `titulo`: Título do anúncio
- `endereco`: Endereço completo do imóvel, incluindo CEP

#### Valores e Condições

- `valorAvaliado`: Valor de avaliação do imóvel
- `valorVenda`: Valor de venda atual
- `desagio`: Percentual de desconto em relação ao valor avaliado
- `dataLeilao`: Data e hora do leilão (quando aplicável)
- `condominio`: Valor do condomínio (quando aplicável)
- `iptu`: Valor do IPTU

#### Status e Documentação

- `ocupacao`: Status de ocupação do imóvel
- `matriculas`: Número da matrícula do imóvel
- `rgi`: Registro Geral do Imóvel
- `inscricaoPrefeitura`: Número de inscrição na prefeitura

#### Áreas

- `areaDescription`: Descrição textual das áreas
- `categorizedAreas`: Objeto contendo áreas específicas:
  - `areaTotal`: Área total
  - `areaTerreno`: Área do terreno
  - `areaPrivativa`: Área privativa
  - `areaUtil`: Área útil
  - `areaConstruida`: Área construída
  - `areaComum`: Área comum

#### Informações do Leilão

- `leiloeiro`: Nome da empresa leiloeira
- `telefone`: Telefone para contato
- `urlLeiloeiro`: Link para o site do leiloeiro
- `condicoesPagamento`: Condições disponíveis para pagamento
- `consideracoes`: Observações importantes sobre o imóvel

#### Mídia

- `imageUrls`: Array com URLs das imagens do imóvel

### Exemplo de Output

```json
{
  "url": "https://www.santanderimoveis.com.br/venda/imovel/casa-exemplo",
  "valorAvaliado": "R$ 1.350.000",
  "valorVenda": "R$ 602.640",
  "desagio": "55%",
  "codigo": "Cód. 02.20592",
  "titulo": "Casa na Estrada Exemplo",
  "endereco": "Estrada Exemplo, 123, Bairro, Cidade - UF",
  "ocupacao": "Ocupado",
  "areaDescription": "1435 m² de área terreno, 275 m² de área construída",
  "leiloeiro": "Exemplo Leilões",
  "condicoesPagamento": "À vista ou Financiamento em até 420 meses"
}
```

### Observações Importantes

- Os valores monetários são retornados no formato brasileiro (R$ X.XXX,XX)
- As datas são retornadas no formato dd/mm/yyyy
- As áreas são retornadas em metros quadrados (m²)
- Alguns campos podem retornar `null` quando a informação não estiver disponível
- As URLs das imagens são temporárias e podem expirar

# Actor input Schema

## `state` (type: `string`):

State to search for

## `city` (type: `string`):

City to search for

## `category` (type: `array`):

category My multiselect field

## `situation` (type: `array`):

situation My multiselect field

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

type My multiselect field

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

Set the maximum price for the properties (e.g., 100000).

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

Set the min price

## `numberOfPages` (type: `integer`):

Select the number of pages to scrape

## `sameDomainDelaySecs` (type: `integer`):

Delay between requests to the same domain

## `minConcurrency` (type: `integer`):

Minimum number of pages to scrape concurrently

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

Maximum number of pages to scrape concurrently

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

Define proxy to pass data through

## Actor input object example

```json
{
  "state": "SP",
  "city": "SAO PAULO",
  "numberOfPages": 1,
  "sameDomainDelaySecs": 1,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "numberOfPages": 1,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("brasil-scrapers/santander-imoveis-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 = {
    "numberOfPages": 1,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("brasil-scrapers/santander-imoveis-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 '{
  "numberOfPages": 1,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call brasil-scrapers/santander-imoveis-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brasil-scrapers/santander-imoveis-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/gqjg9RZsLWXjy9c3u/builds/4eed1b1P9UeAIzlQJ/openapi.json
