{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Reviews Scraper",
    "description": "Get and download reviews for chosen places on Tripadvisor. Extract the review text, URL, rating, date of travel, published date, basic reviewer info, owner's response, helpful votes, images, review language, place details. Download reviews in XML, JSON, CSV.",
    "version": "0.0",
    "x-build-id": "mTQFrP6bzRq3xcrqS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maxcopell~tripadvisor-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maxcopell-tripadvisor-reviews",
        "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/maxcopell~tripadvisor-reviews/runs": {
      "post": {
        "operationId": "runs-sync-maxcopell-tripadvisor-reviews",
        "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/maxcopell~tripadvisor-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-maxcopell-tripadvisor-reviews",
        "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": "Start URLs",
            "type": "array",
            "description": "Paste here a URL(s) of a specific place you want to get reviews from.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sourceDatasetId": {
            "title": "Tripadvisor Scraper dataset ID of a finished run",
            "type": "string",
            "description": "Dataset ID of a finished Tripadvisor Scraper run to get start URLs from."
          },
          "maxItemsPerQuery": {
            "title": "Limit reviews for each place",
            "minimum": 1,
            "type": "integer",
            "description": "Use a large value (for example 1 million) to get all reviews from each place. If you want to set a limit across all reviews use 'Options' -> 'Maximum charged results'"
          },
          "scrapeReviewerInfo": {
            "title": "Scrape reviewer info",
            "type": "boolean",
            "description": "Scrape reviewer info (name, profile picture, location etc.). You should only extract reviewer's info if you have a legit reason to do so.",
            "default": true
          },
          "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": "It is a date where the scraper stops loading older reviews. Select the date in format YYYY-MM-DD or {number} {unit} *(e.g. '3 days' or '1 week')*"
          },
          "reviewRatings": {
            "title": "Review ratings",
            "type": "array",
            "description": "Select and filter only the desired review ratings. For all ratings, select the 'All ratings' option. Useful if you want to scrape only reviews with certain ratings.",
            "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": "Select the desired reviews languages. Note: English reviews are prioritized over other languages, expect your reviews to first come in English and then in other languages. !!! Tripadvisor changed it's review logic and right now, it will work only with one selected language. Selecting multiple languages could provide you with inconsistent/unexpected results.",
            "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"
            ]
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}