# TripAdvisor Reviews Scraper 🔥 $0.6/1K (`azzouzana/tripadvisor-scraper`) Actor

From $0.60/1K 💰Paste a TripAdvisor hotel, restaurant, or attraction page and get ratings, review text, dates, traveler type, photos, and the owner reply in seconds. JSON, CSV, or Excel for hospitality research and reputation tracking.

- **URL**: https://apify.com/azzouzana/tripadvisor-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** Travel
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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

## TripAdvisor scraper

Manually copying reviews is a massive time-sink. Paste a TripAdvisor hotel, restaurant, or attraction page and get the reviews as clean rows **in seconds**.

### Engineering Excellence & Reliability 🚀

- **Zero-Friction Resolution**: paste a listing page or the location ID (`188961`). Country sites such as tripadvisor.co.uk work. Set the same filters as the reviews panel: traveler type, bubble rating, season, language, keyword, and order. Each row is one review: score, text, date, traveler type, photos, and the owner reply.
- **High-Velocity Automation**: pagination is handled; large listings keep going up to **maxItems**.
- **enterprise-Grade Resilience**: clean JSON, CSV, Excel, or API.
- **Lightweight Pay-Per-Event**: you pay for the rows you receive.

### 🛠️ How to Play

#### Input Parameters

| Field | Type | Description |
|-------|------|-------------|
| `startUrl` | String | **(Required)** Listing page URL or location ID. `188961`, `d188961`, and `https://www.tripadvisor.com/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html` are the same hotel. Restaurant and attraction pages work too. A bare ID is treated as a hotel. |
| `maxItems` | Number | How many reviews do you actually need? (Default: 100) |
| `sortBy` | String | `most_recent`, `detailed`, or `insightful`. |
| `travelerType` | String | `all`, `families`, `couples`, `solo`, `business`, or `friends`. |
| `rating` | String | `all`, `5`, `4`, `3`, `2`, or `1`. |
| `timeOfYear` | String | `all`, `mar_may`, `jun_aug`, `sep_nov`, or `dec_feb`. |
| `language` | String | `all`, or a language code such as `en`, `fr`, `de`, `zhCN`. |
| `searchKeywords` | String | Words that must appear in the review title or text. Empty means every review. |

#### Example

```json
{
    "startUrl": "188961",
    "maxItems": 100,
    "sortBy": "most_recent",
    "travelerType": "couples",
    "rating": "all",
    "timeOfYear": "all",
    "language": "all",
    "searchKeywords": "staff"
}
```

### 🆓 Free tier limitations

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** usually includes these trial limits:

- **Sample data:** up to **5 listings** per run—enough to check data quality.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **60 seconds** before you can start another run.

#### Upgrade when you're ready!

Use the free tier to decide if this actor fits your project. Paid Apify plans remove these wait times and caps so you can run at full volume—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

### 📦 What’s in the Box?

A hotel, a restaurant, an attraction, and an attraction product are different records. Each one is flattened from its own document.

Hotel 41, London:

