{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Reviews and Search Scraper",
    "description": "Tripadvisor scraper: every review of any hotel, restaurant or attraction (text, rating, trip type, travel date, subratings, photos, owner reply, reviewer) by URL or by name, the place's rating and star counts, and places by name. No login, no browser. Fast, cheap per result.",
    "version": "1.1",
    "x-build-id": "harQYINVKuqZ1auB3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepmine~tripadvisor-scraper-rust/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepmine-tripadvisor-scraper-rust",
        "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/deepmine~tripadvisor-scraper-rust/runs": {
      "post": {
        "operationId": "runs-sync-deepmine-tripadvisor-scraper-rust",
        "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/deepmine~tripadvisor-scraper-rust/run-sync": {
      "post": {
        "operationId": "run-sync-deepmine-tripadvisor-scraper-rust",
        "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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "reviews",
              "search"
            ],
            "type": "string",
            "description": "Reviews of the places below, or places found by name (search). Left empty: reviews when you give URLs or names, search when you give only search terms.",
            "default": "reviews"
          },
          "startUrls": {
            "title": "Tripadvisor URLs",
            "type": "array",
            "description": "Hotel, restaurant, attraction or tour pages on any Tripadvisor domain (the -d<number> part names the place), or bare location ids. Example: https://www.tripadvisor.com/Hotel_Review-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeNames": {
            "title": "Place names",
            "type": "array",
            "description": "Names instead of URLs, best with the city: \"Katz's Delicatessen, New York\", \"Louvre Museum Paris\". A name is taken only when one hotel, restaurant or attraction clearly matches its name and city. When none or several do, nothing is read or charged for it, and OUTPUT lists the candidates with their URLs.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City or area for names",
            "type": "string",
            "description": "The city every place name above is in (like Miami Beach or New York), when the names don't say it. A place must lie there to be taken."
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "type": "integer",
            "description": "Stop each place after this many reviews. Tripadvisor serves every review, back to the first one.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "detailed",
              "insightful",
              "relevant"
            ],
            "type": "string",
            "description": "Newest first (default) is what a date cutoff needs. Detailed and insightful are Tripadvisor's own orders.",
            "default": "newest"
          },
          "lastReviewDate": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Only reviews written on or after this date: 2026-01-31, or a span back from today like 3 months or 14 days. Works with every sort order (newest first stops reading at the date; other orders read on and skip older reviews)."
          },
          "reviewRatings": {
            "title": "Ratings",
            "type": "array",
            "description": "Only reviews with these star ratings (1 to 5). Empty: all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "reviewsLanguages": {
            "title": "Review languages",
            "type": "array",
            "description": "Only reviews written in these languages (codes like en, fr, de, es, it, ja, zh). Empty: all languages, with Tripadvisor's machine translations marked by isMachineTranslated.",
            "items": {
              "type": "string"
            }
          },
          "tripTypes": {
            "title": "Trip types",
            "type": "array",
            "description": "Only reviews from these kinds of trips. Empty: all.",
            "items": {
              "type": "string",
              "enum": [
                "family",
                "couples",
                "solo",
                "business",
                "friends"
              ],
              "enumTitles": [
                "Family",
                "Couples",
                "Solo",
                "Business",
                "Friends"
              ]
            }
          },
          "reviewsContaining": {
            "title": "Reviews mentioning",
            "type": "string",
            "description": "Only reviews that mention this word or phrase (Tripadvisor's own review search), like pool or breakfast."
          },
          "disableMachineTranslations": {
            "title": "Skip machine translations",
            "type": "boolean",
            "description": "Leave out reviews that Tripadvisor machine-translated into your locale (not saved, not charged). Off: they are kept and marked isMachineTranslated; Tripadvisor does not send their original text.",
            "default": false
          },
          "includeHotelWebsite": {
            "title": "Hotel website",
            "type": "boolean",
            "description": "Fill a hotel's own website (placeInfo.website). Tripadvisor hands it out only through a short redirect that refuses datacenter IPs, so it is read with one to three small residential-proxy requests per hotel (about 9 KB each, no extra charge to you). Off: hotel website stays empty (placeInfo.websiteStatus says off); phone and email are still filled.",
            "default": true
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Search mode: places for each term (hotels, restaurants, attractions, tours, cities), with id, type, address, area, coordinates, photo and URL. Use the URLs as input for reviews.",
            "items": {
              "type": "string"
            }
          },
          "maxSearchResults": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Places per search term (Tripadvisor's search gives up to 20).",
            "default": 10
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Tripadvisor locale for the answers, like en-US, en-GB, fr-FR, de-DE.",
            "default": "en-US"
          },
          "refreshQueryId": {
            "title": "Read Tripadvisor's query id fresh",
            "type": "boolean",
            "description": "The Actor keeps Tripadvisor's review query id between runs and reads it again from the site by itself when Tripadvisor refuses it. Turn this on only to force a fresh read at the start.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is enough; no residential proxy is needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}