{
  "openapi": "3.0.1",
  "info": {
    "title": "Tours & Activities Scraper: GetYourGuide, Viator, Klook",
    "description": "Scrape tours and activities from GetYourGuide, Viator, Klook and Tiqets in one run. Search a destination or paste URLs and get one normalized record per activity: price, rating, duration, location, images, optional details, reviews and availability dates.",
    "version": "0.1",
    "x-build-id": "td4mMDSUe63k6Naig"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~tours-activities-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-tours-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/tortuga~tours-activities-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-tours-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/tortuga~tours-activities-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-tours-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Destinations or keywords to search on every selected platform, for example \"Rome\" or \"Seine river cruise\". One search per query and platform. Leave empty if you only use Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Sites used for the search queries. Defaults to all four. Start URLs always go to the site they belong to.",
            "items": {
              "type": "string",
              "enum": [
                "getyourguide",
                "viator",
                "klook",
                "tiqets"
              ],
              "enumTitles": [
                "GetYourGuide",
                "Viator",
                "Klook",
                "Tiqets"
              ]
            },
            "default": [
              "getyourguide",
              "viator",
              "klook",
              "tiqets"
            ]
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Pages to scrape, detected by site: a destination, category or search page, or a single activity page. Examples: https://www.getyourguide.com/rome-l33/, https://www.viator.com/Rome/d511-ttd, https://www.klook.com/en-US/city/28-tokyo-things-to-do/, https://www.tiqets.com/en/rome-attractions-c71631/.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of activities saved across all platforms. With several platforms the limit is split evenly between them, unless you set Max items per platform. Reviews are not counted.",
            "default": 100
          },
          "maxItemsPerPlatform": {
            "title": "Max items per platform",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the activities saved from each platform. Use it to get the same number from every site, or to read more from one site. The total never exceeds Max items."
          },
          "includeDetails": {
            "title": "Include activity details",
            "type": "boolean",
            "description": "Open each activity's page for the full description, highlights, inclusions, exclusions, meeting point, coordinates, languages, cancellation policy and operator. One extra request per activity and a Details event per activity. Off by default.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Save traveler reviews as separate items with type \"review\" (text, rating, date, reviewer name and country, operator reply where the site shows one). Charged per review. Tiqets only shows the latest few reviews on each page.",
            "default": false
          },
          "maxReviewsPerActivity": {
            "title": "Max reviews per activity",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Reviews to save for each activity when Include reviews is on. The sites allow different maximums (GetYourGuide 350, Klook about 2,000, Viator all pages, Tiqets the latest 3).",
            "default": 10
          },
          "includeAvailability": {
            "title": "Include availability",
            "type": "boolean",
            "description": "Add a list of bookable dates to each activity (GetYourGuide with the lowest price per date, Tiqets as dates). Viator and Klook publish no per-date availability without booking, so their items are not charged for it. Charged per activity that returns dates.",
            "default": false
          },
          "availabilityDays": {
            "title": "Availability window (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many days ahead to list bookable dates when Include availability is on.",
            "default": 30
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency code for prices, for example USD, EUR or GBP. Applied to every platform. Sites convert supplier prices into it, so a price can differ a little from the operator's own currency.",
            "default": "USD"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave on the default (Apify Proxy) and the Actor picks the proxy that works for each site: datacenter IPs for GetYourGuide and Viator (it switches to residential if they are refused), residential IPs for Tiqets, Unblocker for Klook. Proxy traffic is included in the event prices. Choose groups or your own proxies to override it for all sites.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}