# Tripadvisor Review & Hospitality Leads (`muhammadafzal/tripadvisor-review-hospitality-leads`) Actor

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.

- **URL**: https://apify.com/muhammadafzal/tripadvisor-review-hospitality-leads.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 hospitality lead returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Tripadvisor Review & Hospitality Leads

Extract public Tripadvisor hospitality listing data for hotel, restaurant, attraction, and travel-market lead generation.

### What it returns

Each dataset item can include:

- Business name, Tripadvisor listing URL and listing ID
- Hotel, restaurant, attraction, or other type
- Location, address, phone, public website, and an explicit `email: null` when Tripadvisor does not publish an email
- Rating, review count, ranking, price level, and categories
- Up to 10 recent public review snippets with title, text, author, date, and rating

### Recommended access mode

Direct public Tripadvisor hotel, restaurant, and attraction listing URLs are the most reliable input. Tripadvisor search pages may return a `BLOCKED` or truthful `EMPTY` summary when the site serves a challenge or decoy page; the Actor never bypasses that response or fabricates leads. Use a known listing/category URL, keep `useProxy` enabled, and review `OUTPUT.warnings` for access diagnostics.

### Input examples

Use `searchQueries` for plain-language discovery:

```json
{ "searchQueries": ["boutique hotels in Lisbon", "seafood restaurants in San Diego"], "maxResults": 25 }
```

Use `startUrls` for a Tripadvisor search/category page or a known listing URL:

```json
{ "startUrls": [{ "url": "https://www.tripadvisor.com/Search?q=hotels%20in%20Miami" }], "includeReviews": true }
```

The Actor uses public pages only. It does not log in, solve CAPTCHAs, bypass access controls, or claim complete historical review exports. Tripadvisor layout and anti-bot behavior can change; `OUTPUT` records empty, blocked, and warning states.

### Output example

```json
{
  "name": "Example Hotel",
  "type": "hotel",
  "rating": 4.5,
  "reviewCount": 1200,
  "phone": "+1 212 555 0100",
  "website": "https://example-hotel.com",
  "email": null,
  "latestReviews": []
}
```

### Pricing

Pay per event: `$0.00005` per run-start event plus `$0.004` per validated listing record delivered. A one-record run has a minimum spending limit of `$0.00405`; blocked/empty runs produce no result-event charges.

Use the data responsibly, respect Tripadvisor terms and applicable laws, and honor contact opt-outs when using public business contact fields for outreach.

# Actor input Schema

## `startUrls` (type: `array`):

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.

## `searchQueries` (type: `array`):

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.

## `location` (type: `string`):

Use this fallback location when neither startUrls nor searchQueries is provided. Defaults to New York. Examples: 'Dubai', 'Toronto, Canada'.

## `hospitalityType` (type: `string`):

Filter discovered Tripadvisor profiles to hotels, restaurants, attractions, or all hospitality listings.

## `maxResults` (type: `integer`):

Maximum validated hospitality lead records returned and charged. Choose 1-100; default is 20.

## `maxPagesPerInput` (type: `integer`):

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.

## `includeReviews` (type: `boolean`):

Include up to maxReviewsPerListing public review snippets when visible on each listing page. Reviews are not full historical exports. Default true.

## `maxReviewsPerListing` (type: `integer`):

Maximum public review snippets retained per listing, from 0-10. Default is 3. Set 0 for lead-only output.

## `requestDelayMs` (type: `integer`):

Polite delay between public page requests. Choose 300-5000 milliseconds; default is 700. This does not change the result cap or price.

## `useProxy` (type: `boolean`):

Use Apify Proxy with a consistent US session for public-page access. Recommended for Tripadvisor. Disable only for a direct-network diagnostic.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93533-Reviews-Hilton_New_York_Midtown-New_York_City_New_York.html"
    }
  ],
  "searchQueries": [
    "boutique hotels in Lisbon"
  ],
  "location": "New York",
  "hospitalityType": "all",
  "maxResults": 20,
  "maxPagesPerInput": 2,
  "includeReviews": true,
  "maxReviewsPerListing": 3,
  "requestDelayMs": 700,
  "useProxy": true
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing one validated public Tripadvisor listing record per item.

## `summary` (type: `string`):

Status, result count, charged result events, warnings, and source information.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93533-Reviews-Hilton_New_York_Midtown-New_York_City_New_York.html"
        }
    ],
    "searchQueries": [
        "boutique hotels in Lisbon"
    ],
    "location": "New York"
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/tripadvisor-review-hospitality-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93533-Reviews-Hilton_New_York_Midtown-New_York_City_New_York.html" }],
    "searchQueries": ["boutique hotels in Lisbon"],
    "location": "New York",
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/tripadvisor-review-hospitality-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93533-Reviews-Hilton_New_York_Midtown-New_York_City_New_York.html"
    }
  ],
  "searchQueries": [
    "boutique hotels in Lisbon"
  ],
  "location": "New York"
}' |
apify call muhammadafzal/tripadvisor-review-hospitality-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/tripadvisor-review-hospitality-leads"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2lEubx1tm0yPIOcCM/builds/ar6tUEVuhQTbaWsud/openapi.json
