{
  "openapi": "3.0.1",
  "info": {
    "title": "TripAdvisor Scraper (Hotels, Restaurants, Attractions)",
    "description": "TripAdvisor Scraper (Hotels, Restaurants, Attractions) exports places of any city: name, rating, reviews, ranking, address, coordinates, prices, amenities, cuisines, opening hours, photos, nearby places, AI review summary and latest reviews.",
    "version": "1.0",
    "x-build-id": "f69clYLAGCpOlJooF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tripadvisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-tripadvisor-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-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-tripadvisor-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-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-tripadvisor-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": {
          "query": {
            "title": "Destinations (city, region, country)",
            "type": "array",
            "description": "Places to search, one per line, e.g. Lisbon, Kyoto, Tuscany. Each destination is read for the types chosen below (hotels, restaurants, things to do).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "TripAdvisor URLs",
            "type": "array",
            "description": "Any TripAdvisor destination (Tourism-...), list (Hotels-..., Restaurants-..., Attractions-..., with your own filters in the URL) or place page (Hotel_Review-..., Restaurant_Review-..., Attraction_Review-...).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeHotels": {
            "title": "Include hotels",
            "type": "boolean",
            "description": "Read the hotels of each destination.",
            "default": true
          },
          "includeRestaurants": {
            "title": "Include restaurants",
            "type": "boolean",
            "description": "Read the restaurants of each destination.",
            "default": true
          },
          "includeAttractions": {
            "title": "Include attractions (things to do)",
            "type": "boolean",
            "description": "Read the attractions / things to do of each destination.",
            "default": true
          },
          "maxItemsPerQuery": {
            "title": "Max places per list",
            "minimum": 0,
            "type": "integer",
            "description": "How many places to take from EACH list (each destination x type, each list URL). 0 = the whole list.",
            "default": 30
          },
          "maxItems": {
            "title": "Max places in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many places (0 = no total limit).",
            "default": 0
          },
          "scrapeDetailPages": {
            "title": "Open every place page (full record)",
            "type": "boolean",
            "description": "On: every place's own page is read for the full record (ranking, website, amenities, cuisines, hours, photos, reviews...). Off: only the list data (faster, fewer columns).",
            "default": true
          },
          "language": {
            "title": "Website language / country",
            "enum": [
              "en",
              "en-GB",
              "en-CA",
              "en-AU",
              "en-IN",
              "de",
              "fr",
              "es",
              "es-MX",
              "it",
              "pt",
              "pt-BR",
              "nl",
              "ja",
              "sv",
              "da",
              "no",
              "pl",
              "tr",
              "ru",
              "ko",
              "zhTW",
              "el",
              "fi",
              "ar",
              "th",
              "id",
              "vi",
              "he",
              "cs",
              "hu"
            ],
            "type": "string",
            "description": "TripAdvisor country website to read: language of the texts and currency of the prices (en = tripadvisor.com, en-GB = co.uk in GBP, de = .de in EUR ...).",
            "default": "en"
          },
          "sortBy": {
            "title": "Sort places by",
            "enum": [
              "default",
              "ranking",
              "rating",
              "reviews",
              "price_low",
              "price_high",
              "name"
            ],
            "type": "string",
            "description": "default = the site's own list order (traveller ranking), streamed as found. The other orders sort all places found at the end of the run.",
            "default": "default"
          },
          "minRating": {
            "title": "Minimum traveller rating",
            "enum": [
              "",
              "2",
              "3",
              "3.5",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Keep only places rated at least this many bubbles.",
            "default": ""
          },
          "hotelClasses": {
            "title": "Hotel class (stars)",
            "type": "array",
            "description": "Keep only hotels with these star classes.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4.5",
                "4",
                "3.5",
                "3",
                "2.5",
                "2",
                "1.5",
                "1"
              ]
            },
            "default": []
          },
          "hotelAmenities": {
            "title": "Hotel amenities (all must be present)",
            "type": "array",
            "description": "Keep only hotels that list every one of these amenities, e.g. Pool, Free parking, Wifi, Breakfast, Pets allowed (matched as text).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hotelStyles": {
            "title": "Hotel styles",
            "type": "array",
            "description": "Keep only hotels ranked for one of these styles, e.g. Family, Luxury, Business, Romantic, Budget, Modern, Classic.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "restaurantPrices": {
            "title": "Restaurant price",
            "type": "array",
            "description": "Keep only restaurants in these price classes.",
            "items": {
              "type": "string",
              "enum": [
                "Cheap Eats",
                "Mid-range",
                "Fine Dining"
              ]
            },
            "default": []
          },
          "restaurantMealTypes": {
            "title": "Meals served",
            "type": "array",
            "description": "Keep only restaurants that serve one of these meals.",
            "items": {
              "type": "string",
              "enum": [
                "Breakfast",
                "Brunch",
                "Lunch",
                "Dinner",
                "Late Night",
                "Drinks"
              ]
            },
            "default": []
          },
          "cuisines": {
            "title": "Cuisines / tags",
            "type": "array",
            "description": "Keep only restaurants with one of these cuisines or tags, e.g. Italian, Seafood, Vegetarian friendly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "thingsToDoCategory": {
            "title": "Things to do: category",
            "type": "array",
            "description": "Keep only attractions whose tags or ranking category contain one of these words, e.g. Museums, Parks, Tours, Food & Drink.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "thingsToDoDuration": {
            "title": "Things to do: duration",
            "type": "array",
            "description": "Keep only attractions whose suggested duration falls in one of these ranges.",
            "items": {
              "type": "string",
              "enum": [
                "Up to 1 hour",
                "1 to 4 hours",
                "4 hours to 1 day",
                "1 to 3 days",
                "3+ days"
              ]
            },
            "default": []
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only places whose lowest price (hotels: nightly price from) is at least this amount, in the currency of the chosen website."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only places whose lowest price is at most this amount."
          },
          "excludeClosed": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Leave out places marked as closed.",
            "default": true
          },
          "maxReviewsPerPlace": {
            "title": "Latest reviews per place",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "How many of the newest reviews to attach to every place (0-15; for full review exports use the TripAdvisor Reviews Scraper).",
            "default": 5
          },
          "maxPhotosPerPlace": {
            "title": "Photos per place",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many photo links to attach to every place (0-100).",
            "default": 10
          },
          "photosType": {
            "title": "Photos from",
            "enum": [
              "ALL",
              "TRAVELER",
              "MANAGEMENT"
            ],
            "type": "string",
            "description": "Which photos to keep: all, only travellers' photos, or only the management's photos.",
            "default": "ALL"
          },
          "includeAiReviewsSummary": {
            "title": "Include AI review summary",
            "type": "boolean",
            "description": "Add the site's AI-written summary of the reviews when the place has one.",
            "default": true
          },
          "includeNearbyResults": {
            "title": "Include nearby places",
            "type": "boolean",
            "description": "Add the nearby hotels, restaurants and attractions listed on the place page.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pages are read at the same time (1-30).",
            "default": 8
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}