{
  "openapi": "3.0.1",
  "info": {
    "title": "Tripadvisor Leads Scraper",
    "description": "[💰 $4.99 / 1K leads] Hotels, restaurants and things to do of any city on Tripadvisor with email, phone, website, address, Instagram and Facebook, plus the emails on each place's own website. Any Tripadvisor filter. No account, no proxy.",
    "version": "0.0",
    "x-build-id": "xIV3hXoeyO3GICRdv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~tripadvisor-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-tripadvisor-leads-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/sleepmodesystems~tripadvisor-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-tripadvisor-leads-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/sleepmodesystems~tripadvisor-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-tripadvisor-leads-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": {
          "locations": {
            "title": "Cities, regions or Tripadvisor lists",
            "type": "array",
            "description": "One per line: a city (<code>Lisbon</code>, <code>Paris, France</code>, <code>restaurants in Porto</code>), a region or a country (all its destinations), a Tripadvisor list link (<code>tripadvisor.com/Restaurants-g189158-Lisbon...</code>, filters in the link are kept) or an id like <code>g189158</code>.",
            "items": {
              "type": "string"
            }
          },
          "placeTypes": {
            "title": "Place types",
            "type": "array",
            "description": "Which lists to read for each location. Empty = all three. A list link keeps its own type.",
            "items": {
              "type": "string",
              "enum": [
                "restaurants",
                "hotels",
                "attractions"
              ],
              "enumTitles": [
                "Restaurants",
                "Hotels",
                "Things to do"
              ]
            },
            "default": []
          },
          "maxPlacesPerList": {
            "title": "Places per list",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Per location and place type, best ranked first. <code>0</code> = the whole list. ⚠️ Every lead delivered is charged (with <b>Only places with an email</b>, only the leads with an email).",
            "default": 0
          },
          "websiteContacts": {
            "title": "Emails and social profiles from each place's website",
            "type": "boolean",
            "description": "Also read each place's own website (home page and contact page) for its emails and its Facebook, Instagram, LinkedIn, TikTok, X and YouTube profiles.",
            "default": true
          },
          "onlyWithEmail": {
            "title": "Only places with an email",
            "type": "boolean",
            "description": "Leave out places without any email (from Tripadvisor or their website). Left-out places are not charged.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "5",
              "4",
              "3",
              "2"
            ],
            "type": "string",
            "description": "Only places rated at least this many bubbles. Empty = every rating."
          },
          "cuisines": {
            "title": "Restaurants: cuisines",
            "type": "array",
            "description": "Restaurants serving any of these, as Tripadvisor names them: <code>Portuguese</code>, <code>Italian</code>, <code>Japanese</code>, <code>Vegetarian Friendly</code>, <code>Seafood</code>. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "priceLevels": {
            "title": "Restaurants: price",
            "type": "array",
            "description": "Empty = every price.",
            "items": {
              "type": "string",
              "enum": [
                "Cheap Eats",
                "Mid-range",
                "Fine Dining"
              ],
              "enumTitles": [
                "Cheap eats ($)",
                "Mid-range ($$ - $$$)",
                "Fine dining ($$$$)"
              ]
            },
            "default": []
          },
          "restaurantTypes": {
            "title": "Restaurants: establishment types",
            "type": "array",
            "description": "<code>Restaurants</code>, <code>Coffee & Tea</code>, <code>Bars & Pubs</code>, <code>Bakeries</code>, <code>Dessert</code>, <code>Quick Bites</code>... Empty = Tripadvisor's restaurant list (restaurants only); add the others to include cafés, bars and bakeries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hotelClasses": {
            "title": "Hotels: star class",
            "type": "array",
            "description": "Empty = every class.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars"
              ]
            },
            "default": []
          },
          "hotelTypes": {
            "title": "Hotels: property types",
            "type": "array",
            "description": "<code>Hotels</code>, <code>B&Bs & Inns</code>, <code>Speciality Lodging</code>, <code>Hostel</code>, <code>Condo</code>... Empty = every property type.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "attractionCategories": {
            "title": "Things to do: categories",
            "type": "array",
            "description": "<code>Sights & Landmarks</code>, <code>Museums</code>, <code>Nature & Parks</code>, <code>Nightlife</code>, <code>Boat Tours & Water Sports</code>, <code>Spas & Wellness</code>... Empty = Tripadvisor's own list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "neighborhoods": {
            "title": "Neighbourhoods",
            "type": "array",
            "description": "Only places in these neighbourhoods, for every place type: <code>Alfama</code>, <code>Bairro Alto</code>. Empty = the whole city.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "otherFilters": {
            "title": "Other filters",
            "type": "array",
            "description": "Any other filter Tripadvisor offers for the list, by its name: hotels <code>Free Wifi</code>, <code>Pool</code>, <code>Breakfast included</code>, <code>Romantic</code>; restaurants <code>Vegan options</code>, <code>MICHELIN 1 Star</code>, <code>Brunch</code>, <code>Open now</code>; things to do <code>Good for Kids</code>, <code>Free Entry</code>, <code>Under 1 hour</code>. Each value must exist for the list, or the list is skipped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum leads in the run",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many leads (all lists together). Empty = no run limit."
          },
          "minItems": {
            "title": "Minimum leads",
            "minimum": 0,
            "type": "integer",
            "description": "For monitoring: mark the run as failed when fewer leads come back."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}