{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking Scraper — Hotels, Reviews & Room Rates",
    "description": "Collect Booking.com hotel profiles, room rates and guest reviews in three simple modes. Includes facilities, policies, host and supplier details, nearby places and availability when published. No account or cookies required.",
    "version": "0.1",
    "x-build-id": "AWVxRNVNfmmbbWpTZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~booking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-booking-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/trakk~booking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trakk-booking-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/trakk~booking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-booking-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": {
          "mode": {
            "title": "What would you like to collect?",
            "enum": [
              "hotels",
              "reviews",
              "complete"
            ],
            "type": "string",
            "description": "Hotels discovers properties and optional stay prices. Reviews returns individual guest reviews. Complete adds detailed profiles, rooms, rates and a sample of up to 10 reviews per hotel.",
            "default": "hotels"
          },
          "queries": {
            "title": "Destinations or Booking links",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One destination, Booking.com hotel/search URL, or numeric hotel ID per line. Examples: Prague; a hotel URL; 280149. Commas inside a line are kept as part of that one query.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Total saved results for the whole run: hotels in Hotels/Complete, individual reviews in Reviews. Included Complete export tables do not use extra result slots. Duplicates and failed items do not use this limit.",
            "default": 100
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Optional future stay date. Provide both dates for stay prices and rate conditions. Overrides dates in copied URLs. Does not filter guest reviews."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Provide together with check-in. Maximum stay: 90 nights. Leave both empty for hotel information without date-specific quotes."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Optional override. If empty, use a copied URL’s adult count, or 2 for a destination search."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional override. If empty, use a copied URL’s room count, or 1."
          },
          "childrenAges": {
            "title": "Children’s ages",
            "type": "array",
            "description": "Optional ages, for example [7, 12]. If omitted, copied URL ages are kept. Use [] to explicitly request no children.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "auto",
              "ARS",
              "AUD",
              "AZN",
              "BHD",
              "BRL",
              "BGN",
              "CAD",
              "XOF",
              "CLP",
              "CNY",
              "COP",
              "CZK",
              "DKK",
              "EGP",
              "EUR",
              "FJD",
              "GEL",
              "HKD",
              "HUF",
              "INR",
              "IDR",
              "ILS",
              "JPY",
              "JOD",
              "KZT",
              "KRW",
              "KWD",
              "MYR",
              "MXN",
              "MDL",
              "NAD",
              "TWD",
              "NZD",
              "NOK",
              "OMR",
              "PLN",
              "GBP",
              "QAR",
              "RON",
              "RUB",
              "SAR",
              "SGD",
              "ZAR",
              "SEK",
              "CHF",
              "THB",
              "TRY",
              "AED",
              "USD",
              "UAH"
            ],
            "type": "string",
            "description": "Currency for stay quotes. Auto uses a copied URL’s currency, or USD. Billing is always in USD.",
            "default": "auto"
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "en-gb",
              "en-us",
              "de",
              "nl",
              "fr",
              "es",
              "es-ar",
              "ca",
              "it",
              "pt-pt",
              "pt-br",
              "no",
              "fi",
              "sv",
              "da",
              "cs",
              "hu",
              "ro",
              "ja",
              "zh-cn",
              "zh-tw",
              "pl",
              "el",
              "ru",
              "tr",
              "bg",
              "ar",
              "ko",
              "he",
              "lv",
              "uk",
              "id",
              "ms",
              "th",
              "et",
              "hr",
              "lt",
              "sk",
              "sr",
              "sl",
              "vi",
              "tl",
              "is"
            ],
            "type": "string",
            "description": "Requested data locale. Auto uses the copied URL’s language, or English (en-gb). Original guest-review language is returned separately.",
            "default": "auto"
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "relevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Order for Reviews mode and the review sample included in Complete. Has no effect in Hotels mode.",
            "default": "newest"
          },
          "proxyConfiguration": {
            "title": "Connection configuration",
            "type": "object",
            "description": "The default connection is ready to use. Advanced users can select a custom configuration here.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}