{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Attraction Reviews Scraper",
    "description": "Scrape Tripadvisor reviews of any attraction, museum, landmark or tour: text, stars, visit date, trip type, photos, owner reply, reviewer, plus the attraction's rating. By URL or name. No login, fast.",
    "version": "1.1",
    "x-build-id": "nYpPwFzRXrGEOc8wJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepmine~tripadvisor-attraction-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepmine-tripadvisor-attraction-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/deepmine~tripadvisor-attraction-reviews/runs": {
      "post": {
        "operationId": "runs-sync-deepmine-tripadvisor-attraction-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/deepmine~tripadvisor-attraction-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-deepmine-tripadvisor-attraction-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": "Attraction or tour URLs",
            "type": "array",
            "description": "Tripadvisor attraction, museum, landmark, park, theme park or tour pages on any Tripadvisor domain (Attraction_Review or AttractionProductReview links; the -d<number> part names the place). Bare ids go in Location ids below. Example: https://www.tripadvisor.com/Attraction_Review-g187791-d192285-Reviews-Colosseum-Rome_Lazio.html",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeNames": {
            "title": "Attraction names",
            "type": "array",
            "description": "Names instead of URLs, each with its city: \"Louvre Museum Paris\", \"Sagrada Familia Barcelona\" (or give the city in City or area below). A name is taken only when one attraction clearly matches its name and city; a name without a city, or one that fits several places, is not read or charged, and OUTPUT lists the candidates with their URLs.",
            "items": {
              "type": "string"
            }
          },
          "locationIds": {
            "title": "Location ids",
            "type": "array",
            "description": "Tripadvisor location ids, as a number (190166) or as the URL writes them (d190166).",
            "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 attraction",
            "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)."
          },
          "tripTypes": {
            "title": "Trip types",
            "type": "array",
            "description": "Only reviews from visitors on these kinds of trips (who they came with). Empty: all.",
            "items": {
              "type": "string",
              "enum": [
                "family",
                "couples",
                "solo",
                "business",
                "friends"
              ],
              "enumTitles": [
                "Family",
                "Couples",
                "Solo",
                "Business",
                "Friends"
              ]
            }
          },
          "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"
            }
          },
          "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
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}