{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Data Extractor Pro",
    "description": "TripAdvisor scraper: Extract hotel, restaurant & attraction data. Get reviews, ratings, pricing, photos, amenities in JSON/CSV. No API key needed. Multi-language support.    \n   Perfect for travel businesses, competitive analysis & market research.",
    "version": "0.0",
    "x-build-id": "XKzHDyEx0DbEOcQ2d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xquantify~tripadvisor-data-extractor-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xquantify-tripadvisor-data-extractor-pro",
        "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/xquantify~tripadvisor-data-extractor-pro/runs": {
      "post": {
        "operationId": "runs-sync-xquantify-tripadvisor-data-extractor-pro",
        "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/xquantify~tripadvisor-data-extractor-pro/run-sync": {
      "post": {
        "operationId": "run-sync-xquantify-tripadvisor-data-extractor-pro",
        "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": {
          "performanceMode": {
            "title": "Performance Mode (Recommended)",
            "enum": [
              "quick-test",
              "standard",
              "deep-research",
              "enterprise"
            ],
            "type": "string",
            "description": "Choose a preset optimized for your use case. Auto-configures speed, depth, and timeout settings.",
            "default": "quick-test"
          },
          "mode": {
            "title": "Extraction Mode",
            "enum": [
              "search",
              "direct-urls",
              "location-all"
            ],
            "type": "string",
            "description": "Choose what you want to extract",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search Location/Keyword",
            "type": "string",
            "description": "Enter a city name (e.g., 'Tokyo', 'Paris', 'New York', 'London', 'Bangkok', 'Singapore'). Supports 50+ major cities worldwide."
          },
          "startUrls": {
            "title": "Direct URLs",
            "type": "array",
            "description": "Paste TripAdvisor URLs directly (one per line). Works with hotels, restaurants, attractions. Example: https://www.tripadvisor.com/Hotel_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris.html",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dataTypes": {
            "title": "What to Extract",
            "type": "object",
            "description": "Select what types of data you want to scrape",
            "properties": {
              "hotels": {
                "type": "boolean",
                "title": "Hotels",
                "description": "Extract hotel listings and data",
                "default": true
              },
              "restaurants": {
                "type": "boolean",
                "title": "Restaurants",
                "description": "Extract restaurant listings and data",
                "default": true
              },
              "attractions": {
                "type": "boolean",
                "title": "Attractions & Things to Do",
                "description": "Extract attractions, landmarks, and things to do",
                "default": true
              },
              "vacationRentals": {
                "type": "boolean",
                "title": "Vacation Rentals",
                "description": "Extract vacation rental listings",
                "default": false
              }
            },
            "default": {
              "hotels": true,
              "restaurants": true,
              "attractions": true,
              "vacationRentals": false
            }
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many listings to extract (leave empty for unlimited)",
            "default": 50
          },
          "includeReviews": {
            "title": "Extract Reviews",
            "type": "boolean",
            "description": "Include customer reviews for each listing",
            "default": true
          },
          "maxReviewsPerListing": {
            "title": "Max Reviews per Listing",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Number of reviews to extract for each place (0 = all reviews)",
            "default": 10
          },
          "reviewFilters": {
            "title": "Review Filters",
            "type": "object",
            "description": "Filter which reviews to extract",
            "properties": {
              "language": {
                "type": "string",
                "title": "Review Language",
                "description": "Filter reviews by language",
                "enum": [
                  "all",
                  "en",
                  "es",
                  "fr",
                  "de",
                  "it",
                  "pt",
                  "ja",
                  "zh"
                ],
                "enumTitles": [
                  "All Languages",
                  "English",
                  "Spanish",
                  "French",
                  "German",
                  "Italian",
                  "Portuguese",
                  "Japanese",
                  "Chinese"
                ],
                "default": "all"
              },
              "rating": {
                "type": "string",
                "title": "Rating Filter",
                "description": "Filter reviews by minimum rating",
                "enum": [
                  "all",
                  "5",
                  "4",
                  "3",
                  "2",
                  "1"
                ],
                "enumTitles": [
                  "All Ratings",
                  "5 Stars Only",
                  "4+ Stars",
                  "3+ Stars",
                  "2+ Stars",
                  "1+ Stars"
                ],
                "default": "all"
              },
              "sortBy": {
                "type": "string",
                "title": "Sort Reviews By",
                "description": "Choose how to sort extracted reviews",
                "enum": [
                  "recent",
                  "helpful",
                  "rating-high",
                  "rating-low"
                ],
                "enumTitles": [
                  "Most Recent",
                  "Most Helpful",
                  "Highest Rating",
                  "Lowest Rating"
                ],
                "default": "recent"
              }
            },
            "default": {
              "language": "all",
              "rating": "all",
              "sortBy": "recent"
            }
          },
          "includePhotos": {
            "title": "Extract Photo URLs",
            "type": "boolean",
            "description": "Include URLs of all photos",
            "default": true
          },
          "includeAmenities": {
            "title": "Extract Amenities & Features",
            "type": "boolean",
            "description": "Include detailed amenities, features, and facilities",
            "default": true
          },
          "includePricing": {
            "title": "Extract Pricing Information",
            "type": "boolean",
            "description": "Get price levels and current offers (when available)",
            "default": true
          },
          "includeContactInfo": {
            "title": "Extract Contact Information",
            "type": "boolean",
            "description": "Include phone numbers, websites, and email addresses",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "zh",
              "ar",
              "ru"
            ],
            "type": "string",
            "description": "Language for extracted content",
            "default": "en"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "CNY",
              "AUD",
              "CAD",
              "CHF",
              "INR",
              "BRL"
            ],
            "type": "string",
            "description": "Currency for prices",
            "default": "USD"
          },
          "hotelCheckIn": {
            "title": "Hotel Check-in Date (Optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "For hotel price checking (YYYY-MM-DD format)"
          },
          "hotelCheckOut": {
            "title": "Hotel Check-out Date (Optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "For hotel price checking (YYYY-MM-DD format)"
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Configure proxy settings for reliable scraping",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of parallel browser instances (higher = faster but uses more resources)",
            "default": 3
          },
          "debug": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Enable detailed logging for troubleshooting",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}