```json
{
    "id": 1079237404,
    "locationId": 188961,
    "title": "Amazing hotel",
    "text": "Hotel 41 is an oasis of calm in the chaos of London. Beautiful hotel with amazing attention to detail. The staff were charming, very professional and nothing was too much trouble.\nStunning accommodation kept immaculately clean and little treats left at turn down service made it feel special.\nWe wouldn’t dream of going anywhere else when we visit London again.",
    "rating": 5,
    "language": "en",
    "helpfulVotes": 0,
    "submittedDateTime": "2026-09-25T08:42:51.146Z",
    "hasTrustSafetyAlert": false,
    "isPinnedFavorite": false,
    "photoCount": 0,
    "reviewTip_responseData_tips": [
        {
            "body": "Make it your go to hotel."
        }
    ],
    "partnerAttribution_inPartnership": false,
    "partnerAttribution_name": null,
    "translationInfo_translationType": "NONE",
    "translationInfo_originalLanguage": "en",
    "translationInfo_machineTranslationProvider": null,
    "tripInfo_partyType": "COUPLES",
    "tripInfo_stayOrVisitYearMonth_year": 2026,
    "tripInfo_stayOrVisitYearMonth_month": 9,
    "additionalRatings": [
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Value"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Rooms"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Location"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Cleanliness"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Service"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Sleep Quality"
        }
    ],
    "reviewDetailRoute_url": "/ShowUserReviews-g186338-d188961-r1079237404-Hotel_41-London_England.html",
    "photos": [],
    "userProfile_userId": "255F3803FA5DFC34293E5CF4947BBBB4",
    "userProfile_isVerified": false,
    "userProfile_displayName": "LightPacker612507",
    "userProfile_username": "LightPacker612507",
    "userProfile_avatar___typename": "MemberProfile_MediaId",
    "userProfile_avatar_data___typename": "Media_PhotoResult",
    "userProfile_avatar_data_id": 452388586,
    "userProfile_avatar_data_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/f6/e6/ea/default-avatar-2020-54.jpg?w={width}&h={height}&s=1",
    "userProfile_avatar_data_photoSizeDynamic_maxHeight": 1200,
    "userProfile_avatar_data_photoSizeDynamic_maxWidth": 1200,
    "userProfile_hometown_locationId": null,
    "userProfile_hometown_fallbackString": null,
    "userProfile_hometown_location": null,
    "userProfile_route_url": "/Profile/LightPacker612507",
    "userProfile_contributionCounts_helpfulVote": 0,
    "userProfile_contributionCounts_sumAllUgc": 3,
    "ownerResponse_id": 1080103238,
    "ownerResponse_text": "Dear LightPacker612507, \n\nThank you for your wonderful review. I am delighted to hear that Hotel 41 provided such a memorable experience and served as a peaceful oasis during your time in London. Your kind words about our team, attention to detail, and accommodation mean a great deal to us. We are especially pleased that the little touches at turndown helped make your stay feel extra special. Knowing that you would not consider staying anywhere else on your next visit to London is the highest compliment we could receive, and we very much look forward to welcoming you back.\n\nKind regards, \n\nMalcolm Hendry \nManaging Director \n",
    "ownerResponse_language": "en",
    "ownerResponse_responderRole": "General Manager",
    "ownerResponse_submittedDateTime": "2026-10-01T14:48:52.159Z",
    "ownerResponse_translationInfo_translationType": "NONE",
    "ownerResponse_userProfile_userId": "0BF35298EB4305AB829D2D0188ADDDA4",
    "ownerResponse_userProfile_displayName": "MalcolmHendry",
    "ownerResponse_userProfile_route_url": "/Profile/MalcolmHendry",
    "ownerResponse_userProfile_avatar___typename": "MemberProfile_MediaId",
    "ownerResponse_userProfile_avatar_data___typename": "Media_PhotoResult",
    "ownerResponse_userProfile_avatar_data_id": 206811902,
    "ownerResponse_userProfile_avatar_data_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0c/53/b2/fe/malcolmhendry.jpg?w={width}&h={height}&s=1",
    "ownerResponse_userProfile_avatar_data_photoSizeDynamic_maxHeight": 300,
    "ownerResponse_userProfile_avatar_data_photoSizeDynamic_maxWidth": 300,
    "locationNode_detail_info_localizedName": "Hotel 41",
    "locationNode_detail_info_placeType": "ACCOMMODATION",
    "locationNode_detail_info_primaryRoute_url": "/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html"
}
```

Dishoom Covent Garden:

