{
  "openapi": "3.0.1",
  "info": {
    "title": "Hotéis e Pousadas no Booking Brasil — Leads com E-mail e CNPJ",
    "description": "Pare de ligar para a recepção atrás do e-mail do gerente. Receba hotéis, pousadas e hostels de uma cidade brasileira com e-mail e telefone comerciais, razão social, endereço fiscal e CNPJ conferido na Receita Federal. Prospecção pronta para quem vende para hotelaria. Pague só pelo lead com contato.",
    "version": "0.1",
    "x-build-id": "Ob6ssmgBZfb2hmLWs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/paulovitor18~booking-brasil-hoteis/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-paulovitor18-booking-brasil-hoteis",
        "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/paulovitor18~booking-brasil-hoteis/runs": {
      "post": {
        "operationId": "runs-sync-paulovitor18-booking-brasil-hoteis",
        "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/paulovitor18~booking-brasil-hoteis/run-sync": {
      "post": {
        "operationId": "run-sync-paulovitor18-booking-brasil-hoteis",
        "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": {
          "cidade": {
            "title": "Cidade",
            "type": "string",
            "description": "Cidade ou região do Brasil, como você digitaria na busca do Booking. Ex.: Florianópolis, Gramado, Bonito, Porto de Galinhas.",
            "default": "Florianópolis"
          },
          "tipos": {
            "title": "Tipos de propriedade",
            "type": "array",
            "description": "Filtro aplicado pelo próprio Booking. Hotel, pousada e hostel são os tipos profissionais; casas e apartamentos de particular ficam de fora, e é por isso que a taxa de contato é alta.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "pousada",
                "hostel",
                "bnb"
              ],
              "enumTitles": [
                "Hotel",
                "Pousada",
                "Hostel",
                "Bed and Breakfast"
              ]
            },
            "default": [
              "hotel",
              "pousada",
              "hostel"
            ]
          },
          "maxPropriedades": {
            "title": "Máximo de propriedades",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Quantas propriedades detalhar nesta execução. A busca para assim que a fila enche.",
            "default": 40
          },
          "apenasComContato": {
            "title": "Só emitir quem tem contato comercial",
            "type": "boolean",
            "description": "Ligado, o resultado traz apenas as propriedades com e-mail, telefone e razão social. Desligado, as demais também saem — de graça, com o motivo de não terem contato.",
            "default": false
          },
          "resolverCNPJ": {
            "title": "Resolver o CNPJ na Receita Federal",
            "type": "boolean",
            "description": "Consulta o CNPJ declarado e devolve razão social oficial, situação cadastral, CNAE, porte, capital social e quadro societário.",
            "default": true
          },
          "urlsPropriedades": {
            "title": "URLs de propriedades (opcional)",
            "type": "array",
            "description": "Preencha para detalhar fichas específicas em vez de buscar por cidade. Aceita a URL completa do Booking ou só o slug. Tem precedência sobre a cidade.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "concorrencia": {
            "title": "Fichas em paralelo",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Quantas fichas são lidas ao mesmo tempo no mesmo token. Acima de 4 o risco de bloqueio sobe.",
            "default": 3
          },
          "orcamentoDescobertaSegundos": {
            "title": "Orçamento da busca (segundos)",
            "minimum": 15,
            "maximum": 900,
            "type": "integer",
            "description": "Teto de tempo só para a fase de busca por cidade. Estourou, o actor para de procurar e detalha o que já achou.",
            "default": 150
          },
          "maxPaginasSrp": {
            "title": "Máximo de páginas de busca",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Cada página da busca do Booking traz cerca de 25 propriedades.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "O booking.com recusa IP de datacenter: responde 202 com corpo vazio em 100% das requisições. Proxy residencial do Brasil é obrigatório — não altere sem necessidade.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "BR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}