{
  "openapi": "3.0.1",
  "info": {
    "title": "KKday Search Scraper",
    "description": "Search KKday and get every matching tour, ticket and activity. Just add keywords and get name, description, price, list price, discount, rating, review count, bookings, destination, category and the booking link. Filter by rating, price and destination, and track new listings between runs.",
    "version": "1.0",
    "x-build-id": "u9YylM9wzcDSq7GE5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/boncross~kkday-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-boncross-kkday-search",
        "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/boncross~kkday-search/runs": {
      "post": {
        "operationId": "runs-sync-boncross-kkday-search",
        "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/boncross~kkday-search/run-sync": {
      "post": {
        "operationId": "run-sync-boncross-kkday-search",
        "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",
        "required": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "What to search KKday for. One keyword per line: a city, a landmark, an activity type or a product name. Each keyword is searched separately and every result carries the keyword that produced it.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max results per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "How many products to return for each keyword. KKday reports several hundred matches for a broad keyword. Set 0 for no per-keyword limit.",
            "default": 100
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "A ceiling for the whole run, across every keyword. The run stops once this many rows have been returned. Set 0 for no overall limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "recommended",
              "pricelowtohigh",
              "mostbooked",
              "toprated"
            ],
            "type": "string",
            "description": "How KKday orders the results. Only orderings verified to work are offered.",
            "default": "recommended"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep results to these KKday categories, by the name shown on KKday (for example Amusement Parks, Half-day/Full-day Tours) or by code (CATEGORY_006). Several combine. A name the search does not have is reported in the log.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Available from",
            "type": "string",
            "description": "Only products bookable in this date window (YYYY-MM-DD). Leave empty for any date."
          },
          "endDate": {
            "title": "Available until",
            "type": "string",
            "description": "End of the date window. Empty means the start date alone."
          },
          "instantConfirmationOnly": {
            "title": "Instant confirmation only",
            "type": "boolean",
            "description": "Only products confirmed instantly on booking.",
            "default": false
          },
          "easyRefundOnly": {
            "title": "Easy refund only",
            "type": "boolean",
            "description": "Only products KKday marks as easy to refund.",
            "default": false
          },
          "trustedPartnerOnly": {
            "title": "Trusted partners only",
            "type": "boolean",
            "description": "Only products from merchants KKday certifies as trusted partners.",
            "default": false
          },
          "signatureToursOnly": {
            "title": "KKday Signature Tours only",
            "type": "boolean",
            "description": "Only KKday's own signature private-car tours.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only return products rated at or above this, out of 5. Products with no rating yet are excluded. Set 0 to keep everything.",
            "default": 0
          },
          "minReviewCount": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Only return products with at least this many reviews. Useful for skipping new listings with one or two ratings. Set 0 to keep everything.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Only return products whose lowest price is at or below this, in the currency selected below. Products with no price are excluded. Set 0 to keep everything.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Only return products whose lowest price is at or above this, in the currency selected below. Set 0 for no minimum.",
            "default": 0
          },
          "excludeSoldOut": {
            "title": "Exclude products not on sale",
            "type": "boolean",
            "description": "Leave out products KKday does not currently have on sale.",
            "default": false
          },
          "titleIncludes": {
            "title": "Name must contain",
            "type": "string",
            "description": "Comma-separated words. A product is kept only if its name contains at least one of them. Case-insensitive. Leave empty to keep everything."
          },
          "titleExcludes": {
            "title": "Name must not contain",
            "type": "string",
            "description": "Comma-separated words. A product is dropped if its name contains any of them. Case-insensitive. Leave empty to keep everything."
          },
          "destinationIncludes": {
            "title": "Destination must contain",
            "type": "string",
            "description": "Comma-separated words matched against the destinations KKday lists the product under. A broad keyword often returns nearby destinations too, and this narrows it. Leave empty to keep everything."
          },
          "includeRawData": {
            "title": "Include KKday's raw record",
            "type": "boolean",
            "description": "Add a `raw` column holding KKday's own unprocessed record for each product. Useful for fields this actor does not yet map. Makes the dataset considerably larger.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "HKD",
              "SGD",
              "AUD",
              "TWD",
              "KRW",
              "THB",
              "MYR",
              "CNY",
              "CAD",
              "PHP",
              "IDR",
              "VND"
            ],
            "type": "string",
            "description": "Currency for the prices in the results.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "zh-tw",
              "zh-cn",
              "ja",
              "ko",
              "th",
              "vi",
              "id",
              "ms"
            ],
            "type": "string",
            "description": "Language for product names, descriptions and destination names.",
            "default": "en"
          },
          "dedupStoreName": {
            "title": "Remember results between runs",
            "type": "string",
            "description": "Name of a storage bucket that remembers which products this actor has already returned. Use the same name on every scheduled run. Leave empty to return everything each time."
          },
          "onlyNew": {
            "title": "Only return new products",
            "type": "boolean",
            "description": "Return only products that were not seen in an earlier run. Requires a storage bucket name above.",
            "default": false
          },
          "delayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between requests, in milliseconds. Raise it if a large run starts returning errors.",
            "default": 700
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many requests run at once, each one paced by the delay above. The default is the fastest level measured clean; lower it only if a run reports refusals or errors.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}