{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Brasil Imóveis Scraper Completo",
    "description": "Extraia anúncios de imóveis da OLX Brasil com dados completos e estruturados, incluindo fotos, preços, descrição detalhada e informações do vendedor — ideal para análise de mercado, geração de leads e monitoramento de oportunidades.",
    "version": "0.1",
    "x-build-id": "JD7iXaZrYH3J0glhq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadercorp~olx-imoveis-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadercorp-olx-imoveis-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/leadercorp~olx-imoveis-scraper/runs": {
      "post": {
        "operationId": "runs-sync-leadercorp-olx-imoveis-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/leadercorp~olx-imoveis-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-leadercorp-olx-imoveis-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",
        "properties": {
          "urlsIniciais": {
            "title": "URLs iniciais",
            "type": "array",
            "description": "Uma ou mais URLs de busca/anuncio da OLX. Recomendado para alvo preciso por cidade/bairro. Quando informado, os filtros estruturados sao ignorados.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "estado": {
            "title": "Estado (UF)",
            "type": "string",
            "description": "Sigla do estado brasileiro (ex.: SP, RJ, MG). Obrigatorio quando urlsIniciais nao e informado."
          },
          "cidade": {
            "title": "Cidade",
            "type": "string",
            "description": "Cidade usada para compor busca textual (`q`) quando urlsIniciais nao for informado."
          },
          "termoBusca": {
            "title": "Termo de busca",
            "type": "string",
            "description": "Termo textual para `q` (ex.: apartamento valinhos aluguel). Quando informado, tem prioridade sobre composicao automatica."
          },
          "tipoNegocio": {
            "title": "Tipo de negocio",
            "enum": [
              "venda",
              "aluguel",
              "temporada",
              "lancamento"
            ],
            "type": "string",
            "description": "Tipo de transacao imobiliaria."
          },
          "tipoImovel": {
            "title": "Tipo de imovel",
            "enum": [
              "apartamentos",
              "casas",
              "terrenos",
              "comercial",
              "rural",
              "temporada"
            ],
            "type": "string",
            "description": "Categoria do imovel. O ator aplica filtro estrito por tipo quando correspondenciaEstrita esta ativa."
          },
          "precoMin": {
            "title": "Preco minimo (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Preco minimo em reais."
          },
          "precoMax": {
            "title": "Preco maximo (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Preco maximo em reais."
          },
          "quartosMin": {
            "title": "Quartos minimos",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade minima de quartos."
          },
          "quartosMax": {
            "title": "Quartos maximos",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade maxima de quartos."
          },
          "banheirosMin": {
            "title": "Banheiros minimos",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade minima de banheiros (pos-processamento)."
          },
          "banheirosMax": {
            "title": "Banheiros maximos",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade maxima de banheiros (pos-processamento)."
          },
          "vagasMin": {
            "title": "Vagas minimas",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade minima de vagas (pos-processamento)."
          },
          "vagasMax": {
            "title": "Vagas maximas",
            "minimum": 0,
            "type": "integer",
            "description": "Quantidade maxima de vagas (pos-processamento)."
          },
          "areaMin": {
            "title": "Area minima (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Area minima em m2 (pos-processamento)."
          },
          "areaMax": {
            "title": "Area maxima (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Area maxima em m2 (pos-processamento)."
          },
          "maxPaginas": {
            "title": "Maximo de paginas",
            "minimum": 1,
            "type": "integer",
            "description": "Numero maximo de paginas de busca por URL inicial.",
            "default": 50
          },
          "maxItens": {
            "title": "Maximo de itens",
            "minimum": 1,
            "type": "integer",
            "description": "Numero maximo de anuncios validos no resultado.",
            "default": 500
          },
          "modo": {
            "title": "Modo de raspagem",
            "enum": [
              "rapido",
              "profundo"
            ],
            "type": "string",
            "description": "rapido: somente pagina de busca. profundo: visita cada anuncio.",
            "default": "profundo"
          },
          "coletarDetalhesAnuncio": {
            "title": "Coletar detalhes do anuncio",
            "type": "boolean",
            "description": "Se deve visitar a pagina do anuncio. No modo profundo, permanece ativo automaticamente.",
            "default": true
          },
          "incluirDescricao": {
            "title": "Incluir descricao",
            "type": "boolean",
            "description": "Extrai o texto completo da descricao quando disponivel.",
            "default": true
          },
          "incluirFotos": {
            "title": "Incluir fotos",
            "type": "boolean",
            "description": "Extrai URLs de fotos do anuncio.",
            "default": true
          },
          "incluirDadosAnunciante": {
            "title": "Incluir dados do anunciante",
            "type": "boolean",
            "description": "Extrai nome, tipo e perfil do anunciante quando disponivel.",
            "default": true
          },
          "correspondenciaEstrita": {
            "title": "Correspondencia estrita",
            "type": "boolean",
            "description": "Quando ativo, so conta e retorna anuncios que atendem aos filtros finais. Pode demandar mais paginas e tempo.",
            "default": true
          },
          "configuracaoProxy": {
            "title": "Configuracao de proxy",
            "type": "object",
            "description": "Configuracao do proxy da Apify."
          },
          "usarProxiesResidenciais": {
            "title": "Usar proxies residenciais",
            "type": "boolean",
            "description": "Usa o grupo RESIDENTIAL da Apify com saida Brasil (recomendado para producao).",
            "default": false
          },
          "concorrenciaMaxima": {
            "title": "Concorrencia maxima",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Quantidade maxima de requisicoes em paralelo.",
            "default": 3
          },
          "timeoutRequisicaoSegundos": {
            "title": "Timeout por requisicao (segundos)",
            "minimum": 10,
            "type": "integer",
            "description": "Tempo limite de cada pagina em segundos.",
            "default": 60
          },
          "depurar": {
            "title": "Depurar",
            "type": "boolean",
            "description": "Ativa logs detalhados.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}