```json
{
    "id": 1080901030,
    "locationId": 1863498,
    "title": "Tasty Indo-Persian Cuisine",
    "text": "Went in for walkin early dinner as this place gets packed. The food was flavorful and authentic. It blends Indo-Persian cooking. A must visit in London. They have multiple locations.",
    "rating": 5,
    "language": "en",
    "helpfulVotes": 0,
    "submittedDateTime": "2026-10-07T16:50:09.988Z",
    "hasTrustSafetyAlert": false,
    "isPinnedFavorite": false,
    "photoCount": 3,
    "reviewTip_responseData": null,
    "partnerAttribution_inPartnership": false,
    "partnerAttribution_name": null,
    "translationInfo_translationType": "NONE",
    "translationInfo_originalLanguage": "en",
    "translationInfo_machineTranslationProvider": null,
    "tripInfo_partyType": "FAMILY",
    "tripInfo_stayOrVisitYearMonth_year": 2026,
    "tripInfo_stayOrVisitYearMonth_month": 10,
    "additionalRatings": [],
    "reviewDetailRoute_url": "/ShowUserReviews-g186338-d1863498-r1080901030-Dishoom_Covent_Garden-London_England.html",
    "photos": [
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 886354181,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/v2/photo-o/34/d4/b1/05/image.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 3213,
            "photo_photoSizeDynamic_maxHeight": 5712,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        },
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 886354182,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/v2/photo-o/34/d4/b1/06/image.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 3213,
            "photo_photoSizeDynamic_maxHeight": 5712,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        },
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 886354183,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/v2/photo-o/34/d4/b1/07/image.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 2268,
            "photo_photoSizeDynamic_maxHeight": 4032,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        }
    ],
    "userProfile_userId": "F807501650325DB4D1B99C857369D154",
    "userProfile_isVerified": false,
    "userProfile_displayName": "Gfallstraveller",
    "userProfile_username": "Gfallstraveller",
    "userProfile_avatar___typename": "MemberProfile_MediaId",
    "userProfile_avatar_data___typename": "Media_PhotoResult",
    "userProfile_avatar_data_id": 452391908,
    "userProfile_avatar_data_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/f6/f3/e4/default-avatar-2020-30.jpg?w={width}&h={height}&s=1",
    "userProfile_avatar_data_photoSizeDynamic_maxHeight": 1200,
    "userProfile_avatar_data_photoSizeDynamic_maxWidth": 1200,
    "userProfile_hometown_locationId": 57783,
    "userProfile_hometown_fallbackString": "57783",
    "userProfile_hometown_location_locationId": 57783,
    "userProfile_hometown_location_additionalNames_name": "Great Falls",
    "userProfile_hometown_location_additionalNames_long": "Great Falls, Virginia",
    "userProfile_route_url": "/Profile/Gfallstraveller",
    "userProfile_contributionCounts_helpfulVote": 41,
    "userProfile_contributionCounts_sumAllUgc": 114,
    "ownerResponse": null,
    "locationNode_detail_info_localizedName": "Dishoom Covent Garden",
    "locationNode_detail_info_placeType": "EATERY",
    "locationNode_detail_info_primaryRoute_url": "/Restaurant_Review-g186338-d1863498-Reviews-Dishoom_Covent_Garden-London_England.html"
}
```

London Eye:

