{
  "openapi": "3.0.1",
  "info": {
    "title": "Viator Tours & Activities Scraper — Prices, Ratings & Durations",
    "description": "Extract Viator tours, tickets, excursions, and experiences worldwide. Collect tour titles, starting & discounted prices, savings, ratings, review counts, durations, free cancellation flags, badges, offered languages, destinations, descriptions, and high-res photos for travel pricing intelligence.",
    "version": "0.1",
    "x-build-id": "BeJxf5hBCCgZSfdZC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~viator-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-viator-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/haketa~viator-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-viator-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/haketa~viator-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-viator-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 (popular cities)",
            "type": "array",
            "description": "Select one or more top global destinations to scrape things to do. Leave empty if using search keywords or direct Viator URLs.",
            "items": {
              "type": "string",
              "enum": [
                "Paris/d479-ttd",
                "Rome/d511-ttd",
                "London/d737-ttd",
                "New-York-City/d687-ttd",
                "Barcelona/d562-ttd",
                "Tokyo/d334-ttd",
                "Dubai/d828-ttd",
                "Istanbul/d585-ttd",
                "Amsterdam/d525-ttd",
                "Lisbon/d538-ttd",
                "Florence/d519-ttd",
                "Venice/d522-ttd",
                "Athens/d496-ttd",
                "Prague/d462-ttd",
                "Vienna/d454-ttd",
                "Madrid/d566-ttd",
                "Bangkok/d343-ttd",
                "Bali/d98-ttd",
                "Singapore/d18-ttd",
                "Sydney/d357-ttd",
                "Las-Vegas/d684-ttd",
                "Miami/d662-ttd",
                "Cancun/d631-ttd",
                "San-Francisco/d651-ttd",
                "Cairo/d782-ttd",
                "Marrakech/d5408-ttd",
                "Reykjavik/d905-ttd",
                "Dublin/d503-ttd",
                "Edinburgh/d739-ttd",
                "Kyoto/d332-ttd"
              ],
              "enumTitles": [
                "Paris, France",
                "Rome, Italy",
                "London, UK",
                "New York City, USA",
                "Barcelona, Spain",
                "Tokyo, Japan",
                "Dubai, UAE",
                "Istanbul, Turkey",
                "Amsterdam, Netherlands",
                "Lisbon, Portugal",
                "Florence, Italy",
                "Venice, Italy",
                "Athens, Greece",
                "Prague, Czech Republic",
                "Vienna, Austria",
                "Madrid, Spain",
                "Bangkok, Thailand",
                "Bali, Indonesia",
                "Singapore",
                "Sydney, Australia",
                "Las Vegas, USA",
                "Miami, USA",
                "Cancun, Mexico",
                "San Francisco, USA",
                "Cairo, Egypt",
                "Marrakech, Morocco",
                "Reykjavik, Iceland",
                "Dublin, Ireland",
                "Edinburgh, UK",
                "Kyoto, Japan"
              ]
            }
          },
          "searchQueries": {
            "title": "Search keywords (optional)",
            "type": "array",
            "description": "Search any city, landmark, or activity type across Viator (for example: 'colosseum skip the line', 'santorini sunset cruise', 'tokyo food tour').",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Viator URLs (optional — destination, category, or search pages)",
            "type": "array",
            "description": "Paste any public Viator destination, category, or search results URL (for example: https://www.viator.com/Paris/d479-ttd or https://www.viator.com/searchResults/all?text=amalfi+coast).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "featured",
              "rating",
              "price_asc",
              "price_desc",
              "duration_asc"
            ],
            "type": "string",
            "description": "Order in which Viator returns tours and activities.",
            "default": "featured"
          },
          "maxItems": {
            "title": "Maximum tours to collect",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Total maximum tours and experiences to extract across all destinations, keywords, and URLs.",
            "default": 100
          },
          "minRating": {
            "title": "Minimum rating filter (optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only tours with an average traveler rating at or above this score (e.g., 4.5). Leave blank to include all ratings."
          },
          "maxPrice": {
            "title": "Maximum starting price filter (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only tours whose starting price is at or below this amount (in the returned currency)."
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "When enabled, returns only tours and tickets that offer free cancellation.",
            "default": false
          },
          "privateToursOnly": {
            "title": "Private tours only",
            "type": "boolean",
            "description": "When enabled, returns only private tours and exclusive experiences.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for fast, consistent collection. Standard Apify datacenter proxies work reliably.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}