{
  "openapi": "3.0.1",
  "info": {
    "title": "TripAdvisor Scraper",
    "description": "Collect Tripadvisor hotels, restaurants and attractions with name, address, ratings and rank, reviews, prices, amenities, contact info, awards and AI review summaries. No login needed. Great for travel research, competitor analysis and local business lead lists.",
    "version": "0.2",
    "x-build-id": "v31d7QIGIPfnbAjKQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_wiki~tripadvisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_wiki-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/data_wiki~tripadvisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_wiki-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/data_wiki~tripadvisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_wiki-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",
        "required": [
          "search"
        ],
        "properties": {
          "search": {
            "title": "🔎 Keywords or links",
            "type": "array",
            "description": "One entry per line: a keyword with a city (\"pizza in Rome\", \"hotels in Paris\"), a Tripadvisor destination or list link, or a single hotel, restaurant or attraction link.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "🎯 Place type",
            "enum": [
              "all",
              "hotels",
              "restaurants",
              "attractions"
            ],
            "type": "string",
            "description": "What a keyword or a destination link returns. Single place links keep their own type.",
            "default": "all"
          },
          "maxItems": {
            "title": "🔢 Max places per input",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum places for each keyword or link. 0 collects everything Tripadvisor lists for it.",
            "default": 20
          },
          "fullDetails": {
            "title": "✅ Open every place page",
            "type": "boolean",
            "description": "On: every row has the full details (prices, amenities, ratings split, summary). Off: only the list data (faster, fewer fields). Reviews, photos and stay dates switch it on.",
            "default": true
          },
          "includeNearbyResults": {
            "title": "✅ Include nearby places",
            "type": "boolean",
            "description": "Also add hotels or restaurants close to the places that matched, filling the free slots up to Max places per input. These rows have isNearbyResult set to true. Works for hotel and restaurant matches.",
            "default": false
          },
          "reviewsPerPlace": {
            "title": "🔢 Reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "Newest reviews added inside each place row. 0 = no reviews. Tripadvisor shows a logged-out visitor only part of the reviews of very popular places.",
            "default": 0
          },
          "checkIn": {
            "title": "📅 Check-in date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Hotel prices for this stay, for example 2026-12-10. Must not be in the past. Empty = the dates Tripadvisor shows by default."
          },
          "checkOut": {
            "title": "📅 Check-out date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "End of the stay, for example 2026-12-12. Needs a check-in date. Empty = the next day."
          },
          "currency": {
            "title": "🔧 Price currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "JPY",
              "INR",
              "SGD",
              "AED",
              "THB",
              "MXN",
              "BRL",
              "SEK",
              "NOK",
              "DKK",
              "NZD",
              "ZAR",
              "CNY",
              "HKD",
              "TRY",
              "PLN",
              "CZK"
            ],
            "type": "string",
            "description": "Currency of the hotel offers. Not set = the currency Tripadvisor shows by default."
          },
          "includeTags": {
            "title": "✅ Review keywords",
            "type": "boolean",
            "description": "Add the keywords reviewers mention most (reviewTags) to every place that has them.",
            "default": true
          },
          "maxPhotos": {
            "title": "🔢 Photos per place",
            "minimum": 0,
            "type": "integer",
            "description": "Photo links added to every place row. 0 = none. Tripadvisor shows about 40 photos per place at most.",
            "default": 0
          },
          "photosType": {
            "title": "🔧 Photo source",
            "enum": [
              "everyone",
              "travelers",
              "management"
            ],
            "type": "string",
            "description": "Which photos to list when Photos per place is above 0.",
            "default": "everyone"
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. By default the run connects directly and switches to a proxy by itself if the site blocks it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}