{
  "openapi": "3.0.1",
  "info": {
    "title": "Klook Scraper: Activities, Tours & Tickets Prices",
    "description": "Scrape Klook activities, tours and attraction tickets for any destination: from price and strike-through price, rating, exact review and booking counts, category, duration, free cancellation, availability, coordinates. Price tracker. One flat row per activity, no personal data.",
    "version": "0.1",
    "x-build-id": "cwcVXxADMOG7znKPg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/myth84~klook-activities-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-myth84-klook-activities-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/myth84~klook-activities-scraper/runs": {
      "post": {
        "operationId": "runs-sync-myth84-klook-activities-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/myth84~klook-activities-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-myth84-klook-activities-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",
            "maxItems": 50,
            "type": "array",
            "description": "One destination per line: a Klook destination URL (e.g. <code>https://www.klook.com/en-US/destination/c28-tokyo/1-things-to-do/</code>, a country such as <code>…/destination/co1012-japan/…</code>), a Klook id (<code>c28</code>, <code>co1012</code>) or a city name (<code>Tokyo</code>, <code>Paris</code>). Each is its own search and <b>maxResults applies to each</b>. Up to 50. Optional: with no destination and no activity URL, the Actor searches Tokyo.",
            "items": {
              "type": "string"
            }
          },
          "activityUrls": {
            "title": "Activities (URLs or ids)",
            "maxItems": 500,
            "type": "array",
            "description": "Precise activities to follow, one per line: a Klook activity URL, e.g. <code>https://www.klook.com/en-US/activity/695-tokyo-disney-resort-1-day-pass-tokyo/</code>, or its id (<code>695</code>). Read 50 at a time, with their price, rating, coordinates and next available date. Up to 500. Default empty: no precise activity.",
            "items": {
              "type": "string",
              "pattern": "^(https?:\\/\\/(www\\.)?klook\\.com\\/.*activity\\/\\d+.*|\\d+)$"
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum activities per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of activities saved and charged for each search (each destination, and each category of categoryIds), 1 to 1,000: Klook lists up to 1,000 activities per destination, 50 per request. With price monitoring it is the number compared. Default 100. The form prefills 20 for a quick first run (our daily check).",
            "default": 100
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "price",
              "most_booked",
              "top_rated",
              "newest"
            ],
            "type": "string",
            "description": "Order of the list, as on Klook: recommended (Klook's default), price, most booked, top rated or newest. Klook's price order is not strictly ascending; the Actor keeps Klook's order. Default recommended: the order visitors see first.",
            "default": "recommended"
          },
          "type": {
            "title": "Type of activity",
            "enum": [
              "all",
              "tours_experiences",
              "attraction_tickets"
            ],
            "type": "string",
            "description": "Keep every activity, only tours and experiences, or only attraction tickets (Klook's two main types). Default all: tours, experiences and tickets together.",
            "default": "all"
          },
          "categoryIds": {
            "title": "Categories (Klook ids)",
            "maxItems": 30,
            "type": "array",
            "description": "Klook category ids as a JSON list, one search per category, e.g. <code>[3]</code> for theme parks or <code>[4, 10]</code> for museums and day trips (others: 7 historical sites, 8 attraction passes, 14 boat tours, 29 food tours, 117 zoos and aquariums, 158 observation decks). Splitting by category also covers more than the 1,000 activities of one list. Default empty: every category.",
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "default": []
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Keep only the activities whose Klook card shows free cancellation (freeCancellation true); the others are never charged and the next activities of the list take their place. Applies to destinations, not to activityUrls. Default off: every activity.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "ISO 4217 code of every price, e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code> (validated), or JPY, KRW, HKD, SGD, TWD, THB, AUD, CAD, CNY, INR, IDR, MYR, PHP, VND, AED, NZD, CHF among the 49 currencies Klook offers. Default USD.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "pattern": "^[A-Za-z]{2}(?:[_-][A-Za-z]{2})?$",
            "type": "string",
            "description": "Language of titles, categories and links, as a Klook code, e.g. <code>en_US</code>, <code>en_GB</code>, <code>fr_FR</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>zh_TW</code>, or a two-letter code (<code>fr</code> → fr_FR). The list of a destination counts only the activities published in that language. Default en_US.",
            "default": "en_US"
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Add each activity's country, coordinates, first available date, price of the most expensive option and number of options: one more request per 50 activities, no extra charge. Default on.",
            "default": true
          },
          "monitorPrices": {
            "title": "Monitor prices",
            "type": "boolean",
            "description": "Compare the from price of each activity with your previous run of the same search and fill changeType, previousPrice, priceDelta and priceDeltaPercent. Schedule the run (daily is typical). Default off.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "With monitorPrices: save and charge only the new activities and the price changes (price drop alerts); a run without any change succeeds with an empty dataset. Default off: every compared activity is saved with its changeType.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitoring store name",
            "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?$",
            "type": "string",
            "description": "Key-value store of your account that keeps the previous prices, one record per search, e.g. <code>klook-tokyo-daily</code>. Letters, digits and dashes, up to 63 characters. Default klook-price-monitor: one store for all your monitoring runs.",
            "default": "klook-price-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies of the requests. Default: Apify datacenter proxies (automatic group), the configuration validated for Klook, included in the price: keep it. If Klook refuses every request, switch to the RESIDENTIAL group. Your own proxy URLs are accepted.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxRequests": {
            "title": "Max requests",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on requests for the whole run, retries included: one per page of 50 activities, one more per page with includeDetails, one per 50 activities of activityUrls. Default 200: enough for 10 destinations of 500 activities with details.",
            "default": 200
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Requests in flight at the same time (pages of a destination, detail calls, activityUrls), 1 to 6. Default 3: the pace of our validation runs.",
            "default": 3
          },
          "delayMs": {
            "title": "Delay between requests",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause after each request of a parallel slot, in milliseconds (retries have their own growing pause); 0 disables it. Default 200: a light pace.",
            "default": 200
          },
          "debugStoreResponses": {
            "title": "Store raw responses",
            "type": "boolean",
            "description": "Debugging only: save every raw API response (refused attempts included) in the run's key-value store. Default off: it uses storage.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}