{
  "openapi": "3.0.1",
  "info": {
    "title": "TripAdvisor Reviews Scraper",
    "description": "TripAdvisor Reviews Scraper exports reviews of TripAdvisor restaurants and attractions: rating, title, text, dates, trip type, sub-ratings, photos, owner replies and reviewer info. Filter by rating, trip type, month, date, keyword, language.",
    "version": "1.0",
    "x-build-id": "3V1d0ej3w9T4GpyO6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tripadvisor-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~tripadvisor-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~tripadvisor-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "TripAdvisor place URLs",
            "type": "array",
            "description": "Restaurant or attraction pages on TripAdvisor (any country website), e.g. https://www.tripadvisor.com/Restaurant_Review-g60763-d457884-Reviews-Golden_Unicorn_Restaurant-New_York_City_New_York.html. One place per line.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItemsPerQuery": {
            "title": "Max reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "How many reviews to take from EACH place (and each review language). 0 = all reviews of the place.",
            "default": 50
          },
          "maxItems": {
            "title": "Max reviews in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many reviews (0 = no total limit; the per-place limit still applies).",
            "default": 0
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "most_recent",
              "detailed_reviews",
              "most_helpful",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Order of the reviews of each place. most_recent = newest first (the order the site lists them). The other orders re-sort the reviews read for that place before they are saved.",
            "default": "most_recent"
          },
          "ratings": {
            "title": "Filter by rating",
            "type": "array",
            "description": "Keep only reviews with these star ratings. Empty = all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star (Terrible)",
                "2 stars (Poor)",
                "3 stars (Average)",
                "4 stars (Very good)",
                "5 stars (Excellent)"
              ]
            },
            "default": []
          },
          "tripTypes": {
            "title": "Filter by trip type",
            "type": "array",
            "description": "Keep only reviews of travellers who went as family, couple, solo, on business or with friends. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "FAMILY",
                "COUPLES",
                "SOLO",
                "BUSINESS",
                "FRIENDS"
              ],
              "enumTitles": [
                "Families",
                "Couples",
                "Solo",
                "Business",
                "Friends"
              ]
            },
            "default": []
          },
          "monthsOfVisit": {
            "title": "Filter by month of visit",
            "type": "array",
            "description": "Keep only reviews whose visit took place in these months (time of year). Empty = all months.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12"
              ],
              "enumTitles": [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June",
                "July",
                "August",
                "September",
                "October",
                "November",
                "December"
              ]
            },
            "default": []
          },
          "since": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Keep only reviews published on or after this date (YYYY-MM-DD, or relative like \"30 days\", \"6 months\"). Paging stops at the first older page, so this also makes runs faster."
          },
          "until": {
            "title": "Only reviews until",
            "type": "string",
            "description": "Keep only reviews published on or before this date (YYYY-MM-DD). Combine with \"since\" for a date range."
          },
          "recentDays": {
            "title": "Only reviews of the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Shortcut for a moving date window: keep only reviews published in the last N days (0 = off). Useful for daily or weekly monitoring.",
            "default": 0
          },
          "searchKeyword": {
            "title": "Search keywords in reviews",
            "type": "array",
            "description": "Keep only reviews whose title or text contains at least one of these words or phrases (not case sensitive). Empty = all reviews.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "reviewsLanguages": {
            "title": "Review languages (country website)",
            "type": "array",
            "description": "Read the reviews as they are shown on the TripAdvisor website of each language: en = tripadvisor.com, de = tripadvisor.de, fr = tripadvisor.fr ... Each language is read as its own list (per-place limit per language).",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "de",
                "fr",
                "es",
                "it",
                "pt",
                "nl",
                "ja",
                "sv",
                "da",
                "no",
                "pl",
                "tr",
                "ru",
                "ko",
                "zhTW",
                "el",
                "fi",
                "ar",
                "th",
                "id",
                "vi",
                "he",
                "cs",
                "hu",
                "en-GB",
                "en-CA",
                "en-AU",
                "en-IN",
                "es-MX",
                "pt-BR"
              ]
            },
            "default": [
              "en"
            ]
          },
          "disableMachineTranslations": {
            "title": "Skip machine-translated reviews",
            "type": "boolean",
            "description": "The site also shows reviews written in other languages, machine-translated. Turn this on to keep only reviews written in the chosen language (original text only).",
            "default": false
          },
          "scrapeReviewerInfo": {
            "title": "Include reviewer info",
            "type": "boolean",
            "description": "Add the reviewer's public name, username, profile link, avatar, hometown and contribution counts. Turn off to save only the review itself.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many places are read at the same time (1-20).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended (the default).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}