{
  "openapi": "3.0.1",
  "info": {
    "title": "Caixa Imóveis & Leilões Scraper: Brazil Property Auctions",
    "description": "Every property Caixa sells in Brazil's 27 states, from its own lists: leilão SFI auctions, venda direta online, venda online, licitação aberta. Price, appraisal, discount, financing, FGTS, matrícula, comarca, edital and auction dates. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "wXrPaebqgHKdkYnSu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~caixa-imoveis-leiloes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-caixa-imoveis-leiloes-scraper",
        "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/steadyscrape~caixa-imoveis-leiloes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-caixa-imoveis-leiloes-scraper",
        "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/steadyscrape~caixa-imoveis-leiloes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-caixa-imoveis-leiloes-scraper",
        "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": [
          "states"
        ],
        "properties": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "The states whose Caixa list is read. Each state's list is one file Caixa regenerates every night, read whole (São Paulo 3,280 properties, Rio de Janeiro 8,099, all of Brazil about 23,750).",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AP",
                "AM",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MT",
                "MS",
                "MG",
                "PA",
                "PB",
                "PR",
                "PE",
                "PI",
                "RJ",
                "RN",
                "RS",
                "RO",
                "RR",
                "SC",
                "SP",
                "SE",
                "TO"
              ],
              "enumTitles": [
                "Acre (AC)",
                "Alagoas (AL)",
                "Amapá (AP)",
                "Amazonas (AM)",
                "Bahia (BA)",
                "Ceará (CE)",
                "Distrito Federal (DF)",
                "Espírito Santo (ES)",
                "Goiás (GO)",
                "Maranhão (MA)",
                "Mato Grosso (MT)",
                "Mato Grosso do Sul (MS)",
                "Minas Gerais (MG)",
                "Pará (PA)",
                "Paraíba (PB)",
                "Paraná (PR)",
                "Pernambuco (PE)",
                "Piauí (PI)",
                "Rio de Janeiro (RJ)",
                "Rio Grande do Norte (RN)",
                "Rio Grande do Sul (RS)",
                "Rondônia (RO)",
                "Roraima (RR)",
                "Santa Catarina (SC)",
                "São Paulo (SP)",
                "Sergipe (SE)",
                "Tocantins (TO)"
              ]
            },
            "default": [
              "AC",
              "AL",
              "AP",
              "AM",
              "BA",
              "CE",
              "DF",
              "ES",
              "GO",
              "MA",
              "MT",
              "MS",
              "MG",
              "PA",
              "PB",
              "PR",
              "PE",
              "PI",
              "RJ",
              "RN",
              "RS",
              "RO",
              "RR",
              "SC",
              "SP",
              "SE",
              "TO"
            ]
          },
          "cities": {
            "title": "Cities (optional)",
            "maxItems": 100,
            "type": "array",
            "description": "Only properties in one of these cities, written with or without accents (\"São Paulo\", \"Belo Horizonte\"). Empty: every city of the states chosen.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "neighborhoods": {
            "title": "Neighbourhoods / bairros (optional)",
            "maxItems": 100,
            "type": "array",
            "description": "Only properties whose bairro contains one of these as whole words (\"Centro\" finds CENTRO and CENTRO HISTORICO, not CENTRAL). Empty: every bairro.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "saleModes": {
            "title": "Sale modes (optional)",
            "type": "array",
            "description": "Only properties sold in one of these ways. Empty: every mode.",
            "items": {
              "type": "string",
              "enum": [
                "leilao_sfi",
                "licitacao_aberta",
                "venda_direta_online",
                "venda_online"
              ],
              "enumTitles": [
                "Leilão SFI (auction)",
                "Licitação Aberta (open tender)",
                "Venda Direta Online (direct online sale)",
                "Venda Online (online sale)"
              ]
            },
            "default": []
          },
          "propertyTypes": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "Only properties of these types, as Caixa's lists name them. Empty: every type.",
            "items": {
              "type": "string",
              "enum": [
                "apartamento",
                "casa",
                "sobrado",
                "terreno",
                "comercial",
                "loja",
                "sala",
                "predio",
                "galpao",
                "gleba",
                "gleba_urbana",
                "imovel_rural",
                "outros"
              ],
              "enumTitles": [
                "Apartamento (apartment)",
                "Casa (house)",
                "Sobrado (townhouse)",
                "Terreno (land plot)",
                "Comercial (commercial)",
                "Loja (shop)",
                "Sala (office room)",
                "Prédio (building)",
                "Galpão (warehouse)",
                "Gleba (land tract)",
                "Gleba Urbana (urban land tract)",
                "Imóvel rural (rural property)",
                "Outros (other)"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties whose sale price (Caixa's minimum price) is at least this. 0: no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties whose sale price is at most this. 0: no maximum.",
            "default": 0
          },
          "minDiscount": {
            "title": "Minimum discount (%)",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Only properties sold at least this far below their appraisal value (valor de avaliação). 0: any discount.",
            "default": 0
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Only properties with at least this many bedrooms (quartos). 0: any.",
            "default": 0
          },
          "onlyWithFinancing": {
            "title": "Only properties that accept financing",
            "type": "boolean",
            "description": "Only properties Caixa lists as accepting financing (financiamento: Sim).",
            "default": false
          },
          "propertyNumbers": {
            "title": "Property numbers (optional)",
            "maxItems": 1000,
            "type": "array",
            "description": "Look up these properties only, by Caixa's number with or without the check digit (\"1555536450883\" or \"155553645088-3\"). They are looked for in the lists of the states chosen.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include detail pages",
            "type": "boolean",
            "description": "Read each property's detail page too: matrícula, comarca and ofício, inscrição imobiliária, full address with CEP, payment methods (FGTS, financing), condominium and tax debt rules, edital, auctioneer, auction dates and prices, photo links. Charged as a property with details.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new properties and price drops",
            "type": "boolean",
            "description": "For daily monitoring: deliver only properties not delivered by an earlier only-new run with the same filters, and the ones whose price dropped since (with the previous price).",
            "default": false
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "discount",
              "price_asc",
              "price_desc",
              "list"
            ],
            "type": "string",
            "description": "The order the properties are delivered in, across every state chosen.",
            "default": "discount"
          },
          "maxResults": {
            "title": "Max properties",
            "minimum": 0,
            "type": "integer",
            "description": "Stops after this many properties, in the order chosen. 0: no limit. Each property is one charged result; free status rows are not charged.",
            "default": 100
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}