{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Review & Hospitality Leads",
    "description": "Extract public Tripadvisor hotel, restaurant, and attraction listings with ratings, review counts, addresses, phones, public websites, categories, and recent review snippets for hospitality sales and market research.",
    "version": "1.0",
    "x-build-id": "ar6tUEVuhQTbaWsud"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~tripadvisor-review-hospitality-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-tripadvisor-review-hospitality-leads",
        "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/muhammadafzal~tripadvisor-review-hospitality-leads/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-tripadvisor-review-hospitality-leads",
        "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/muhammadafzal~tripadvisor-review-hospitality-leads/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-tripadvisor-review-hospitality-leads",
        "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": "Tripadvisor listing or search URLs",
            "type": "array",
            "description": "Use this for Tripadvisor hotel, restaurant, attraction, category, or search URLs. Direct public listing URLs are the most reliable; do not provide login URLs or cookies.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Tripadvisor URL",
                  "description": "Public Tripadvisor search or listing URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93533-Reviews-Hilton_New_York_Midtown-New_York_City_New_York.html"
              }
            ]
          },
          "searchQueries": {
            "title": "Hospitality search queries",
            "type": "array",
            "description": "Use this to find public Tripadvisor hospitality listings by place and intent, such as 'boutique hotels in Lisbon' or 'seafood restaurants in San Diego'. Ignored when startUrls is provided.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "location": {
            "title": "Default location",
            "minLength": 1,
            "maxLength": 120,
            "type": "string",
            "description": "Use this fallback location when neither startUrls nor searchQueries is provided. Defaults to New York. Examples: 'Dubai', 'Toronto, Canada'.",
            "default": "New York"
          },
          "hospitalityType": {
            "title": "Listing type",
            "enum": [
              "all",
              "hotel",
              "restaurant",
              "attraction"
            ],
            "type": "string",
            "description": "Filter discovered Tripadvisor profiles to hotels, restaurants, attractions, or all hospitality listings.",
            "default": "all"
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum validated hospitality lead records returned and charged. Choose 1-100; default is 20.",
            "default": 20
          },
          "maxPagesPerInput": {
            "title": "Pages per input",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum source/search pages visited per starting URL. Choose 1-10; default is 2. Tripadvisor pagination is followed only when a public next-page URL is present.",
            "default": 2
          },
          "includeReviews": {
            "title": "Include recent reviews",
            "type": "boolean",
            "description": "Include up to maxReviewsPerListing public review snippets when visible on each listing page. Reviews are not full historical exports. Default true.",
            "default": true
          },
          "maxReviewsPerListing": {
            "title": "Reviews per listing",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum public review snippets retained per listing, from 0-10. Default is 3. Set 0 for lead-only output.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 300,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay between public page requests. Choose 300-5000 milliseconds; default is 700. This does not change the result cap or price.",
            "default": 700
          },
          "useProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Use Apify Proxy with a consistent US session for public-page access. Recommended for Tripadvisor. Disable only for a direct-network diagnostic.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}