{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Scraper: Hotels, Restaurants & Prices",
    "description": "Scrape Tripadvisor hotels, restaurants, attractions and tours from cities, URLs or names: ratings, rankings, phone, email, website, awards, hours, cuisines, amenities and every booking site's hotel price. Filter by stars, cuisine, price, rating and MICHELIN. From $1.40 per 1,000.",
    "version": "0.0",
    "x-build-id": "DkKzadCkqSjr9LLqW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~tripadvisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-tripadvisor-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/epicscrapers~tripadvisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-tripadvisor-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/epicscrapers~tripadvisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-tripadvisor-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": {
          "cities": {
            "title": "Cities or regions",
            "type": "array",
            "description": "Scrape the places of a city or region, e.g. \"Chicago\", \"Rome\" or \"Lake Como\". Choose the place types and how many places below. The log shows which Tripadvisor location each name matched.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Tripadvisor URLs",
            "type": "array",
            "description": "One per line, from any Tripadvisor country site. A hotel, restaurant, attraction or tour page gives that place. A list such as https://www.tripadvisor.com/Hotels-g187147-Paris_Ile_de_France-Hotels.html gives that list; a city page such as Tourism-g187147 gives the place types chosen below. A location ID such as 1890933 works too.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Place names",
            "type": "array",
            "description": "Find single places by name, e.g. \"Hilton Chicago\" or \"Louvre Museum\". Add the city to pick the right one. The best match is used.",
            "items": {
              "type": "string"
            }
          },
          "placeTypes": {
            "title": "Place types (for cities)",
            "type": "array",
            "description": "Which places to take from cities and city URLs. A list URL such as Hotels-g… always uses its own type.",
            "items": {
              "type": "string",
              "enum": [
                "hotels",
                "restaurants",
                "attractions",
                "tours"
              ],
              "enumTitles": [
                "Hotels",
                "Restaurants",
                "Attractions",
                "Tours & activities"
              ]
            },
            "default": [
              "hotels",
              "restaurants",
              "attractions"
            ]
          },
          "maxPlacesPerCity": {
            "title": "Max places per city and type",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "For cities and list URLs: how many places of each type, in Tripadvisor's order. Tripadvisor lists up to a few thousand places per city.",
            "default": 30
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only places rated at least this many bubbles.",
            "default": ""
          },
          "travelersChoiceOnly": {
            "title": "Travelers' Choice winners only",
            "type": "boolean",
            "description": "Only places with a Travelers' Choice award (the top 10% on Tripadvisor).",
            "default": false
          },
          "hotelClasses": {
            "title": "Hotel star rating",
            "type": "array",
            "description": "Only hotels with these star ratings. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2",
                "1"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars",
                "1 star"
              ]
            },
            "default": []
          },
          "cuisines": {
            "title": "Restaurant cuisines",
            "type": "array",
            "description": "Only restaurants with one of these cuisines, as named on Tripadvisor, e.g. Italian, Japanese, Seafood, Pizza, Vegan. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "restaurantPrices": {
            "title": "Restaurant price range",
            "type": "array",
            "description": "Only restaurants in these price ranges. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "budget",
                "midRange",
                "fineDining"
              ],
              "enumTitles": [
                "$ (cheap eats)",
                "$$ - $$$ (mid-range)",
                "$$$$ (fine dining)"
              ]
            },
            "default": []
          },
          "diets": {
            "title": "Dietary options",
            "type": "array",
            "description": "Only restaurants with these options.",
            "items": {
              "type": "string",
              "enum": [
                "vegetarian",
                "vegan",
                "glutenFree"
              ],
              "enumTitles": [
                "Vegetarian friendly",
                "Vegan options",
                "Gluten free options"
              ]
            },
            "default": []
          },
          "meals": {
            "title": "Meals",
            "type": "array",
            "description": "Only restaurants serving one of these meals.",
            "items": {
              "type": "string",
              "enum": [
                "Breakfast",
                "Brunch",
                "Lunch",
                "Dinner"
              ]
            },
            "default": []
          },
          "michelinOnly": {
            "title": "MICHELIN Guide restaurants only",
            "type": "boolean",
            "description": "Only restaurants in the MICHELIN Guide (stars, Bib Gourmand or selected).",
            "default": false
          },
          "attractionCategories": {
            "title": "Attraction categories",
            "type": "array",
            "description": "Only attractions in these categories.",
            "items": {
              "type": "string",
              "enum": [
                "Sights & Landmarks",
                "Museums",
                "Nature & Parks",
                "Nightlife",
                "Spas & Wellness",
                "Fun & Games",
                "Boat Tours & Water Sports",
                "Classes & Workshops",
                "Water & Amusement Parks",
                "Zoos & Aquariums"
              ]
            },
            "default": []
          },
          "checkInDate": {
            "title": "Check-in date",
            "pattern": "^(\\s*|\\d{4}-\\d{2}-\\d{2}|\\s*(in\\s+)?\\d+\\s*(day|week|month)s?\\s*)$",
            "type": "string",
            "description": "A date (2026-12-20) or a time from today (30 days, 2 weeks). Leave empty to skip prices."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "pattern": "^(\\s*|\\d{4}-\\d{2}-\\d{2}|\\s*(in\\s+)?\\d+\\s*(day|week|month)s?\\s*)$",
            "type": "string",
            "description": "A date or a time from today, after check-in (up to 30 nights). Empty = one night."
          },
          "adults": {
            "title": "Adults per room",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Adults in each room.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Prices are per room and night; totalPrice covers all rooms and nights.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0-17) per child, e.g. 4 and 9.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "JPY",
              "CNY",
              "INR",
              "BRL",
              "MXN",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "SGD",
              "HKD",
              "NZD",
              "ZAR",
              "AED",
              "TRY",
              "THB",
              "KRW"
            ],
            "type": "string",
            "description": "Currency of hotel prices. USD shows the US market (Expedia, Priceline, Hotels.com…); other currencies show the international one (Booking.com, Agoda, Trip.com…).",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "it",
              "es",
              "pt",
              "nl",
              "sv",
              "da",
              "no",
              "pl",
              "tr",
              "ru",
              "ja",
              "ko",
              "zh"
            ],
            "type": "string",
            "description": "Language of names, descriptions, ranking, opening and tag texts (cuisines, amenities…). Restaurant features, meals and dietary options stay in English.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}