# IA para Leilões da Caixa Econômica Federal - Maiores Descontos (`brasildados/ia-leilao-caixa-api`) Actor

Encontra os imóveis de leilão da Caixa Econômica Federal com maior desconto: a IA estima o valor de mercado e calcula o desconto sobre ele (não sobre a avaliação inflada da Caixa) + campos adicionais. Filtre por UF, cidade, modalidade e tipo. Ordenado pelos melhores negócios.

- **URL**: https://apify.com/brasildados/ia-leilao-caixa-api.md
- **Developed by:** [BrasilDados.org](https://apify.com/brasildados) (community)
- **Categories:** E-commerce, AI, Real estate
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 imóvel analisado com sucessos

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### 🤖🏠 IA para Leilões da Caixa - Maiores Oportunidades de Desconto / Score

**Inteligência artificial aplicada a imóveis de leilão.** Enquanto os outros são apenas scrapers que copiam a lista da Caixa, este Actor **avalia cada imóvel com IA**: estima o **valor de mercado real**, calcula o **desconto de verdade** (sobre o mercado, não sobre a avaliação inflada da Caixa) e dá um **score de oportunidade** que pesa desconto, localização, ocupação e mais. Você recebe os **melhores negócios já ranqueados** e o **cadastro completo de cada imóvel** num só lugar.

> **O diferencial é a IA.** O "desconto" que a Caixa (e os scrapers comuns) mostram é calculado sobre a avaliação dela, quase sempre inflada. Nossa IA estima o **valor de mercado** e calcula o desconto real - revelando inclusive imóveis marcados como "0% de desconto" que estão **bem abaixo do mercado**.

#### O que você recebe

- 🤖 **Análise por IA em cada imóvel**: `IA_preco` (mercado estimado), `IA_desconto` (% real) e `IA_economiaEstimada` (R$)
- 📊 **Score de oportunidade (0-100)** que combina desconto + localização + ocupação + FGTS
- 🏆 **Os melhores negócios primeiro**, já ordenados
- 🗂️ **Cadastro completo (40+ campos por imóvel)**: além da planilha da Caixa, trazemos da página de detalhe **ocupação** (ocupado/desocupado), **FGTS**, **despesas** (condomínio/tributos), **edital + leiloeiro + datas de praça e valores 1ª/2ª**, **matrícula, comarca, ofício, inscrição imobiliária, CEP** e mais
- 🔎 Filtre por **estado, cidade, modalidade, tipo e faixa de preço** e escolha quantos ver
- 📤 Exporte em **JSON, CSV, Excel** ou consuma a **API em tempo real**

> ⚠️ O valor de mercado é estimativa de IA, não laudo. Use como triagem e confirme antes de dar lance.

#### Como usar

1. Abra o Actor no [Apify Console](https://console.apify.com/?fpr=t5lwzq), aba **Input**.
2. Escolha o **Estado (UF)** (único obrigatório). Opcionais: cidade (ex.: `Brasília`; maiúsculas e acentos são ignorados), modalidade, tipo, preço mín./máx.
3. Em **Quantos imóveis ver**, defina o `maxItems` (padrão 50).
4. Clique em **Start** e baixe o resultado na aba **Dataset**.

**Exemplo de input:**

```json
{
  "uf": "DF",
  "cidade": "BRASILIA",
  "tipoImovel": "Apartamento",
  "precoMax": 300000,
  "maxItems": 10
}
````

#### Saída (por imóvel)

Os campos da IA vêm com prefixo `IA_`, no mesmo nível do imóvel:

```json
{
  "numero": "10137654",
  "tipo": "Loja",
  "endereco": "SBS QUADRA 1 BL K LOJA, N. 05",
  "bairro": "SETOR BANCARIO SUL",
  "cidade": "BRASILIA",
  "uf": "DF",
  "area": 76,
  "areaPrivativa": 76,
  "areaTotal": null,
  "areaTerreno": null,
  "quartos": null,
  "vagas": null,
  "descricao": "Loja, 0.00 de área total, 76.00 de área privativa, 0.00 de área do terreno.",
  "modalidade": "Licitação Aberta",
  "aceitaFinanciamento": false,
  "avaliacaoCaixa": 475000,
  "valorVenda": 139938.78,
  "descontoCaixa": 70.54,
  "valorM2Venda": 1841,
  "IA_preco": 357200,
  "IA_desconto": 60.8,
  "IA_economiaEstimada": 217261,
  "IA_baseRsM2": 4700,
  "IA_aviso": "Valor de mercado é estimativa de IA, não laudo.",
  "score": 71,
  "situacao": "Desocupado",
  "matricula": "21117",
  "comarca": "BRASILIA-DF",
  "oficio": "01",
  "inscricaoImobiliaria": "...",
  "cep": "70070-120",
  "edital": "0013/0326 - CPVE/RE",
  "numeroItem": 31,
  "leiloeiro": "...",
  "dataLeilao1": null,
  "dataLeilao2": null,
  "valorMinimo1Leilao": null,
  "valorMinimo2Leilao": null,
  "formasPagamento": "Recursos próprios. Permite utilização de FGTS.",
  "aceitaFGTS": true,
  "despesaCondominio": "Sob responsabilidade do comprador.",
  "despesaTributos": "Sob responsabilidade do comprador.",
  "editalPublicadoEm": "01/06/2026 12:05:14",
  "url": "https://venda-imoveis.caixa.gov.br/sistema/detalhe-imovel.asp?hdnimovel=10137654"
}
```

> Em imóveis de **Leilão SFI**, `dataLeilao1`/`dataLeilao2` e `valorMinimo1Leilao`/`valorMinimo2Leilao` vêm preenchidos (a 2ª praça costuma ser mais barata).

Compare o `descontoCaixa` (oficial, sobre a avaliação) com o `IA_desconto` (real, sobre o mercado) e veja a `IA_economiaEstimada` em reais.

#### API (tempo real)

```bash
curl -X POST "https://brasildados--ia-leilao-caixa-api.apify.actor/search?token=SEU_TOKEN" \
  -H "Content-Type: application/json" --compressed \
  -d '{"uf":"DF","cidade":"BRASILIA","tipoImovel":"Apartamento","precoMax":300000,"maxItems":10}'
```

Resposta: `{ "total": N, "results": [ ... ] }`. Documentação interativa na aba **Endpoints**.

#### Perguntas frequentes

**Como o desconto real é diferente do desconto da Caixa?**
A Caixa calcula desconto sobre a avaliação dela. Este Actor estima o valor de **mercado** e calcula o desconto sobre ele, refletindo o ganho real na revenda.

**A estimativa de mercado é confiável?**
É uma estimativa com faixa e nível de confiança. Em capitais e bairros conhecidos a confiança é maior; em cidades pequenas, menor. Sempre confirme antes do lance.

**Quais modalidades cobre?**
Leilão SFI, Venda Direta Online, Venda Online e Licitação Aberta.

**Quantos imóveis por execução?**
Você controla via `maxItems` (até 500), sempre os de maior desconto real e score.

**É legal usar esses dados?**
Os imóveis são listados publicamente pela Caixa. Use para fins legítimos de prospecção e investimento.

# Actor input Schema

## `uf` (type: `string`):

Estado a consultar.

## `cidade` (type: `string`):

Nome da cidade (ex.: Brasília). Maiúsculas e acentos são ignorados. Vazio = todas as cidades do estado.

## `modalidade` (type: `string`):

Tipo de venda.

## `tipoImovel` (type: `string`):

Filtra pelo tipo. Vazio = todos.

## `precoMin` (type: `integer`):

Filtra imóveis com preço de venda a partir deste valor.

## `precoMax` (type: `integer`):

Filtra imóveis com preço de venda até este valor.

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

Quantidade de imóveis a retornar, já ordenados pelos maiores desconto real/score. Máx. 500.

## Actor input object example

```json
{
  "uf": "DF",
  "cidade": "BRASILIA",
  "modalidade": "",
  "tipoImovel": "Apartamento",
  "precoMax": 300000,
  "maxItems": 10
}
```

# Actor output Schema

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

Dataset com os imóveis filtrados, cada um com valor de mercado estimado por IA, desconto real e score.

# 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 = {
    "cidade": "BRASILIA",
    "tipoImovel": "Apartamento",
    "precoMax": 300000,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("brasildados/ia-leilao-caixa-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 = {
    "cidade": "BRASILIA",
    "tipoImovel": "Apartamento",
    "precoMax": 300000,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("brasildados/ia-leilao-caixa-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cidade": "BRASILIA",
  "tipoImovel": "Apartamento",
  "precoMax": 300000,
  "maxItems": 10
}' |
apify call brasildados/ia-leilao-caixa-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=brasildados/ia-leilao-caixa-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "IA para Leilões da Caixa Econômica Federal - Maiores Descontos",
        "description": "Encontra os imóveis de leilão da Caixa Econômica Federal com maior desconto: a IA estima o valor de mercado e calcula o desconto sobre ele (não sobre a avaliação inflada da Caixa) + campos adicionais. Filtre por UF, cidade, modalidade e tipo. Ordenado pelos melhores negócios.",
        "version": "1.0",
        "x-build-id": "Oa6M24XJRroh4dWY1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/brasildados~ia-leilao-caixa-api/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-brasildados-ia-leilao-caixa-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/brasildados~ia-leilao-caixa-api/runs": {
            "post": {
                "operationId": "runs-sync-brasildados-ia-leilao-caixa-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/brasildados~ia-leilao-caixa-api/run-sync": {
            "post": {
                "operationId": "run-sync-brasildados-ia-leilao-caixa-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "uf"
                ],
                "properties": {
                    "uf": {
                        "title": "Estado (UF)",
                        "enum": [
                            "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"
                        ],
                        "type": "string",
                        "description": "Estado a consultar.",
                        "default": "DF"
                    },
                    "cidade": {
                        "title": "Cidade (opcional)",
                        "type": "string",
                        "description": "Nome da cidade (ex.: Brasília). Maiúsculas e acentos são ignorados. Vazio = todas as cidades do estado."
                    },
                    "modalidade": {
                        "title": "Modalidade (opcional)",
                        "enum": [
                            "",
                            "Leilão SFI - Edital Único",
                            "Venda Direta Online",
                            "Venda Online",
                            "Licitação Aberta"
                        ],
                        "type": "string",
                        "description": "Tipo de venda.",
                        "default": ""
                    },
                    "tipoImovel": {
                        "title": "Tipo de imóvel (opcional)",
                        "enum": [
                            "",
                            "Apartamento",
                            "Casa",
                            "Sobrado",
                            "Terreno",
                            "Gleba",
                            "Prédio",
                            "Galpão",
                            "Sala",
                            "Loja",
                            "Comercial",
                            "Imóvel rural",
                            "Outros"
                        ],
                        "type": "string",
                        "description": "Filtra pelo tipo. Vazio = todos.",
                        "default": ""
                    },
                    "precoMin": {
                        "title": "Preço mínimo (R$, opcional)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Filtra imóveis com preço de venda a partir deste valor."
                    },
                    "precoMax": {
                        "title": "Preço máximo (R$, opcional)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Filtra imóveis com preço de venda até este valor."
                    },
                    "maxItems": {
                        "title": "Quantos imóveis ver",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Quantidade de imóveis a retornar, já ordenados pelos maiores desconto real/score. Máx. 500.",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
