# Tripadvisor Scraper | $0.50 per 1k Reviews | Only New Reviews (`solidrows/tripadvisor-scraper`) Actor

Scrape Tripadvisor restaurants, hotels and attractions from any city or list page, with details (website, hours, amenities, awards) and reviews: newest first, date, rating and language filters, owner responses. Only-new review monitoring. Never a silent empty run.

- **URL**: https://apify.com/solidrows/tripadvisor-scraper.md
- **Developed by:** [SolidRows](https://apify.com/solidrows) (community)
- **Categories:** Travel, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 84.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 place scrapeds

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 - Places, Reviews, Hotels & Restaurants

Extract **restaurants, hotels and things to do** from [Tripadvisor](https://www.tripadvisor.com) for any city, together with **place details** and **reviews**. Paste a city, a list or a place URL and get clean rows: name, rating, review count, ranking, price level, cuisines, address, phone, coordinates, photo, awards, website, opening hours, amenities, hotel class and prices - and the newest reviews with rating, text, dates, trip type, original language, photos, sub-ratings and **owner responses**.

Works as a simple **Tripadvisor API** for reputation monitoring, competitor research, lead lists and travel apps. No Tripadvisor account, no cookies.

### Why this scraper

- 🏙 **One city URL → restaurants, hotels and attractions.** Paste a city page (`Tourism-g…`) and choose the place types, or paste any list URL with the filters you set on the site.
- ⭐ **Reviews newest first, with early stop.** *Reviews since* (a date or "30 days") stops reading a place as soon as older reviews start, so you do not pay for reviews you do not need.
- 🔔 **Monitoring mode for reviews.** *Only new reviews* remembers what earlier runs returned and saves only reviews that appeared since - usually one page per place per run, and the place row is not charged again. Of the five most used Tripadvisor scrapers on Apify Store, none lists such an option in its input (checked November 2026).
- 💬 **Owner responses, photos and sub-ratings.** Each review has the owner's reply and its date, photo URLs, helpful votes, trip type, date of visit, and for hotels the Value / Rooms / Location / Cleanliness / Service / Sleep Quality ratings the guest gave.
- 🌍 **Original language detection.** Tripadvisor.com shows foreign reviews machine-translated; the scraper tells you the original language (`originalLanguage`, `isMachineTranslated`) and can keep only the languages you choose.
- 🏨 **Rich place details.** Ranking, website, opening hours, amenities and features, meal types, special diets, awards (Travelers' Choice), hotel class, number of rooms, hotel price range and lowest offer shown, ticket price from, rating breakdown (Excellent…Terrible), sub-ratings and photo count.
- 📄 **Places and reviews in one flat dataset.** Every review row carries `placeId`, `placeName` and `placeUrl`; ready for CSV, Excel and BI tools.
- 💵 **Low price.** $1.00 per 1,000 places and $0.50 per 1,000 reviews ($3.00 per 1,000 place pages when you want place details without reviews).
- 🚫 **No "succeeded with no data".** If nothing could be saved because pages failed, the run ends as failed and nothing is charged for places or reviews.

#### Honest comparison

| | This scraper | Other popular Tripadvisor scrapers on Apify Store (Nov 2026) |
|---|---|---|
| Reviews price | $0.50 per 1,000 | $0.50 - $5.00 per 1,000 |
| Places price | $1.00 per 1,000 | $5.00 per 1,000 in the most used one |
| Places and reviews in one run | Yes | Usually separate tools |
| Only-new reviews monitoring | Yes | Not offered as an input option |
| Owner responses, photos, hotel sub-ratings | Yes | Yes in most |
| Rating / language filters | Applied to the newest reviews read (2× your limit by default, up to 200 per place with *Review scan depth*) | Some filter on Tripadvisor's side across all reviews |
| Traveler type, time of year, keyword filters | No (trip type is a field you can filter yourself) | Some offer them |
| Search by city name | No - paste a city or list URL | Some offer it |
| Speed | 10-60 s per page, 10 pages in parallel | Some are much faster on very large review sets |
| Hotel prices for chosen dates | No - the price range and the lowest offer Tripadvisor shows by default | Some offer check-in/check-out dates |

If you need every review of a place with tens of thousands of reviews in minutes, a dedicated bulk review scraper will be faster. If you need places with details and their latest reviews in one table, or a cheap scheduled feed of new reviews, this scraper fits well.

### What you can do with it

- **Reputation monitoring** - new reviews of your hotel, restaurant or attraction and of competitors, daily or weekly, with owner responses
- **Competitor and market research** - rankings, ratings, review counts, price levels, amenities and awards across a city
- **Lead lists** - restaurants, hotels and attractions with address, phone, website and coordinates
- **Sentiment analysis and AI datasets** - review text with rating, sub-ratings, trip type and language
- **Travel apps and maps** - coordinates, photos, opening hours and descriptions
- **Complaint tracking** - only 1-2 star reviews from the last 30 days

### How to use

1. Open [tripadvisor.com](https://www.tripadvisor.com) and find your city. Copy the address of the **city page** (`https://www.tripadvisor.com/Tourism-g187147-Paris_Ile_de_France-Vacations.html`), or open **Restaurants**, **Hotels** or **Things to do**, set any filters (cuisine, price, hotel class, category) and copy that address. Place pages (`Restaurant_Review-…`, `Hotel_Review-…`, `Attraction_Review-…`) work too.
2. Paste the links into **Tripadvisor URLs**. You can mix cities, lists and places in one run.
3. Set **Max places**. Turn on **Include place details** and/or **Include reviews** if needed, and start the run.

The scraper follows Tripadvisor's own pagination until it reaches your limit or the end of the list.

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array of URLs | City pages (`Tourism-g…`), list pages (`Restaurants-g…`, `Hotels-g…`, `Attractions-g…`) or place pages. |
| `placeTypes` | array | For city pages: `restaurants`, `hotels`, `attractions` (default all). |
| `maxItems` | integer | Maximum places in total (default 100, 0 = no limit). Reviews are not counted. |
| `includePlaceDetails` | boolean | Open each place page for website, hours, amenities, awards, prices, rating breakdown (default `false`). |
| `includeReviews` | boolean | Save the newest reviews of each place (default `false`). Place details come along for free. |
| `maxReviewsPerPlace` | integer | Newest reviews to save per place (default 20). |
| `reviewsSince` | date | Only reviews on or after a date (`2026-10-01`) or a period (`30 days`). Stops early. |
| `reviewRatings` | array | Only these ratings, e.g. `["1", "2"]`. |
| `reviewLanguages` | array | Only reviews originally written in these languages, e.g. `["en", "fr"]`. |
| `reviewScanDepth` | integer | With rating or language filters: how many of the newest reviews to read per place while looking for matches (0 = twice `maxReviewsPerPlace`, maximum 200). Non-matching reviews are free; deeper scans are slower. |
| `onlyNewReviews` | boolean | Monitoring mode: only reviews that appeared since the previous run. Stops at the first already delivered review; the place row is charged only the first time. |

Top places of a city with details:

```json
{
    "startUrls": [{ "url": "https://www.tripadvisor.com/Tourism-g187147-Paris_Ile_de_France-Vacations.html" }],
    "placeTypes": ["hotels"],
    "maxItems": 50,
    "includePlaceDetails": true
}
```

Weekly review monitoring for specific places:

```json
{
    "startUrls": [
        { "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d229968-Reviews-Hotel_Astra_Opera_Astotel-Paris_Ile_de_France.html" },
        { "url": "https://www.tripadvisor.com/Restaurant_Review-g60763-d479337-Reviews-Bleecker_Street_Pizza-New_York_City_New_York.html" }
    ],
    "includeReviews": true,
    "maxReviewsPerPlace": 50,
    "onlyNewReviews": true
}
```

Negative reviews of the last 90 days for the top restaurants of a city:

```json
{
    "startUrls": [{ "url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html" }],
    "maxItems": 30,
    "includeReviews": true,
    "maxReviewsPerPlace": 30,
    "reviewsSince": "90 days",
    "reviewRatings": ["1", "2"]
}
```

### Output example

Place row (fields after `imageUrl` up to `photoCount` come from the place page - they are filled when details or reviews are on, or when you paste a place URL):

```json
{
    "kind": "place",
    "id": "229968",
    "type": "hotel",
    "name": "Hôtel Astra Opéra - Astotel",
    "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d229968-Reviews-Hotel_Astra_Opera_Astotel-Paris_Ile_de_France.html",
    "rating": 5,
    "reviewCount": 1029,
    "ranking": "#2 of 1,897 hotels in Paris",
    "priceLevel": "$$",
    "categories": [],
    "address": "29 Rue De Caumartin, Paris, 75009",
    "city": "Paris",
    "postalCode": "75009",
    "phone": "011 33 1 42 65 15 15",
    "latitude": 48.87178,
    "longitude": 2.328087,
    "imageUrl": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2d/73/c8/9e/privilege-room-eiffel.jpg?w=500&h=-1&s=1",
    "website": "http://www.astotel.com/astra",
    "openingHours": null,
    "amenities": ["Free High Speed Internet (WiFi)", "Pool", "Sauna", "Breakfast buffet", "24-hour front desk"],
    "mealTypes": [],
    "specialDiets": [],
    "awards": ["Travelers' Choice Best of the Best 2026"],
    "hotelClass": 4,
    "numberOfRooms": 73,
    "priceRange": "$238 - $623",
    "priceFrom": "$169",
    "ratingCounts": { "excellent": 1001, "good": 22, "average": 4, "poor": 1, "terrible": 1 },
    "subRatings": { "rooms": 4.9, "service": 5, "value": 4.8, "cleanliness": 5, "location": 5, "sleepQuality": 4.9 },
    "description": null,
    "duration": null,
    "photoCount": 690,
    "position": 3,
    "detailsLoaded": true,
    "sourceUrl": "https://www.tripadvisor.com/Hotels-g187147-Paris_Ile_de_France-Hotels.html",
    "scrapedAt": "2026-11-14T16:40:12.000Z"
}
```

Review row:

```json
{
    "kind": "review",
    "type": "review",
    "id": "1085234523",
    "placeId": "229968",
    "placeName": "Hôtel Astra Opéra - Astotel",
    "placeUrl": "https://www.tripadvisor.com/Hotel_Review-g187147-d229968-Reviews-Hotel_Astra_Opera_Astotel-Paris_Ile_de_France.html",
    "rating": 5,
    "title": "Loved it",
    "text": "Awesome location, room, and breakfast! Phenomenal hotel for the price. ...",
    "date": "2026-11-12",
    "visitDate": "2026-11",
    "tripType": "Family",
    "language": "en",
    "originalLanguage": "en",
    "isMachineTranslated": false,
    "helpfulVotes": 0,
    "photoCount": 1,
    "photoUrls": ["https://dynamic-media-cdn.tripadvisor.com/media/v2/photo-o/35/32/46/6f/image.jpg"],
    "subRatings": { "value": 5, "rooms": 5, "location": 5, "cleanliness": 5, "service": 5, "sleepQuality": 5 },
    "hasOwnerResponse": true,
    "ownerResponseText": "Dear Wes B, Thank you for sharing such enthusiastic feedback about your stay. ...",
    "ownerResponseDate": "2026-11-13",
    "url": "https://www.tripadvisor.com/ShowUserReviews-g187147-d229968-r1085234523-Hotel_Astra_Opera_Astotel-Paris_Ile_de_France.html",
    "reviewerName": "Wes B",
    "scrapedAt": "2026-11-14T16:40:12.000Z"
}
```

Places and reviews share one dataset: filter by `kind` (`place` or `review`) or use the **Places**, **Place details** and **Reviews** views. Join reviews to places by `placeId` = `id`. Every field is described in the **Output** tab.

### Pricing

| Event | Price | When |
|---|---|---|
| `place` | **$1.00 per 1,000** | every place row saved |
| `review` | **$0.50 per 1,000** | every review row saved |
| `place-details` | **$3.00 per 1,000** | a place page opened only for its details: **Include place details** on and **Include reviews** off |

Examples: 1,000 places from lists - $1.00. 1,000 places with details - $4.00. 1,000 places with 20 reviews each - $1.00 + $10.00 (details come free with reviews). A place URL pasted directly with neither details nor reviews turned on costs just the `place` event.

Subscription tiers get lower prices automatically. There is also Apify's standard start event of $0.00005 per run.

You pay per place saved and per review saved. Reviews read but skipped by your filters and rows that report an error are free. In **Only new reviews** mode a place row is saved and charged only the first time the place is seen; on later runs you pay only for its new reviews, and a run with nothing new costs only the start event. Set a maximum cost per run in the run options for a hard cap: the scraper stops cleanly when it is reached and loads no further pages.

If nothing could be saved because pages failed or the layout changed, the run ends as **failed** instead of an empty success. A list that Tripadvisor really does not have ends as a normal empty run.

Tripadvisor blocks ordinary proxies, so every page is loaded through Apify's official Unblocker proxy - this is included in the price. One list page gives about 30 places. With details or reviews on, each place needs at least one more page (10-15 reviews per page), so such runs are slower.

### Limits and notes

- **No search by city name.** Tripadvisor's search page does not work without running its scripts, so the scraper needs a URL. A city page URL is enough.
- **Review filters work on the newest reviews.** Tripadvisor does not expose rating, language or traveler-type filters in page addresses, so the scraper reads reviews newest first and filters them itself. With rating or language filters it reads up to twice *Max reviews per place* reviews by default; set **Review scan depth** (up to 200 newest reviews per place) to look further back. Reviews that do not match are free. The date limit stops early and is exact.
- **Review order** is Tripadvisor's default for visitors: newest first. A hotel's pinned "favorite review" may appear near the top.
- **Monitoring mode** stops at the first review that an earlier run already saw. Reviews older than that are never returned as new, even if the first run did not reach them because of *Max reviews per place*. If more new reviews appeared between two runs than *Max reviews per place*, only the newest ones are returned. The memory lives in the key-value store `tripadvisor-scraper-state` in your account; delete it to start from scratch. A place row is saved only the first time a place is seen in this mode.
- If Tripadvisor reports reviews for a place but none can be read from its page, the place is saved and a free error row says so. If that happens on every place of the run and no review is saved (a sign that Tripadvisor changed its page layout), the run ends as **failed**, not as a quiet success. A run with nothing saved because pages failed also ends as failed; a list that really is empty is a success.
- **Review dates**: recent hotel reviews have an exact date; older hotel reviews show only the month (`2026-10`). Restaurant and attraction reviews have exact dates.
- **Hotel prices** are what Tripadvisor shows by default: the average nightly range and the lowest partner offer for the dates it preselects. Prices for your own dates are not available.
- **Owner responses in another language** than the page are loaded by Tripadvisor only on click: for them `hasOwnerResponse` and `ownerResponseDate` are filled and `ownerResponseText` is empty.
- **Restaurant websites and e-mail addresses** are not collected: the website button has no address in the page, and e-mails are skipped on purpose. Hotels and attractions usually have `website`.
- `ranking` and the other place-page fields are filled when details or reviews are on, or when you paste a place URL. `detailsLoaded` tells you which rows have them. Without them, `position` is the place in the list you pasted.
- Sponsored cards are skipped. Hotels have no `categories`. Attractions usually have no `address`, `phone` or `priceLevel` on list pages - turn on details to get them.
- Only the reviewer's display name is collected, not profile links, locations or other personal data.
- Each page takes 10-60 seconds through the Unblocker; 10 pages are loaded in parallel. A 100-place run without reviews takes about a minute.
- A URL of a city or place that does not exist on Tripadvisor (404) gives an empty result or an error row and is not charged.
- Built for tripadvisor.com (English). Links from other Tripadvisor domains (.fr, .de, .co.uk…) are accepted and read on tripadvisor.com: the same places and reviews, with English labels and reviews machine-translated into English where Tripadvisor does so.
- Tours, vacation rentals, cruises and flights are not supported.

### Feedback and support

- **Did it save you time?** A [rating on the Store page](https://apify.com/solidrows/tripadvisor-scraper/reviews) helps other users find this Actor. It takes 10 seconds.
- **Something wrong or missing?** [Open an issue](https://apify.com/solidrows/tripadvisor-scraper/issues) with the input you used. We answer within 48 hours and fix broken runs first.
- **Never a silent empty run.** If the site blocks us and nothing is scraped, the run fails with a clear message and no results are charged.

### FAQ

**Can I scrape a whole city?** Yes. Paste the city page, set **Max places** to 0; Tripadvisor lists up to several thousand places per city and type.

**Can I scrape only vegan restaurants, only 5-star hotels or only museums?** Yes. Apply the filter on tripadvisor.com and paste that list URL.

**How do I get reviews only for one place?** Paste the place page URL and turn on **Include reviews**.

**How do I monitor new reviews?** Save the places as a task with **Include reviews** and **Only new reviews**, add a daily or weekly schedule and connect a webhook, Slack, Google Sheets or Make/Zapier/n8n integration. Each run returns only reviews that appeared since the previous one, and the place itself is charged only on the first run.

**How do I get all reviews of a place?** Set **Max reviews per place** to a large number. Reviews are read page by page (10-15 per page), so very large places take time.

**Are reviews in other languages included?** Yes. On tripadvisor.com they are shown machine-translated into English; `originalLanguage` holds the language they were written in, and **Review languages** keeps only the ones you need.

**Can I use it as a Tripadvisor API?** Yes: start runs and read results through the Apify API, the Python/JavaScript clients, MCP or no-code tools.

**Is it legal to scrape Tripadvisor?** The scraper collects publicly visible business information and public reviews. You are responsible for how you use the data; reviews can contain personal opinions and names, so handle them according to the law that applies to you.

# Actor input Schema

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

Any mix of: a city page (tripadvisor.com/Tourism-g187147-Paris_Ile_de_France-Vacations.html - scrapes its restaurants, hotels and things to do), a list page (Restaurants-g…, Hotels-g…, Attractions-g… - with any filters or categories you applied on the site), or a single place page (Restaurant_Review-…, Hotel_Review-…, Attraction_Review-…). To find a city page, search the city on tripadvisor.com and copy the address of its page. Links from other Tripadvisor domains (.co.uk, .fr, .de…) are read on tripadvisor.com: same places, English labels.

## `placeTypes` (type: `array`):

Which lists to scrape when a URL is a city page (Tourism-g…). List and place URLs are not affected.

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

Maximum number of places (restaurants, hotels, attractions) to save across all URLs. Each list page holds about 30 places. Reviews are not counted here. 0 = no limit.

## `includePlaceDetails` (type: `boolean`):

Also open each place page and add: ranking ("#14 of 13,914 Restaurants in New York City"), website, opening hours, amenities and features, meal types and special diets, awards, hotel class, number of rooms, hotel price range and lowest offer shown, ticket price from (attractions), rating breakdown (Excellent…Terrible), sub-ratings (rooms, service, value, food…), description and photo count. One extra page per place, so the run is slower. The same fields are filled for free whenever reviews are on, because the place page is opened anyway.

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

Also save the newest reviews of each place: rating, title, full text, review date, date of visit, trip type, original language, helpful votes, photos, hotel sub-ratings, and the owner response with its date. Slower: at least one extra page per place.

## `maxReviewsPerPlace` (type: `integer`):

How many of the newest reviews to save per place. Tripadvisor shows 10 to 15 reviews per page.

## `reviewsSince` (type: `string`):

Save only reviews written on or after this date: a date like 2026-10-01 or a relative value like "30 days" or "3 months". Because reviews come newest first, the scraper stops reading a place as soon as it reaches older reviews - you do not pay for them.

## `reviewRatings` (type: `array`):

Save only reviews with these ratings, e.g. 1 and 2 to collect complaints. Empty = all ratings. The filter is applied to the newest reviews of each place: by default the scraper reads up to twice "Max reviews per place" reviews and keeps the matching ones; raise "Review scan depth" to look further back.

## `reviewLanguages` (type: `array`):

Save only reviews originally written in these languages, as two-letter codes (en, fr, de, es, it, ja…). Tripadvisor.com shows foreign reviews machine-translated into English; the original language is detected from the page. Empty = all languages. Applied to the newest reviews, like the rating filter (see "Review scan depth").

## `reviewScanDepth` (type: `integer`):

Used only when a rating or language filter is set. Tripadvisor cannot filter reviews by rating or language in the page address, so the scraper reads the newest reviews of each place one page at a time and keeps the matching ones. This is the maximum number of newest reviews to read per place while looking for matches. 0 = automatic: twice "Max reviews per place". Maximum 200. Cost: reviews that are read but do not match are free, you pay only for saved reviews ($0.50 per 1,000); a deeper scan only makes the run longer, about 10-60 seconds per extra page of 10-15 reviews. Reading stops as soon as "Max reviews per place" matching reviews are found.

## `onlyNewReviews` (type: `boolean`):

Remember what earlier runs returned and save only reviews that appeared since. Reviews are read newest first and reading stops at the first review that was already delivered, so a scheduled daily or weekly run usually loads one page per place. You pay only for new reviews: a place row is saved and charged only the first time the place is seen in this mode; later runs save just its new review rows. The first run returns the newest reviews up to "Max reviews per place"; older reviews that were not returned then are never returned later as "new".

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
    }
  ],
  "placeTypes": [
    "restaurants",
    "hotels",
    "attractions"
  ],
  "maxItems": 20,
  "includePlaceDetails": false,
  "includeReviews": false,
  "maxReviewsPerPlace": 20,
  "reviewScanDepth": 0,
  "onlyNewReviews": false
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
        }
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidrows/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 = {
    "startUrls": [{ "url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html" }],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("solidrows/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 '{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
    }
  ],
  "maxItems": 20
}' |
apify call solidrows/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solidrows/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/UCAxyzg8CHFb4mE7K/builds/Oqzoc9OBJvwHsmfgo/openapi.json
