{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Attractions Scraper",
    "description": "Extract public Booking.com attraction listings with descriptions, locations, ratings, prices, photos, and booking details.",
    "version": "1.0",
    "x-build-id": "6hJuAgSx9qdMIieVO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~booking-attractions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-booking-attractions-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/w3crawler~booking-attractions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-booking-attractions-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/w3crawler~booking-attractions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-booking-attractions-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": {
          "startUrls": {
            "title": "Public Booking.com URLs",
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "One or more public Booking.com attractions or things-to-do URLs. Every URL is processed and the global maxItems limit is applied after filtering and sorting.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.booking.com/attractions/searchresults.html?dest_id=20088325&selected_currency=USD&lang=en-us"
            ]
          },
          "maxItems": {
            "title": "Maximum attractions",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Global maximum number of unique attraction records written after filters, deduplication, and sorting.",
            "default": 5
          },
          "maxPages": {
            "title": "Pages per URL",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of public result pages to request for each start URL. Pages are followed sequentially and repeated pages stop early.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "review_desc",
              "review_count_desc",
              "name_asc",
              "duration_asc"
            ],
            "type": "string",
            "description": "Global output ordering. Missing numeric values sort after observed values.",
            "default": "relevance"
          },
          "deduplicate": {
            "title": "Deduplicate attractions",
            "type": "boolean",
            "description": "Remove repeated attraction IDs, slugs, or product URLs across pages and multiple source URLs.",
            "default": true
          },
          "includeDescription": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Include public descriptions, short summaries, and additional booking information when available.",
            "default": true
          },
          "includePhotos": {
            "title": "Include photos",
            "type": "boolean",
            "description": "Include unique public image URLs and captions from product data or rendered cards.",
            "default": true
          },
          "textQuery": {
            "title": "Text filter",
            "maxLength": 160,
            "type": "string",
            "description": "Case-insensitive phrase matched against title, descriptions, destination, labels, categories, accessibility, guide language, and public highlights."
          },
          "destinationName": {
            "title": "Destination filter",
            "maxLength": 160,
            "type": "string",
            "description": "Keep records whose public destination name contains this phrase."
          },
          "category": {
            "title": "Category filters",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep records whose public categories or labels contain at least one requested phrase.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "accessibility": {
            "title": "Accessibility filters",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep records that publish every requested accessibility phrase, such as Wheelchair accessible.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum displayed price",
            "minimum": 0,
            "type": "number",
            "description": "Keep records with an observed displayed price at or above this amount. Missing prices do not pass an active price filter."
          },
          "maxPrice": {
            "title": "Maximum displayed price",
            "minimum": 0,
            "type": "number",
            "description": "Keep records with an observed displayed price at or below this amount. Missing prices do not pass an active price filter."
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep records with a public review score at or above this value on Booking.com's displayed scale."
          },
          "minReviewCount": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep records with at least this public review count."
          },
          "freeCancellation": {
            "title": "Free cancellation",
            "type": "boolean",
            "description": "When set, keep only records whose public booking information explicitly states the requested free-cancellation value."
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay between starts of public page requests across all URLs and pagination.",
            "default": 750
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum number of start URLs processed concurrently. Pagination within one URL remains sequential.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Maximum request retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries for transient network, timeout, 408, 425, 429, and 5xx responses. Login, CAPTCHA, and challenge pages are not bypassed.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time allowed for each public HTTP or bounded browser request.",
            "default": 30
          },
          "requestTimeoutMs": {
            "title": "Legacy request timeout (ms)",
            "minimum": 10000,
            "maximum": 180000,
            "type": "integer",
            "description": "Backward-compatible timeout alias. Prefer requestTimeoutSecs for new inputs."
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 100000,
            "maximum": 30000000,
            "type": "integer",
            "description": "Safety cap for one HTML or browser response.",
            "default": 20000000
          },
          "browserWaitMs": {
            "title": "Browser render wait (ms)",
            "minimum": 250,
            "maximum": 10000,
            "type": "integer",
            "description": "Bounded wait after browser navigation so client-rendered Booking product cards can appear.",
            "default": 1200
          },
          "proxyConfiguration": {
            "title": "Apify Proxy",
            "type": "object",
            "description": "Optional standard Apify Proxy route for permitted public requests. Proxying does not bypass robots, login, CAPTCHA, or access controls.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "description": "Route permitted public requests through standard Apify Proxy.",
                "type": "boolean"
              },
              "apifyProxyGroups": {
                "title": "Proxy groups",
                "description": "Optional standard Apify Proxy groups.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Proxy country",
                "description": "Optional two-letter standard Apify Proxy country code.",
                "type": "string",
                "pattern": "^[A-Za-z]{2}$"
              }
            },
            "additionalProperties": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}