{
  "openapi": "3.0.1",
  "info": {
    "title": "KKday Scraper: Tours, Activities, Prices & Reviews",
    "description": "Scrape KKday travel activities by keyword, city, URL or activity ID: prices, discounts, ratings, booking counts, destinations, images, full descriptions, meeting coordinates, package price tiers, daily availability calendars with time slots, and customer reviews.",
    "version": "0.0",
    "x-build-id": "PuBjwkHQ4d6SyiFuh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~kkday-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-kkday-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/memo23~kkday-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-kkday-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/memo23~kkday-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-kkday-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords or destinations to search on kkday.com, one search each (for example Taipei, Kyoto, Tokyo Disneyland). A kkday.com link typed here works too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "KKday links",
            "type": "array",
            "description": "Any kkday.com link: a search results page (productlist?keyword=... or ?q=...), a city/destination page, or an individual activity page (/en/product/2287-...).",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Activity IDs",
            "type": "array",
            "description": "KKday activity IDs (the number after /product/ in a KKday link, such as 2287 or 133921). Each returns that activity with its listing and detail fields.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerInput": {
            "title": "Activities per search or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of activities returned for each search term or search URL.",
            "default": 20
          },
          "language": {
            "title": "Language / Market",
            "enum": [
              "en",
              "en-us",
              "en-sg",
              "en-au",
              "en-hk",
              "en-my",
              "en-ph",
              "zh-tw",
              "zh-hk",
              "zh-cn",
              "ja",
              "ko",
              "th",
              "vi",
              "id",
              "fr",
              "es"
            ],
            "type": "string",
            "description": "KKday site language/market used for search queries and activity pages.",
            "default": "en"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "TWD",
              "JPY",
              "KRW",
              "HKD",
              "SGD",
              "EUR",
              "GBP",
              "AUD",
              "THB",
              "MYR",
              "VND",
              "PHP",
              "IDR",
              "CNY",
              "CAD"
            ],
            "type": "string",
            "description": "Currency used for prices and availability calendars.",
            "default": "USD"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "recommended",
              "popular",
              "rating",
              "price_low",
              "price_high",
              "newest"
            ],
            "type": "string",
            "description": "How KKday orders search results.",
            "default": "recommended"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only activities whose minimum price is at or above this value (in the chosen currency)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only activities whose minimum price is at or below this value (in the chosen currency)."
          },
          "includeDetails": {
            "title": "Fetch activity details",
            "type": "boolean",
            "description": "Read each activity's full page, packages and supplier info: full description, highlights, meeting address, GPS coordinates, full image gallery, FAQs, packages with price tiers & includes/excludes, and AI review summary.",
            "default": true
          },
          "includeAvailability": {
            "title": "Include availability calendar",
            "type": "boolean",
            "description": "Add each package's daily availability calendar (bookable dates, lowest price and crossed-out base price) for the chosen window.",
            "default": false
          },
          "availabilityDays": {
            "title": "Availability window (days)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "How many days ahead from today to read the availability calendar (1 to 180).",
            "default": 30
          },
          "includeTimeSlots": {
            "title": "Include time slots & ticket SKUs",
            "type": "boolean",
            "description": "When Include availability calendar is on, also read per-package item specs, time slots, sold-out flags, and per-SKU ticket prices for each date.",
            "default": false
          },
          "includeReviews": {
            "title": "Include customer reviews",
            "type": "boolean",
            "description": "Collect customer reviews for each activity as separate dataset rows (recordType: review).",
            "default": false
          },
          "maxReviewsPerActivity": {
            "title": "Reviews per activity",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of customer reviews returned per activity.",
            "default": 20
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "How customer reviews are ordered.",
            "default": "highest_rating"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}