{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Reviews Scraper (Hotels, Restaurants, Attractions)",
    "description": "Scrape Tripadvisor reviews and place details for hotels, restaurants and attractions from their URLs: rating, title, text, stay date, trip type, language, owner response. Drop-in input of maxcopell/tripadvisor-reviews at $1 per 1,000.",
    "version": "0.1",
    "x-build-id": "tTmyfV1bGmUOye0zV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/praguedatalab~tripadvisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-praguedatalab-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/praguedatalab~tripadvisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-praguedatalab-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/praguedatalab~tripadvisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-praguedatalab-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": {
          "startUrls": {
            "title": "Tripadvisor URLs",
            "type": "array",
            "description": "Pages of hotels (<code>Hotel_Review-…</code>), restaurants (<code>Restaurant_Review-…</code>) or attractions (<code>Attraction_Review-…</code>). Any language domain (tripadvisor.com, .co.uk, .fr…). A page number such as <code>-or10-</code> in the URL is ignored: reviews always start from the newest.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItemsPerQuery": {
            "title": "Limit reviews for each place",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum reviews returned per URL (each review is one charged result). Use a large value to get every review. To cap the total cost of a run use <b>Maximum cost per run</b> in the run options. One IP typically gets a few hundred reviews before Tripadvisor asks for a captcha: enable a residential proxy for more.",
            "default": 50
          },
          "reviewRatings": {
            "title": "Review ratings",
            "type": "array",
            "description": "Keep only reviews with these ratings (1 = terrible … 5 = excellent). <b>All ratings</b> keeps everything. The filter is applied while reading, so a rare rating makes the run slower.",
            "items": {
              "type": "string",
              "enum": [
                "ALL_REVIEW_RATINGS",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "All ratings",
                "Terrible",
                "Poor",
                "Average",
                "Very Good",
                "Excellent"
              ]
            },
            "default": [
              "ALL_REVIEW_RATINGS"
            ]
          },
          "reviewsLanguages": {
            "title": "Reviews languages",
            "maxItems": 1,
            "type": "array",
            "description": "Keep only reviews written in this language (a translated review counts for its original language and for the language it is shown in). <b>All review languages</b> keeps everything.",
            "items": {
              "type": "string",
              "enum": [
                "ALL_REVIEW_LANGUAGES",
                "en",
                "ab",
                "aa",
                "af",
                "ak",
                "sq",
                "am",
                "ar",
                "an",
                "hy",
                "as",
                "av",
                "ae",
                "ay",
                "az",
                "bm",
                "ba",
                "eu",
                "be",
                "bn",
                "bh",
                "bi",
                "bs",
                "br",
                "bg",
                "my",
                "ca",
                "ch",
                "ce",
                "ny",
                "zh",
                "cv",
                "kw",
                "co",
                "cr",
                "hr",
                "cs",
                "da",
                "dv",
                "nl",
                "eo",
                "et",
                "ee",
                "fo",
                "fj",
                "fi",
                "fr",
                "ff",
                "gl",
                "ka",
                "de",
                "el",
                "gn",
                "gu",
                "ht",
                "ha",
                "he",
                "iw",
                "hz",
                "hi",
                "ho",
                "hu",
                "ia",
                "id",
                "ie",
                "ga",
                "ig",
                "ik",
                "io",
                "is",
                "it",
                "iu",
                "ja",
                "jv",
                "kl",
                "kn",
                "kr",
                "ks",
                "kk",
                "km",
                "ki",
                "rw",
                "ky",
                "kv",
                "kg",
                "ko",
                "ku",
                "kj",
                "la",
                "lb",
                "lg",
                "li",
                "ln",
                "lo",
                "lt",
                "lu",
                "lv",
                "gv",
                "mk",
                "mg",
                "ms",
                "ml",
                "mt",
                "mi",
                "mr",
                "mh",
                "mn",
                "na",
                "nv",
                "nb",
                "nd",
                "ne",
                "ng",
                "nn",
                "no",
                "ii",
                "nr",
                "oc",
                "oj",
                "cu",
                "om",
                "or",
                "os",
                "pa",
                "pi",
                "fa",
                "pl",
                "ps",
                "pt",
                "qu",
                "rm",
                "rn",
                "ro",
                "ru",
                "sa",
                "sc",
                "sd",
                "se",
                "sm",
                "sg",
                "sr",
                "gd",
                "sn",
                "si",
                "sk",
                "sl",
                "so",
                "st",
                "es",
                "su",
                "sw",
                "ss",
                "sv",
                "ta",
                "te",
                "tg",
                "th",
                "ti",
                "bo",
                "tk",
                "tl",
                "tn",
                "to",
                "tr",
                "ts",
                "tt",
                "tw",
                "ty",
                "ug",
                "uk",
                "ur",
                "uz",
                "ve",
                "vi",
                "vo",
                "wa",
                "cy",
                "wo",
                "fy",
                "xh",
                "yi",
                "yo",
                "za"
              ],
              "enumTitles": [
                "All review languages",
                "English",
                "Abkhaz",
                "Afar",
                "Afrikaans",
                "Akan",
                "Albanian",
                "Amharic",
                "Arabic",
                "Aragonese",
                "Armenian",
                "Assamese",
                "Avaric",
                "Avestan",
                "Aymara",
                "Azerbaijani",
                "Bambara",
                "Bashkir",
                "Basque",
                "Belarusian",
                "Bengali",
                "Bihari",
                "Bislama",
                "Bosnian",
                "Breton",
                "Bulgarian",
                "Burmese",
                "Catalan; Valencian",
                "Chamorro",
                "Chechen",
                "Chichewa; Chewa; Nyanja",
                "Chinese",
                "Chuvash",
                "Cornish",
                "Corsican",
                "Cree",
                "Croatian",
                "Czech",
                "Danish",
                "Divehi; Dhivehi; Maldivian;",
                "Dutch",
                "Esperanto",
                "Estonian",
                "Ewe",
                "Faroese",
                "Fijian",
                "Finnish",
                "French",
                "Fula; Fulah; Pulaar; Pular",
                "Galician",
                "Georgian",
                "German",
                "Greek, Modern",
                "Guaraní",
                "Gujarati",
                "Haitian; Haitian Creole",
                "Hausa",
                "Hebrew",
                "Hebrew",
                "Herero",
                "Hindi",
                "Hiri Motu",
                "Hungarian",
                "Interlingua",
                "Indonesian",
                "Interlingue",
                "Irish",
                "Igbo",
                "Inupiaq",
                "Ido",
                "Icelandic",
                "Italian",
                "Inuktitut",
                "Japanese",
                "Javanese",
                "Kalaallisut, Greenlandic",
                "Kannada",
                "Kanuri",
                "Kashmiri",
                "Kazakh",
                "Khmer",
                "Kikuyu, Gikuyu",
                "Kinyarwanda",
                "Kirghiz, Kyrgyz",
                "Komi",
                "Kongo",
                "Korean",
                "Kurdish",
                "Kwanyama, Kuanyama",
                "Latin",
                "Luxembourgish, Letzeburgesch",
                "Luganda",
                "Limburgish, Limburgan, Limburger",
                "Lingala",
                "Lao",
                "Lithuanian",
                "Luba-Katanga",
                "Latvian",
                "Manx",
                "Macedonian",
                "Malagasy",
                "Malay",
                "Malayalam",
                "Maltese",
                "Māori",
                "Marathi (Marāṭhī)",
                "Marshallese",
                "Mongolian",
                "Nauru",
                "Navajo, Navaho",
                "Norwegian Bokmål",
                "North Ndebele",
                "Nepali",
                "Ndonga",
                "Norwegian Nynorsk",
                "Norwegian",
                "Nuosu",
                "South Ndebele",
                "Occitan",
                "Ojibwe, Ojibwa",
                "Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",
                "Oromo",
                "Oriya",
                "Ossetian, Ossetic",
                "Panjabi, Punjabi",
                "Pāli",
                "Persian",
                "Polish",
                "Pashto, Pushto",
                "Portuguese",
                "Quechua",
                "Romansh",
                "Kirundi",
                "Romanian, Moldavian, Moldovan",
                "Russian",
                "Sanskrit (Saṁskṛta)",
                "Sardinian",
                "Sindhi",
                "Northern Sami",
                "Samoan",
                "Sango",
                "Serbian",
                "Scottish Gaelic; Gaelic",
                "Shona",
                "Sinhala, Sinhalese",
                "Slovak",
                "Slovene",
                "Somali",
                "Southern Sotho",
                "Spanish; Castilian",
                "Sundanese",
                "Swahili",
                "Swati",
                "Swedish",
                "Tamil",
                "Telugu",
                "Tajik",
                "Thai",
                "Tigrinya",
                "Tibetan Standard, Tibetan, Central",
                "Turkmen",
                "Tagalog",
                "Tswana",
                "Tonga (Tonga Islands)",
                "Turkish",
                "Tsonga",
                "Tatar",
                "Twi",
                "Tahitian",
                "Uighur, Uyghur",
                "Ukrainian",
                "Urdu",
                "Uzbek",
                "Venda",
                "Vietnamese",
                "Volapük",
                "Walloon",
                "Welsh",
                "Wolof",
                "Western Frisian",
                "Xhosa",
                "Yiddish",
                "Yoruba",
                "Zhuang, Chuang"
              ]
            },
            "default": [
              "ALL_REVIEW_LANGUAGES"
            ]
          },
          "lastReviewDate": {
            "title": "Only reviews since date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Stop at reviews older than this date. Format <code>YYYY-MM-DD</code> or <code>{number} {unit}</code> (e.g. <code>3 days</code>, <code>1 week</code>, <code>6 months</code>)."
          },
          "scrapePlaceDetails": {
            "title": "Also output place details",
            "type": "boolean",
            "description": "Add one extra row per URL with the place itself: name, rating, number of reviews, ranking, address, coordinates, phone, price level, amenities (hotels), cuisines (restaurants), opening hours. One <code>place</code> event is charged per row. Every review row already carries a short <code>placeInfo</code> for free.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Tripadvisor uses DataDome, which scores the IP. If a run says it was blocked, choose Apify Proxy with the <b>RESIDENTIAL</b> group: a new IP is used each time DataDome asks again. Tripadvisor sits behind DataDome: Apify datacenter IPs pass only sometimes, so the residential proxy is prefilled (about $0.0001 of proxy usage per 30 reviews in our tests)."
          },
          "scrapeReviewerInfo": {
            "title": "Scrape reviewer info (not used)",
            "type": "boolean",
            "description": "Leader field, accepted so its inputs validate. <b>Ignored:</b> reviewer names, avatars, profiles and home towns are never collected.",
            "default": false
          },
          "disableMachineTranslations": {
            "title": "Disable machine translation (not used)",
            "type": "boolean",
            "description": "Leader field, accepted so its inputs validate. Not supported: Tripadvisor shows translated text on the page we read. Every row says <code>isMachineTranslated</code> and <code>originalLanguage</code>, so you can filter afterwards.",
            "default": false
          },
          "sourceDatasetId": {
            "title": "Dataset ID of a finished run (not used)",
            "type": "string",
            "description": "Leader field, accepted so its inputs validate. Not supported: pass the URLs in <b>Tripadvisor URLs</b>."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}