```json
{
    "id": 1080908961,
    "locationId": 553603,
    "title": "Champagne Experience was nice",
    "text": "Tilly was very funny, likeable, and knowledgeable. Champagne was cold and delicious. Would book again!",
    "rating": 5,
    "language": "en",
    "helpfulVotes": 0,
    "submittedDateTime": "2026-10-07T18:07:33.089Z",
    "hasTrustSafetyAlert": false,
    "isPinnedFavorite": false,
    "photoCount": 0,
    "reviewTip_responseData": null,
    "partnerAttribution_inPartnership": false,
    "partnerAttribution_name": null,
    "translationInfo_translationType": "NONE",
    "translationInfo_originalLanguage": "en",
    "translationInfo_machineTranslationProvider": null,
    "tripInfo_partyType": "FAMILY",
    "tripInfo_stayOrVisitYearMonth_year": 2026,
    "tripInfo_stayOrVisitYearMonth_month": 10,
    "additionalRatings": [],
    "reviewDetailRoute_url": "/ShowUserReviews-g186338-d553603-r1080908961-London_Eye-London_England.html",
    "photos": [],
    "userProfile_userId": "5A9A57C7A1789AD23B7EF57AF3668E2D",
    "userProfile_isVerified": false,
    "userProfile_displayName": "Katharina H",
    "userProfile_username": "Z5283DIkatharinah",
    "userProfile_avatar___typename": "MemberProfile_MediaId",
    "userProfile_avatar_data___typename": "Media_PhotoResult",
    "userProfile_avatar_data_id": 452389422,
    "userProfile_avatar_data_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/f6/ea/2e/default-avatar-2020-67.jpg?w={width}&h={height}&s=1",
    "userProfile_avatar_data_photoSizeDynamic_maxHeight": 1200,
    "userProfile_avatar_data_photoSizeDynamic_maxWidth": 1200,
    "userProfile_hometown_locationId": null,
    "userProfile_hometown_fallbackString": null,
    "userProfile_hometown_location": null,
    "userProfile_route_url": "/Profile/Z5283DIkatharinah",
    "userProfile_contributionCounts_helpfulVote": 0,
    "userProfile_contributionCounts_sumAllUgc": 1,
    "ownerResponse": null,
    "locationNode_detail_info_localizedName": "London Eye",
    "locationNode_detail_info_placeType": "ATTRACTION",
    "locationNode_detail_info_primaryRoute_url": "/Attraction_Review-g186338-d553603-Reviews-London_Eye-London_England.html"
}
```

London Eye - Champagne Experience Ticket:

```json
{
    "id": 1080577455,
    "locationId": 11979665,
    "title": "Ask for Antonique. VIP & Champagne the best way to go.",
    "text": "Antonique was a great host & we enjoyed her visit & was very knowledgeable & polite.",
    "rating": 5,
    "language": "en",
    "helpfulVotes": 0,
    "submittedDateTime": "2026-10-05T09:34:34.519Z",
    "hasTrustSafetyAlert": false,
    "isPinnedFavorite": false,
    "photoCount": 3,
    "reviewTip_responseData_tips": [
        {
            "body": "A lot of room to wander & do it in the evening & the daytime.  They are both unique experiences."
        }
    ],
    "partnerAttribution_inPartnership": false,
    "partnerAttribution_name": null,
    "translationInfo_translationType": "NONE",
    "translationInfo_originalLanguage": "en",
    "translationInfo_machineTranslationProvider": null,
    "tripInfo_partyType": "COUPLES",
    "tripInfo_stayOrVisitYearMonth_year": 2026,
    "tripInfo_stayOrVisitYearMonth_month": 10,
    "additionalRatings": [
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Value for money"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Guide"
        },
        {
            "rating": 5,
            "ratingLabelLocalizedString": "Meeting or pickup"
        }
    ],
    "reviewDetailRoute_url": "/ShowUserReviews-g186338-d11979665-r1080577455-London_Eye_Champagne_Experience_Ticket-London_England.html",
    "photos": [
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 885954935,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/ce/99/77/caption.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 3024,
            "photo_photoSizeDynamic_maxHeight": 4032,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        },
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 885954936,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/ce/99/78/caption.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 4284,
            "photo_photoSizeDynamic_maxHeight": 5712,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        },
        {
            "photo___typename": "Media_PhotoResult",
            "photo_id": 885954937,
            "photo_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/ce/99/79/caption.jpg?w={width}&h={height}&s=1",
            "photo_photoSizeDynamic_maxWidth": 5712,
            "photo_photoSizeDynamic_maxHeight": 4284,
            "photo_caption": "",
            "photo_statuses": [
                "PUBLISHED"
            ]
        }
    ],
    "userProfile_userId": "EB1F0CFABC55EDBA4BA778FCBA163A18",
    "userProfile_isVerified": false,
    "userProfile_displayName": "Rex Scott",
    "userProfile_username": "Climber08038758109",
    "userProfile_avatar___typename": "MemberProfile_MediaId",
    "userProfile_avatar_data___typename": "Media_PhotoResult",
    "userProfile_avatar_data_id": 826596413,
    "userProfile_avatar_data_photoSizeDynamic_urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/31/44/dc/3d/caption.jpg?w={width}&h={height}&s=1",
    "userProfile_avatar_data_photoSizeDynamic_maxHeight": 1168,
    "userProfile_avatar_data_photoSizeDynamic_maxWidth": 1170,
    "userProfile_hometown_locationId": 37209,
    "userProfile_hometown_fallbackString": "37209",
    "userProfile_hometown_location_locationId": 37209,
    "userProfile_hometown_location_additionalNames_name": "Indianapolis",
    "userProfile_hometown_location_additionalNames_long": "Indianapolis, Indiana",
    "userProfile_route_url": "/Profile/Climber08038758109",
    "userProfile_contributionCounts_helpfulVote": 0,
    "userProfile_contributionCounts_sumAllUgc": 244,
    "ownerResponse": null,
    "locationNode_detail_info_localizedName": "London Eye - Champagne Experience Ticket",
    "locationNode_detail_info_placeType": "ACTIVITY",
    "locationNode_detail_info_primaryRoute_url": "/AttractionProductReview-g186338-d11979665-London_Eye_Champagne_Experience_Ticket-London_England.html"
}
```

