{
  "openapi": "3.0.1",
  "info": {
    "title": "TripAdvisor Reviews Scraper – Hotels, Restaurants & Attractions",
    "description": "Scrape Tripadvisor reviews from any hotel, restaurant, attraction or tour. Filter by stars, date and language, and get owner replies, photos and reviewer details. No login needed. Export to CSV, Excel or JSON. Great for reputation tracking, sentiment analysis and competitor research.",
    "version": "1.2",
    "x-build-id": "j7XSTm0mxjvc4B1mu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_wiki~tripadvisor-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_wiki-tripadvisor-reviews-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/data_wiki~tripadvisor-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_wiki-tripadvisor-reviews-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/data_wiki~tripadvisor-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_wiki-tripadvisor-reviews-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 Tripadvisor links",
            "minItems": 1,
            "type": "array",
            "description": "Tripadvisor hotel, restaurant, attraction or tour links (or place ids such as d17829580), one per line. Add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPlace": {
            "title": "🔢 Max reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "Most reviews to save for each place. 0 = every review.",
            "default": 20
          },
          "reviewsSince": {
            "title": "📅 Reviews since",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(d|w|m|y|day|week|month|year)s?$",
            "type": "string",
            "description": "Only reviews written on or after this date. Pick a date or a relative value such as 6 months. Leave empty for no limit."
          },
          "ratings": {
            "title": "🎯 Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviews with these star ratings. Leave empty for all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "language": {
            "title": "🌍 Review language",
            "enum": [
              "all",
              "en",
              "fr",
              "de",
              "es",
              "it",
              "pt",
              "nl",
              "ja",
              "zh-CN",
              "zh-TW",
              "ru",
              "ko",
              "tr",
              "ar",
              "sv",
              "da",
              "no",
              "fi",
              "pl",
              "el",
              "th",
              "vi",
              "cs",
              "hu",
              "he",
              "sk",
              "ro",
              "bg",
              "hr",
              "sl",
              "et",
              "lv",
              "lt",
              "uk",
              "id",
              "ms"
            ],
            "type": "string",
            "description": "All languages returns every review. A language code returns the reviews shown in that language (some are machine-translated - see isMachineTranslated and originalLanguage).",
            "default": "all"
          },
          "sort": {
            "title": "🔃 Sort order",
            "enum": [
              "newest",
              "detailed",
              "insightful"
            ],
            "type": "string",
            "description": "Newest first lists the latest reviews first and works best with Reviews since.",
            "default": "newest"
          },
          "keyword": {
            "title": "🔎 Keyword in review",
            "type": "string",
            "description": "Only reviews that mention this text, for example breakfast. Leave empty for all."
          },
          "travelerTypes": {
            "title": "🎯 Traveller types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only reviews written by these kinds of travellers. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "family",
                "couples",
                "solo",
                "business",
                "friends"
              ],
              "enumTitles": [
                "Family",
                "Couples",
                "Solo",
                "Business",
                "Friends"
              ]
            }
          },
          "months": {
            "title": "📅 Months written",
            "uniqueItems": true,
            "type": "array",
            "description": "Only reviews written in these months of any year, for example June to August for summer reviews. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "january",
                "february",
                "march",
                "april",
                "may",
                "june",
                "july",
                "august",
                "september",
                "october",
                "november",
                "december"
              ],
              "enumTitles": [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June",
                "July",
                "August",
                "September",
                "October",
                "November",
                "December"
              ]
            }
          },
          "includePlaceInfo": {
            "title": "📦 Place details on every review",
            "type": "boolean",
            "description": "Add the place block (rating histogram, rank, sub-ratings, address, amenities) to every review row. The places table is always filled.",
            "default": true
          },
          "includeReviewerDetails": {
            "title": "📦 Reviewer details",
            "type": "boolean",
            "description": "Add the reviewer's name, hometown, country and contribution counts to every review.",
            "default": true
          },
          "includePhotos": {
            "title": "📦 Review photos",
            "type": "boolean",
            "description": "Add photo links to every review (photoCount is always the true number of photos on the review).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Runs without a proxy first and switches to a stronger proxy automatically if Tripadvisor rejects requests.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}