{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Scraper: $0.40 per 1,000 Properties",
    "description": "Search Booking.com stays by destination, dates, guests and currency. Get every listed property's stay price, taxes note, original price and deal, review score and count, stars, area, distance and room offer, paging past the first 25 results. Pay per property delivered. $0.40 per 1,000 properties.",
    "version": "0.1",
    "x-build-id": "ndgjCbfJilNsdPMhr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~booking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-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/zaiq~booking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-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/zaiq~booking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-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": {
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Cities, areas or regions. Each gets its own search with the dates and guests below.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Arrival in YYYY-MM-DD format. Blank means 30 days from today. Dates cannot be in the past."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Departure in YYYY-MM-DD format. Blank means two nights after check-in. Maximum stay: 30 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Adults in the requested stay.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms requested. A single room-option price is never presented as a multi-room total.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children’s ages",
            "type": "array",
            "description": "One age from 0 to 17 for each child. Empty means no children. Up to 10 children.",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter display currency, for example USD, EUR, GBP or ZAR. Explicit currency labels from the page take precedence.",
            "default": "USD"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "popularity",
              "price",
              "score",
              "distance",
              "stars"
            ],
            "type": "string",
            "description": "The site’s order for each destination. Scores and prices can change between pages.",
            "default": "popularity"
          },
          "stars": {
            "title": "Hotel star ratings",
            "type": "array",
            "description": "Keep only official star ratings in this list, such as [4,5]. Empty keeps all. The site’s own quality squares do not count as official stars.",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "minimumScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep properties with a review score at least this high. Zero disables the filter. Properties without scores are excluded when filtering.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum stay price",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Minimum displayed price for the whole stay in the requested currency. Applied to results locally; do not confuse this with a nightly budget."
          },
          "maxPrice": {
            "title": "Maximum stay price",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Maximum displayed whole-stay price in the requested currency. Applied locally. Missing or mismatched-currency prices are excluded."
          },
          "maxPropertiesPerDestination": {
            "title": "Properties per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum property rows per destination, 25 per results batch. Booking's own order (and its total for the search) decides what appears; coverage can be lower when Booking stops listing.",
            "default": 25
          },
          "maxRequests": {
            "title": "Maximum site requests",
            "minimum": 50,
            "maximum": 800,
            "type": "integer",
            "description": "Safety limit on site requests for each destination (documents, scripts, styles and data calls; images, fonts and media are blocked). A destination's first 25 results use about 230 requests, including a visit to Booking's home page first; each further 25 about 1 to 15.",
            "default": 400
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}