# TripAdvisor Scraper — Hotels, Restaurants & Attractions (`delicious_zebu/tripadvisor-hotel-details-scraper`) Actor

Scrape TripAdvisor hotels, restaurants, and attractions at scale. Enter a city name or paste any list/detail URL. Extract 50+ fields per item — ratings, reviews, prices, photos, contact info, nearby places, opening hours, Q\&A, and more. Supports 50+ regional domains.

- **URL**: https://apify.com/delicious_zebu/tripadvisor-hotel-details-scraper.md
- **Developed by:** [Zebu Data](https://apify.com/delicious_zebu) (community)
- **Categories:** Travel, Lead generation, Real estate
- **Security:** Limited permissions
- **Stats:** 183 total users, 25 monthly users, 98.5% runs succeeded, 39 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What is TripAdvisor Scraper?

TripAdvisor Scraper is the easiest way to extract hotel, restaurant, and attraction data from TripAdvisor at scale. Just enter a city name like **"Tokyo"** and the scraper automatically finds and collects detailed data for every hotel, restaurant, or attraction in that city.

Each item returns **50+ structured fields** — ratings, review breakdowns, sub-ratings, prices from booking sites, photos, contact info, opening hours, nearby places, walk score, Q\&A, AI review summaries, and more. No other TripAdvisor scraper gives you this level of detail.

No coding required. Results are delivered as clean, structured JSON ready for spreadsheets, databases, or any integration via the [Apify API](https://docs.apify.com/api/v2).

### What can this scraper do?

- **Search by keyword** — Enter city names (e.g. "Tokyo", "Paris") and the scraper finds all [hotels](https://www.tripadvisor.com/Hotels-g298184-Tokyo_Tokyo_Prefecture_Kanto-Hotels.html), [restaurants](https://www.tripadvisor.com/Restaurants-g298184-Tokyo_Tokyo_Prefecture_Kanto.html), or [things to do](https://www.tripadvisor.com/Attractions-g298184-Activities-oa2-Tokyo_Tokyo_Prefecture_Kanto.html) automatically
- **Scrape any list page** — Paste a TripAdvisor list URL with your own filters already applied. The scraper preserves those filters and paginates through all results
- **Scrape detail pages directly** — Paste individual hotel, restaurant, attraction, tour, or cruise detail URLs
- **50+ data fields per item** — The most comprehensive TripAdvisor data extraction available: ratings, 5-star histograms, sub-ratings, review text, prices from booking sites, photos, contact info, amenities, nearby places, opening hours, walk score, Q\&A, AI review summaries, and more (see full field list below)
- **50+ regional domains** — Scrape in any language/currency: US, UK, Japan, Germany, France, China, Korea, and 40+ more
- **Built-in proxy rotation** — Automatic IP rotation and anti-bot handling. No configuration needed
- **Scheduling & monitoring** — Run on a schedule, get notified on completion, monitor runs from the Apify dashboard
- **API & integrations** — Access results via REST API, webhooks, or integrate with Google Sheets, Zapier, Make, and more

### What data can you extract?

| Field | Hotels | Restaurants | Attractions |
|-------|--------|-------------|-------------|
| Name, ID, ranking | Yes | Yes | Yes |
| Rating & review count | Yes | Yes | Yes |
| Rating breakdown (5-star histogram) | Yes | Yes | Yes |
| Sub-ratings (Rooms, Service, Value...) | Yes | Yes (Food, Atmosphere...) | — |
| Description | Yes | Yes | Yes |
| Address & coordinates | Yes | Yes | Yes |
| Phone, email, website | Yes | Yes | Yes |
| Photos (up to 30+ URLs) | Yes | Yes | Yes |
| Reviews (text, rating, date, user, trip type) | Yes | Yes | Yes |
| Opening hours & current status | — | Yes | Yes |
| Cuisines, meals, dietary options | — | Yes | — |
| Price level & price range | Yes | Yes | — |
| Hotel prices from booking sites | Yes | — | — |
| Amenities & room features | Yes | Yes (features) | — |
| Nearby attractions & restaurants | Yes | Yes | Yes |
| Suggested duration | — | — | Yes |
| Q\&A section | — | — | Yes |
| AI review summary | — | — | Yes |
| Travelers' Choice award | Yes | Yes | — |
| Walk score | Yes | — | — |

### How to scrape TripAdvisor data

1. Click **Try for free** to open this Actor in the Apify Console
2. Choose your scraping mode:
   - **By keyword**: Enter a city name (e.g. "Tokyo") in the Hotels, Restaurants, or Things to Do section
   - **By list URL**: Paste any TripAdvisor list page URL (with your filters already applied)
   - **By detail URL**: Paste specific detail page URLs
3. Adjust filters if needed (star class, price range, meal type, etc.)
4. Click **Start** and wait for the run to finish
5. Download your data as JSON, CSV, or Excel — or access it via the API

Prefer to watch? This video (under 4 minutes) does a real run: 10 top-ranked 4- and 5-star hotels in New York City with prices for a two-night stay, from filling in the input form to exporting the results to Excel.

https://www.youtube.com/watch?v=oU7e9nT2Jwk

### Input and output examples

#### Input example — Search hotels in Tokyo

```json
{
  "hotelsQueries": ["Tokyo"],
  "hotelClasses": ["4 Star", "5 Star"],
  "hotelSort": "Traveler Ranked",
  "maxItemsPerList": 10,
  "scrapeDetailPages": true
}
```

#### Output example — Hotel detail

```json
{
  "category": "hotel",
  "pageKind": "detail",
  "name": "HOTEL GROOVE SHINJUKU, A PARKROYAL Hotel",
  "locationId": 25267575,
  "starRating": "3.5 Star",
  "ranking": "#1 of 25 hotels in Kabukicho",
  "averageRating": 4.4,
  "reviewCount": 347,
  "ratingHistogram": { "Excellent": 226, "Very good": 73, "Average": 29, "Poor": 3, "Terrible": 16 },
  "reviewSubratings": { "Rooms": 4.5, "Sleep Quality": 4.6, "Value": 4.2, "Service": 4.4, "Location": 4.7, "Cleanliness": 4.7 },
  "address": "1-29-1 Tokyu Kabukicho Tower, Kabukicho, Shinjuku 160-0021 Tokyo Prefecture",
  "contactPhone": "011 81 3-6233-8888",
  "contactEmail": "enquiry.prgtk@parkroyalhotels.com",
  "coordinates": { "latitude": 35.69584, "longitude": 139.70088 },
  "description": "Hotel Groove Shinjuku, A PARKROYAL Hotel will bring a new offering to the heart of Shinjuku...",
  "amenities": ["Free High Speed Internet (WiFi)", "Free breakfast", "Bar / lounge", "Restaurant", "24-hour front desk", "..."],
  "roomFeatures": ["Blackout curtains", "Soundproof rooms", "Air conditioning", "Flatscreen TV", "Safe", "Refrigerator", "..."],
  "roomTypes": ["City view", "Non-smoking rooms", "Suites", "Family rooms"],
  "languagesSpoken": ["English", "Chinese", "Japanese", "Korean"],
  "walkScore": 100,
  "nearbyRestaurantsCount": 2754,
  "nearbyAttractionsCount": 277,
  "nearbyAttractions": [
    { "name": "Samurai Museum", "rating": 4.5, "reviewCount": 1905, "distance": 0.14, "url": "https://www.tripadvisor.com/Attraction_Review-g14133667-d8652405-Reviews-Samurai_Museum-..." },
    { "name": "Shinjuku Golden Gai", "rating": 4.2, "reviewCount": 2312, "distance": 0.25, "url": "https://www.tripadvisor.com/Attraction_Review-g14133667-d480651-Reviews-..." }
  ],
  "nearbyRestaurants": [
    { "name": "Gyopao Gyoza Shinjuku east", "rating": 4.9, "reviewCount": 630, "distance": 0.17, "url": "https://www.tripadvisor.com/Restaurant_Review-g14133707-d28051306-Reviews-..." }
  ],
  "gettingThere": { "walkScore": 100, "airports": [{ "name": "Haneda Airport", "distance": 11.2 }, { "name": "Narita Airport", "distance": 38.8 }] },
  "photoCount": 502,
  "website": "https://www.hotelgroove.com",
  "images": ["https://media-cdn.tripadvisor.com/media/photo-m/1280/29/f1/bb/66/view-premier-king-image.jpg", "..."],
  "aiReviewSummary": "Hotel Groove Shinjuku, A PARKROYAL Hotel, is popular for its modern, stylish, and lively atmosphere...",
  "reviews": [
    {
      "id": 1057447581,
      "rating": 5,
      "title": "High Rise",
      "text": "Be very aware that this must be the tallest hotel in Tokyo. If you do not like heights then do not book this hotel. Staff are brilliant and helpful.",
      "language": "en",
      "publishedDate": "2026-04-23",
      "tripType": "FRIENDS",
      "helpfulVotes": 0,
      "user": { "displayName": "Richard C", "username": "RichardC954", "contributions": 418 }
    }
  ],
  "reviewCountByLanguage": [{ "language": "en", "count": 292 }, { "language": "it", "count": 12 }, "..."],
  "prices": [
    { "provider": "Booking.com", "displayPrice": "$305", "perNight": 305, "totalStay": "$305", "taxes": 0, "isLowestPrice": false },
    { "provider": "Agoda", "displayPrice": "$200", "perNight": 200, "totalStay": "$240", "taxes": 39, "strikeThroughPrice": "$305", "isLowestPrice": true },
    { "provider": "Expedia.com", "displayPrice": "$276", "perNight": 276, "totalStay": "$304", "taxes": 27, "isLowestPrice": false }
  ],
  "parentLocation": "Asia > Japan > Kanto > Tokyo Prefecture > Tokyo > Shinjuku > Kabukicho",
  "inputUrl": "https://www.tripadvisor.com/Hotel_Review-g14133667-d25267575-Reviews-HOTEL_GROOVE_SHINJUKU_A_PARKROYAL_Hotel-..."
}
```

#### Output example — Restaurant detail

```json
{
  "category": "restaurant",
  "pageKind": "detail",
  "name": "Shibuya Pichiten",
  "locationId": 26907156,
  "ranking": "#2 of 7,081 Restaurants in Shibuya",
  "averageRating": 5,
  "reviewCount": 200,
  "subRatings": { "Atmosphere": 4.9, "Food": 5, "Service": 4.9, "Value": 4.9 },
  "ratingHistogram": { "Excellent": 197, "Very good": 2, "Average": 1, "Poor": 0, "Terrible": 0 },
  "address": "17-10 Sakuragaokacho MCD Bldg. B2F, Shibuya 150-0031 Tokyo Prefecture",
  "contactPhone": "+81 3-6277-5773",
  "coordinates": { "latitude": 35.656242, "longitude": 139.7011 },
  "description": "Nagoya's popular sushi and tempura bar has arrived in Tokyo for the first time!...",
  "cuisines": ["Japanese", "Seafood", "Sushi", "Asian", "Healthy", "Japanese Fusion"],
  "mealsServed": ["Lunch", "Dinner", "Drinks"],
  "dietaryRestrictions": ["Vegetarian friendly", "Vegan options"],
  "features": ["Reservations", "Seating", "Serves Alcohol", "Full Bar", "Free Wifi", "Accepts Credit Cards", "..."],
  "priceLevel": "$$ - $$$",
  "priceRange": { "currency": "USD", "minPrice": 37.6, "maxPrice": 43.86 },
  "openStatus": { "isOpen": true, "isPermanentlyClosed": false, "statusText": "Open now" },
  "openHours": { "sun": [{ "open_time": "4:00 PM", "close_time": "11:00 PM" }], "mon": [{ "open_time": "4:00 PM", "close_time": "11:00 PM" }], "..." : "..." },
  "travelersChoiceAward": { "awardType": "COE", "year": 2025 },
  "website": "https://whatever-delis.com/shibuya-pichiten/",
  "images": ["https://media-cdn.tripadvisor.com/media/photo-o/2b/5e/bc/23/caption.jpg", "..."],
  "reviews": [
    {
      "id": 1057590482,
      "rating": 5,
      "title": "Pichiten Shibuya",
      "text": "The best meal by far, that I have had in Tokyo. The special bluefin tuna big roll was amazing...",
      "language": "en",
      "publishedDate": "2026-04-23",
      "tripType": "SOLO",
      "helpfulVotes": 0,
      "user": { "displayName": "Naldo W", "username": "naldow2025", "contributions": 1 }
    }
  ],
  "reviewCountByLanguage": [{ "language": "en", "count": 144 }, { "language": "fr", "count": 19 }, "..."],
  "parentLocation": "Shibuya",
  "inputUrl": "https://www.tripadvisor.com/Restaurant_Review-g1066456-d26907156-Reviews-Shibuya_Pichiten-..."
}
```

#### Output example — Attraction detail

```json
{
  "category": "attraction",
  "pageKind": "detail",
  "name": "Shinjuku Gyoen National Garden",
  "locationId": "479258",
  "ranking": "#2 of 500 things to do in Shinjuku",
  "averageRating": "4.6",
  "reviewCount": 6369,
  "ratingHistogram": { "Excellent": 3998, "Very good": 1994, "Average": 343, "Poor": 23, "Terrible": 11 },
  "description": "Shinjuku Gyoen was constructed on the site of a private mansion belonging to Lord Naito...",
  "suggestedDuration": "Duration: 2-3 hours",
  "address": "11 Naito-machi, Shinjuku 160-0014 Tokyo Prefecture",
  "contactPhone": "+81 3-3350-0151",
  "coordinates": { "latitude": 35.686, "longitude": 139.70984 },
  "website": "http://www.env.go.jp/garden/shinjukugyoen/english/index.html",
  "openStatus": "Closed now",
  "openHours": { "Tuesday": ["9:00 AM - 6:00 PM"], "Wednesday": ["9:00 AM - 6:00 PM"], "..." : "..." },
  "photoCount": 8284,
  "images": ["https://media-cdn.tripadvisor.com/media/photo-m/1280/31/e9/82/99/shinjuku-gyoen-at-the.jpg", "..."],
  "nearbyAttractions": [
    { "name": "Meiji Jingu Shrine", "rating": 4.4, "reviewCount": 8480, "distance": "0.9 mi", "url": "https://www.tripadvisor.com/Attraction_Review-g1066456-d1373780-Reviews-..." },
    { "name": "Shinjuku Golden Gai", "rating": 4.2, "reviewCount": 2312, "distance": "0.6 mi", "url": "https://www.tripadvisor.com/Attraction_Review-g14133667-d480651-Reviews-..." }
  ],
  "nearbyRestaurants": [
    { "name": "NIGICHA", "rating": 5, "reviewCount": 181, "distance": "0.2 mi", "url": "https://www.tripadvisor.com/Restaurant_Review-g1066457-d32800934-Reviews-..." }
  ],
  "aiReviewSummary": {
    "summaryText": "Many travelers recommend Shinjuku Gyoen National Garden as a must-visit urban oasis in Tokyo...",
    "reviewCount": 28,
    "attributes": { "Audience": "Suitable for all", "Duration": "1-2 hours", "Best time": "Spring", "Atmosphere": "Tranquil", "Facility": "Well-maintained" }
  },
  "qAndA": [
    { "question": "How long should we plan to be in the garden?", "date": "2024-03-28", "user": "tami b", "answer": { "text": "You need less hour or two to enjoy it, very open spacious and peaceful garden...", "user": "toto l" } },
    { "question": "Was the Tea House in the Garden one that has a Tea Ceremony or just a tea service?", "answer": { "text": "Tea service", "user": "joonee" } }
  ],
  "reviews": [
    {
      "id": 1054078043,
      "rating": 5,
      "title": "Beautiful in Bloom",
      "text": "This is a really beautiful park. It was so lovely to see the cherry blossoms vivaciously blooming...",
      "language": "en",
      "publishedDate": "2026-03-24",
      "tripType": "FRIENDS",
      "helpfulVotes": 0,
      "user": { "displayName": "KellyTF23", "username": "KellyTF23" }
    }
  ],
  "reviewCountByLanguage": [{ "language": "en", "count": 3733 }, { "language": "ja", "count": 1259 }, { "language": "fr", "count": 218 }, "..."],
  "parentLocation": "Asia > Japan > Kanto > Tokyo Prefecture > Tokyo > Shinjuku",
  "inputUrl": "https://www.tripadvisor.com/Attraction_Review-g1066457-d479258-Reviews-Shinjuku_Gyoen_National_Garden-..."
}
```

#### Output example — List card (when "Scrape full detail pages" is OFF)

```json
{
  "category": "hotel",
  "pageKind": "list",
  "name": "Hotel Sunroute Plaza Shinjuku",
  "locationId": 320581,
  "averageRating": 4.3,
  "reviewCount": 5917,
  "starRating": 3,
  "priceFrom": "$131",
  "popIndex": "#111 of 1,033 hotels in Tokyo",
  "accommodationType": "Hotel",
  "travelersChoiceAward": "COE 2025",
  "thumbnail": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/83/7b/92/caption.jpg?w=600&h=400&s=1",
  "detailUrl": "/Hotel_Review-g14133713-d320581-Reviews-Hotel_Sunroute_Plaza_Shinjuku-...",
  "listUrl": "https://www.tripadvisor.com/Hotels-g298184-Tokyo.html"
}
```

### Is it legal to scrape TripAdvisor?

Our scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our scrapers, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

### FAQ

**Can I scrape TripAdvisor in languages other than English?**
Yes. Change the **Region / Language** setting to any of 50+ supported regions (Japan, Germany, France, China, Korea, etc.). All content will be returned in that region's language and currency.

**What's the difference between keyword search and list URL?**
Keyword search resolves a city name to its default list page. List URL lets you paste a URL from TripAdvisor with your own filters already applied (e.g. "5-star hotels with pool in Tokyo, sorted by price"). The scraper preserves those exact filters.

**Why are some hotel prices empty?**
Hotel prices come from third-party booking sites (Booking.com, Agoda, etc.) via TripAdvisor's price comparison API. Prices may be unavailable if no providers have availability for your dates, or if the hotel doesn't participate in TripAdvisor's price comparison program.

**Can I scrape cruise ship pages?**
Yes. Paste a cruise detail URL (e.g. `/Cruise_Review-d15691669-Reviews-Norwegian_Bliss`) into the detail URLs input.

**How do I get results in CSV or Excel format?**
After the run completes, go to the **Storage** tab and click **Export**. You can download as JSON, CSV, Excel, XML, or access via the API.

### Support and feedback

If you have any questions, find a bug, or want to request a feature, please open an issue on the [Issues tab](https://console.apify.com/actors/YOUR_ACTOR_ID/issues) or contact us through the Apify platform. We actively monitor feedback and respond promptly.

# Actor input Schema

## `hotelsQueries` (type: `array`):

City or region names. Example: Tokyo, Paris, New York City.

## `hotelClasses` (type: `array`):

Filter by hotel star rating. Leave empty for all.

## `hotelStyles` (type: `array`):

Filter by hotel style. Leave empty for all.

## `hotelAmenities` (type: `array`):

Filter by amenities. Leave empty for all.

## `hotelPropertyTypes` (type: `array`):

Filter by property type. Leave empty for all.

## `hotelTravelerRating` (type: `string`):

Only show hotels with this rating or higher.

## `hotelSort` (type: `string`):

Sort order for results. Default matches TripAdvisor website.

## `hotelCheckIn` (type: `string`):

Format: YYYY-MM-DD (e.g. 2026-06-01). If not set, defaults to tomorrow. Affects price and availability.

## `hotelCheckOut` (type: `string`):

Format: YYYY-MM-DD (e.g. 2026-06-03). If not set, defaults to the day after check-in.

## `hotelRooms` (type: `integer`):

Number of rooms.

## `hotelAdults` (type: `integer`):

Number of adult guests.

## `hotelChildrenAges` (type: `array`):

List of children's ages, e.g. \[3, 7]. Leave empty for adults only.

## `restaurantsQueries` (type: `array`):

City or region names. Example: Tokyo, Rome, Bangkok.

## `restaurantMealTypes` (type: `array`):

Filter by meal type. Leave empty for all.

## `restaurantPrices` (type: `array`):

Filter by price level. Leave empty for all.

## `thingsToDoQueries` (type: `array`):

City or region names. Example: Tokyo, Bangkok, London.

## `thingsToDoCategory` (type: `string`):

Select a category. If not set, defaults to Attractions (points of interest). Selecting a category switches to Tours/Activities mode with different sort options.

## `thingsToDoTimeOfDay` (type: `array`):

Filter by time of day. Only applies when a category is selected.

## `thingsToDoDuration` (type: `array`):

Filter by activity duration. Only applies when a category is selected.

## `thingsToDoPriceMin` (type: `integer`):

Minimum price in USD. Only applies when a category is selected.

## `thingsToDoPriceMax` (type: `integer`):

Maximum price in USD. Only applies when a category is selected.

## `thingsToDoTravelerRating` (type: `string`):

Only show items with this rating or higher.

## `thingsToDoSort` (type: `string`):

Attractions mode: 'Traveler favorites' or 'Traveler ranking'. Category/Tours mode: 'Featured', 'Price (low to high)', 'Price (high to low)', 'Duration (short to long)', 'Duration (long to short)'.

## `listUrls` (type: `array`):

Supported formats: Hotels list (e.g. /Hotels-g294217-...), Restaurant list (e.g. /Restaurants-g294217-... or /FindRestaurants?...), Attractions list (e.g. /Attractions-g294217-...), Search page (e.g. /Search?q=...\&ssrc=h).

## `detailUrls` (type: `array`):

Supported: Hotel detail (/Hotel_Review-...), Restaurant detail (/Restaurant_Review-...), Attraction detail (/Attraction_Review-...), Tour/Activity (/AttractionProductReview-...), Cruise (/Cruise_Review-...).

## `country` (type: `string`):

Select the TripAdvisor regional domain. This affects the language and currency of the scraped content. All URLs are automatically rewritten to use this domain.

## `maxItemsPerList` (type: `integer`):

Maximum number of items to collect from each list (each keyword or each list URL). Set to 0 for unlimited — the scraper will paginate until all results are collected.

## `scrapeDetailPages` (type: `boolean`):

When ON, the scraper visits each item's detail page and returns rich data (reviews, photos, prices, contact info, etc.). When OFF, only basic list-card data is returned (name, rating, URL) — much faster and uses fewer requests.

## Actor input object example

```json
{
  "hotelsQueries": [
    "Tokyo"
  ],
  "hotelSort": "Best Value",
  "hotelRooms": 1,
  "hotelAdults": 2,
  "country": "United States",
  "maxItemsPerList": 50,
  "scrapeDetailPages": true
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped hotels, restaurants, and attractions.

## `rawResults` (type: `string`):

All scraped items from the default dataset.

# 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 = {
    "hotelsQueries": [
        "Tokyo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("delicious_zebu/tripadvisor-hotel-details-scraper").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 = { "hotelsQueries": ["Tokyo"] }

# Run the Actor and wait for it to finish
run = client.actor("delicious_zebu/tripadvisor-hotel-details-scraper").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 '{
  "hotelsQueries": [
    "Tokyo"
  ]
}' |
apify call delicious_zebu/tripadvisor-hotel-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,delicious_zebu/tripadvisor-hotel-details-scraper"
        }
    }
}
```

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/2RU4vCTFEHrTuf6HX/builds/3foPxVwDMjCEWc6nk/openapi.json