### Contact 📬

**Need a custom solution? Have a feature request or just want to chat?**
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

### ⚠️ Disclaimer

Not affiliated with TripAdvisor. Public listing data only. Terms and laws apply. [Apify legality article](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf).

### Keywords

tripadvisor scraper, tripadvisor reviews, tripadvisor hotel reviews, scrape tripadvisor, guest reviews export, restaurant reviews

# Actor input Schema

## `startUrl` (type: `string`):

TripAdvisor hotel, restaurant, or attraction page, or the location ID alone (188961 or d188961). Country sites such as tripadvisor.co.uk are fine.

## `maxItems` (type: `integer`):

Maximum reviews to save. The effective limit also respects the run budget and the free-tier cap.

## `sortBy` (type: `string`):

Same order choices as the reviews panel.

## `travelerType` (type: `string`):

Only reviews from this traveler type. All travelers leaves the filter off.

## `rating` (type: `string`):

Only reviews with this bubble rating. All ratings leaves the filter off.

## `timeOfYear` (type: `string`):

Only reviews from this season. All seasons leaves the filter off.

## `language` (type: `string`):

Only reviews written in this language. All languages leaves the filter off.

## `searchKeywords` (type: `string`):

Words that must appear in the review title or text. Leave empty for every review.

## Actor input object example

```json
{
  "startUrl": "https://www.tripadvisor.com/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html",
  "maxItems": 100,
  "sortBy": "most_recent",
  "travelerType": "all",
  "rating": "all",
  "timeOfYear": "all",
  "language": "all",
  "searchKeywords": ""
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrl": "https://www.tripadvisor.com/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html",
    "maxItems": 100,
    "sortBy": "most_recent",
    "travelerType": "all",
    "rating": "all",
    "timeOfYear": "all",
    "language": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/tripadvisor-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 = {
    "startUrl": "https://www.tripadvisor.com/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html",
    "maxItems": 100,
    "sortBy": "most_recent",
    "travelerType": "all",
    "rating": "all",
    "timeOfYear": "all",
    "language": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/tripadvisor-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 '{
  "startUrl": "https://www.tripadvisor.com/Hotel_Review-g186338-d188961-Reviews-Hotel_41-London_England.html",
  "maxItems": 100,
  "sortBy": "most_recent",
  "travelerType": "all",
  "rating": "all",
  "timeOfYear": "all",
  "language": "all"
}' |
apify call azzouzana/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,azzouzana/tripadvisor-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/3FnKpEpbfFxYBKzt4/builds/0qhjWqMYi0LmMDKI6/openapi.json
