{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Reviews Scraper & New Review Monitor",
    "description": "Tripadvisor reviews scraper for hotels, restaurants, attractions: rating, text, trip type, author, owner response, photos. By URL or name. 0.49 $ per 1,000.",
    "version": "0.2",
    "x-build-id": "qESr64Ni0EzUrJvcg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benchmarked~tripadvisor-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benchmarked-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/benchmarked~tripadvisor-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benchmarked-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/benchmarked~tripadvisor-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benchmarked-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",
        "properties": {
          "startUrls": {
            "title": "Tripadvisor place URLs",
            "type": "array",
            "description": "Hotel, restaurant or attraction pages copied from your browser, e.g. https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-Hyatt_Grand_Central_New_York-New_York_City_New_York.html. Any Tripadvisor country site works. The sample hotel filled in here is skipped when you use the name search below and leave it unchanged.",
            "default": [
              {
                "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-Hyatt_Grand_Central_New_York-New_York_City_New_York.html"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search by name + city",
            "type": "array",
            "description": "Optional. One place per line, e.g. \"Colosseum Rome\" or \"Bustronome Paris\". The best match from Tripadvisor's search box is scraped: exact name + city first, tours ranked down, then the most reviewed close match (38 / 40 right in our test). The place row shows matchedPlaceName and matchedPlaceUrl. A search with no match gives a free error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each place after this many reviews, newest first. 0 = all reviews in the chosen language. You pay per review returned.",
            "default": 20
          },
          "reviewsNewerThan": {
            "title": "Only reviews published on or after",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Reviews come newest first; paging stops at the first page where most reviews are older (a pinned or out-of-order old review does not stop it). You only pay for reviews on or after the date. Free filter."
          },
          "language": {
            "title": "Review language",
            "enum": [
              "",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "pt",
              "nl",
              "ja",
              "sv",
              "da"
            ],
            "type": "string",
            "description": "Each Tripadvisor country site lists the reviews written in its language. Pick one to read that site for every place; run again with another language for more. Free.",
            "default": ""
          },
          "languages": {
            "title": "Several review languages",
            "type": "array",
            "description": "Optional. Read each place once per language, e.g. [\"en\", \"de\", \"fr\"], or [\"all\"] for all 10 languages above (en, fr, de, it, es, pt, nl, ja, sv, da). Overrides 'Review language'. Max reviews applies per language. The place row comes once per place.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyOriginalLanguage": {
            "title": "Skip machine-translated reviews",
            "type": "boolean",
            "description": "Country sites mix in reviews machine-translated from other languages (in our test 80% of the German and 60% of the French rows of a New York hotel). Tick this to keep only reviews written in the chosen language. Free filter; more pages are read.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new reviews (since the last run)",
            "type": "boolean",
            "description": "Remember the reviews of earlier runs (per place and language) and return and charge only reviews you have not received before. The place row comes only when a place has new reviews. First run: everything is new. Use with a schedule.",
            "default": false
          },
          "trackingId": {
            "title": "Watch list name (only-new mode)",
            "type": "string",
            "description": "Keeps separate memories for separate watch lists, e.g. \"my-hotels\" and \"competitors\". Stored in your account in the key-value store 'benchmarked-tripadvisor-seen' (90 days).",
            "default": "default"
          },
          "includePlaceInfo": {
            "title": "Add one place row per place",
            "type": "boolean",
            "description": "One extra row per place: name, rating, review count, ranking (e.g. #417 of 530 hotels in New York City), address, price level, phone, e-mail, website, coordinates, rating histogram, photo count, cuisines or amenities, and matchedPlaceName / matchedPlaceUrl so you can see which place a name search picked. Charged as a cheap 'place' event.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default (Apify datacenter proxy, included in every plan). When Tripadvisor blocks the proxy IPs, the actor retries on a direct connection by itself. Residential works too but costs proxy traffic (about 0.09 $ per 1,000 reviews in our test).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}