{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Scraper - Hotels, Restaurants & Attractions",
    "description": "Extract Tripadvisor hotels, restaurants, attractions, listing URLs, and location details across regional domains. Get ratings, review counts, and available prices or contacts. Pay per delivered row plus a start fee.",
    "version": "0.4",
    "x-build-id": "DIXh9Uqc75gbln0Fn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~tripadvisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~tripadvisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~tripadvisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "One city or region, such as Bangkok or London. Each run searches one destination; use regionId instead for a known geographic ID."
          },
          "regionId": {
            "title": "Geographic ID",
            "pattern": "^[gG]?\\d*$",
            "type": "string",
            "description": "Tripadvisor geographic ID, such as 293916 or g293916. Takes priority for listing searches and location lookups; use destination for sitemap searches."
          },
          "service": {
            "title": "Service",
            "enum": [
              "hotels",
              "restaurants",
              "attractions",
              "sitemap",
              "location_lookup"
            ],
            "type": "string",
            "description": "Choose hotels, restaurants, attractions, sitemap inventory entries, or location details. Each delivered row is billed at the same result price.",
            "default": "hotels"
          },
          "checkin": {
            "title": "Check-in Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Hotel check-in in YYYY-MM-DD format. If omitted, the search uses a date 21 days ahead."
          },
          "checkout": {
            "title": "Check-out Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Hotel check-out in YYYY-MM-DD format. If omitted, the search uses a date 23 days ahead; set both dates for a specific trip."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests, from 1 to 10.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children, from 0 to 10.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children Ages",
            "type": "array",
            "description": "Ages of children, each from 0 to 17, such as [4, 9]. Omitted ages remain an empty list rather than being guessed.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            }
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of hotel rooms, from 1 to 10.",
            "default": 1
          },
          "maxResults": {
            "title": "Max Results per Destination",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum rows for the single destination or geographic input. Defaults to 70; larger requests are collected in parts of 70, subject to your maximum total charge and the Free-plan cap of 200 rows per run.",
            "default": 70
          },
          "quotePoll": {
            "title": "Wait for Hotel Quotes",
            "type": "boolean",
            "description": "Hotels only: wait for more complete price quotes within the available run time. Default off; enabling this does not guarantee a price.",
            "default": false
          },
          "includeSponsored": {
            "title": "Include Sponsored Ads",
            "type": "boolean",
            "description": "Leave at the default. Sponsored listings remain excluded even when this option is enabled.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Sorting preference where supported. Leave RECOMMENDED unless you need a different supported order.",
            "default": "RECOMMENDED"
          },
          "domain": {
            "title": "Tripadvisor Domain",
            "pattern": "^((https?://)?([A-Za-z0-9-]+\\.)*tripadvisor\\.[A-Za-z.]{2,10}/?)?$",
            "type": "string",
            "description": "Regional Tripadvisor domain, such as www.tripadvisor.com or www.tripadvisor.co.uk. Coverage and available fields can vary by domain.",
            "default": "www.tripadvisor.com"
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Language and region tag, such as en_US or en_GB. Set this with domain and currency for regional searches.",
            "default": "en_US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency code, such as USD or GBP. Returned prices include a currency only when the source provides one.",
            "default": "USD"
          },
          "proxyCountry": {
            "title": "Test Country",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          },
          "provider": {
            "title": "Developer Test Option",
            "enum": [
              "auto",
              "http",
              "browser",
              "camoufox"
            ],
            "type": "string",
            "description": "Leave at the default. Used only by the developer for testing.",
            "default": "auto"
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "Not available: flights are not supported. Leave empty."
          },
          "departureDate": {
            "title": "Departure Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Not available: flights are not supported. Leave empty."
          },
          "returnDate": {
            "title": "Return Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Not available: flights are not supported. Leave empty."
          },
          "tripType": {
            "title": "Trip Type",
            "enum": [
              "oneway",
              "roundtrip",
              "multi"
            ],
            "type": "string",
            "description": "Not available: flights are not supported. Leave at the default.",
            "default": "oneway"
          },
          "fields": {
            "title": "Field Selection (not available)",
            "type": "array",
            "description": "Reserved; this input does not select output fields in Actor runs. Choose columns through the dataset export controls instead.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "format": {
            "title": "Response Format",
            "enum": [
              "json"
            ],
            "type": "string",
            "description": "Leave as json. Choose the download format through the dataset export controls.",
            "default": "json"
          },
          "cursor": {
            "title": "Continuation Cursor (not available)",
            "type": "object",
            "description": "Reserved; manual continuation with this input is not supported in Actor runs."
          },
          "webhookUrl": {
            "title": "Webhook Input (not available)",
            "type": "string",
            "description": "Reserved; this input is not used in Actor runs. Configure webhooks through Apify integrations instead."
          },
          "jobDeadlineAt": {
            "title": "Test Deadline",
            "type": "number",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "proxyUrl": {
            "title": "Test Connection Override",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          },
          "workerBaseUrl": {
            "title": "Test Endpoint Override",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}