# TripAdvisor Restaurants Scraper: City Lists (`luzivanlt/tripadvisor-restaurants-scraper`) Actor

TripAdvisor restaurants from any city list, read past the page where the site's paging stops. $0.40 per 1,000 restaurants. Name, rating, review count, price level, phone, address, website, photo and link; cuisines, hours, dish menu with prices, features, awards and city rank optional. No login.

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

## Pricing

from $0.28 / 1,000 restaurants

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 Restaurants Scraper: City Lists

Every restaurant a TripAdvisor city lists, saved as one row per restaurant: name, address, city, rating, review count, price level, phone, website, photo and link. A city page shows 30 restaurants at a time and its own paging stops long before the list ends; this Actor reads the list to its end, 9,990 restaurants for New York City. Turn on Restaurant details to add cuisines, opening hours, website, menu link, dish prices and city rank, or Traveler reviews to add the newest reviews with their text, dates and reviewer details. No TripAdvisor account or cookies needed.

Tested daily. Latest check of 14 November 2026: 9,990 New York City restaurants read to the end of the list in 2 minutes 7 seconds. A 2,000-restaurant run of the same city read 2,010 entries in 27 seconds.

### What does this Actor do?

You give it one or more TripAdvisor restaurant list links, or restaurant links. It reads the list to its end, saves each restaurant once, and stops when the list ends or your maximum is reached. New York City is the measured example: its own paging shows 30 restaurants at a time, while the list advertises 15,810 entries and serves 9,990, and the Actor reads every one it serves.

Each restaurant comes with:

- Its name, full address, city, postal code and country.
- Coordinates, so you can map it or sort by distance.
- Its traveler rating and how many reviews it has.
- The price level TripAdvisor prints, such as $$ - $$$.
- Its phone number, main photo and TripAdvisor link.
- With Restaurant details on: the cuisines, meal types, special diets, features and awards the page lists, the star breakdown and category scores of its reviews, its opening hours, its own website, its menu link, its published dish menu with prices, and its rank in the city.
- With Traveler reviews on: its newest reviews, each with the rating, headline, full text, date, trip type and month of visit.
- Each review also carries the reviewer's name, home town and contribution count, subratings for food, service, value and atmosphere, any photos, the owner's public reply and a link to the review.

### Why use it?

- **The whole city, not the first page.** The site's own paging stops after a few pages; the Actor keeps reading the list to its advertised count and names any gap in the final status.
- **One row per restaurant.** A restaurant that appears twice in the list is saved and charged once.
- **Fields you can use without another step.** Address, city, coordinates, rating, review count, price level, phone, photo and link are on every row.
- **Reviews for the trip, not just a score.** Turn on Traveler reviews to read what diners actually wrote, with the date, trip type, subratings and the owner's reply, so you can judge a restaurant rather than sort by stars.
- **Optional depth.** Turn on Restaurant details for cuisines, meal types, diets, features, awards, opening hours, website, menu link, dish prices and city rank, and pay only for the restaurants that answer.
- **Cheaper per 1,000 than `maxcopell` and `memo23` on free and Gold.** $0.40 per 1,000 restaurants, $0.28 on Gold, against `maxcopell/tripadvisor` $5.00 free / $2.00 Gold and `memo23/tripadvisor-scraper` $0.45. `maxcopell/tripadvisor-reviews` charges $5.00 free / $0.90 Gold per 1,000 reviews, against $0.40 / $0.28 here. Prices read from the Apify Store on 14 November 2026.
- **Export as JSON, CSV or Excel, or through Apify's API.**

### How to use it

1. Paste one or more TripAdvisor city restaurant list links into **City or restaurant links**, one per line.
2. Turn on **Traveler reviews** if you need the review text, and set **Reviews per restaurant** to how deep you want to go.
3. Turn on **Restaurant details** only if you need cuisines, meal types, diets, features, awards, opening hours, website, menu link, dish prices and city rank. It is charged separately.
4. Leave **Maximum restaurants in the run** at 2,000, or raise it for a whole city and lower it for a smaller bill.

A run with no input uses New York City as the sample. It saves 500 restaurants and finishes in under a minute.

#### Links that work

```
https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html
https://www.tripadvisor.com/Restaurant_Review-g60763-d21410713-Reviews-La_Grande_Boucherie_NYC-New_York_City_New_York.html
```

A city link may carry the site's own filters, such as a cuisine or a neighbourhood. A link that is not a TripAdvisor city restaurant list or restaurant stops the run before anything is read, naming the line.

### Input

| **Title** (`key`) | What it does | Default |
| --- | --- | --- |
| **City or restaurant links** (`startUrls`) | Up to 20 TripAdvisor city or area restaurant list links, or restaurant links, one per line. A city link reads the list to its end; a restaurant link returns that restaurant. A link listed twice is read once. | New York City |
| **Restaurant details** (`includeDetails`) | Adds each restaurant's cuisines, meal types, special diets, features, awards, opening hours, website, menu link, dish menu with prices and city rank. Charged separately at $0.80 per 1,000 restaurants. | Off |
| **Traveler reviews** (`includeReviews`) | Adds each restaurant's newest reviews with text, dates, reviewer details, subratings and owner replies. Charged separately at $0.40 per 1,000 reviews. | Off |
| **Reviews per restaurant** (`maxReviewsPerRestaurant`) | How many of each restaurant's newest reviews to keep, 1 to 200. | 10 |
| **Maximum restaurants in the run** (`maxItems`) | A hard cap across every link, 10 to 50,000. The run stops here and the final status says it was capped. | 2,000 |

A run needs at least one link unless you leave the whole form untouched, which runs the sample. Example input:

```json
{
  "startUrls": [
    "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
  ],
  "includeDetails": false,
  "includeReviews": true,
  "maxReviewsPerRestaurant": 20,
  "maxItems": 2000
}
```

### Output

One row per restaurant. Reviews sit inside the restaurant row, newest first. Example row, shortened:

```json
{
  "restaurant_id": "21410713",
  "name": "La Grande Boucherie NYC",
  "url": "https://www.tripadvisor.com/Restaurant_Review-g60763-d21410713-Reviews-La_Grande_Boucherie_NYC-New_York_City_New_York.html",
  "rating": 4.8,
  "review_count": 3559,
  "rating_counts": { "1": 44, "2": 50, "3": 92, "4": 191, "5": 3182 },
  "subratings": { "atmosphere": 4.9, "food": 4.8, "service": 4.9, "value": 4.6 },
  "review_total": 3559,
  "reviews_saved": 2,
  "reviews": [
    {
      "review_id": "1085201413",
      "rating": 5,
      "title": "Fantastic!",
      "text": "Great company, great food, great vibes.",
      "language": "en",
      "published": "2026-11-12",
      "trip_type": "Business",
      "stay_date": "2026-11",
      "helpful_votes": 0,
      "reviewer_name": "Jane D.",
      "reviewer_username": "janedoe",
      "reviewer_hometown": "Boston",
      "reviewer_contributions": 42,
      "subratings": {
        "food": 5,
        "service": 5,
        "value": 4,
        "atmosphere": 5
      },
      "owner_response": {
        "text": "Thank you for dining with us.",
        "published": "2026-11-13",
        "responder": "Guest Relations"
      },
      "photos": [
        "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/example.jpg?w=800&h=600&s=1"
      ],
      "review_url": "https://www.tripadvisor.com/ShowUserReviews-g60763-d21410713-r1085201413"
    }
  ],
  "price_range": "$$$$",
  "price_type": "Fine Dining",
  "phone": "+1 212-510-7714",
  "website": "http://boucherieus.com/",
  "address": "145 W 53rd St, New York City, New York, 10019-6005, United States",
  "street_address": "145 W 53rd St",
  "city": "New York City",
  "region": "New York",
  "postal_code": "10019-6005",
  "country": "United States",
  "latitude": 40.762756,
  "longitude": -73.980644,
  "image_url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/example.jpg",
  "cuisines": ["French", "Steakhouse"],
  "primary_cuisine": "French",
  "meal_types": ["Breakfast", "Lunch", "Dinner", "Brunch", "Drinks"],
  "special_diets": [],
  "features": ["Reservations", "Outdoor Seating", "Private Dining", "Seating", "Serves Alcohol", "Full Bar", "Mastercard", "Visa", "Digital Payments", "Accepts Credit Cards", "Table Service", "Family style", "Non-smoking restaurants", "Gift Cards Available"],
  "awards": ["Travelers' Choice 2026 Winner"],
  "hours": [
    { "day": "Monday", "opens": "08:00:00", "closes": "00:00:00" }
  ],
  "hours_text": "Monday 08:00:00–00:00:00",
  "menu_url": "https://www.boucherieus.com/la-grande-boucherie-menus/",
  "menu": [],
  "menu_items": 0,
  "accepts_reservations": true,
  "ranking": 13,
  "ranking_total": 13914,
  "ranking_area": "New York City",
  "ranking_category": "Restaurants",
  "search_url": "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html",
  "scraped_at": "2026-11-14T08:00:00.000Z"
}
```

| Field | What it holds |
| --- | --- |
| `restaurant_id` | TripAdvisor's own id for the restaurant; the key for de-duplicating runs. |
| `name` | The restaurant's name as TripAdvisor writes it. |
| `url` | Link to the restaurant's TripAdvisor page. |
| `rating` | Average traveler rating, 1 to 5, to one decimal. |
| `review_count` | How many traveler reviews the restaurant has. |
| `rating_counts` | How many reviews gave each star rating, keyed 1 to 5; filled with Restaurant details on. |
| `subratings` | The restaurant's summary scores for food, service, value and atmosphere; filled with Restaurant details on. |
| `review_total` | How many reviews the restaurant's review list holds; empty unless Traveler reviews is on. Can differ from `review_count`, which the site counts across languages. |
| `reviews_saved` | How many reviews this row carries; empty unless Traveler reviews is on. |
| `reviews` | The newest reviews for this restaurant, up to Reviews per restaurant; empty unless Traveler reviews is on. |
| `price_range` | The price band TripAdvisor prints, such as $$ - $$$. |
| `phone` | The restaurant's phone number as published. |
| `website` | The restaurant's own website as published on its TripAdvisor page; filled with Restaurant details on when the restaurant publishes one. |
| `address` | The full address in one line. |
| `street_address` | Street and number. |
| `city` | The city the restaurant is in. |
| `region` | The state, province or region, when the site publishes one (United States pages carry it; United Kingdom pages do not). |
| `postal_code` | The postal code. |
| `country` | The country. |
| `latitude` | Latitude of the restaurant. |
| `longitude` | Longitude of the restaurant. |
| `image_url` | Link to the restaurant's main photo. |
| `cuisines` | Cuisines the restaurant serves, such as Italian or Japanese; filled with Restaurant details on. |
| `primary_cuisine` | The first cuisine the page names, for sorting; filled with Restaurant details on. |
| `meal_types` | Meals the restaurant serves, such as Breakfast, Lunch or Dinner; filled with Restaurant details on. |
| `special_diets` | Dietary options the page names, such as Vegetarian friendly or Gluten free options; filled with Restaurant details on. |
| `features` | Dining options the page names, such as Reservations, Outdoor Seating or Wheelchair Accessible; filled with Restaurant details on. |
| `awards` | TripAdvisor awards the page shows, such as Travelers' Choice 2026 Winner; filled with Restaurant details on. |
| `hours` | Opening hours by day, each with day, opens and closes; filled with Restaurant details on. |
| `hours_text` | The same opening hours in one line, ready for a spreadsheet; filled with Restaurant details on. |
| `menu_url` | Link to the menu the restaurant publishes on its own site; filled with Restaurant details on when the restaurant publishes one. |
| `menu` | Dishes from the menu the restaurant publishes to TripAdvisor, each with the menu and section it belongs to, description, price, currency, calories and dietary tags; empty when it publishes no dish menu. Filled with Restaurant details on. |
| `menu_items` | How many dishes `menu` holds; empty when there is no dish menu. |
| `accepts_reservations` | Whether the page says the restaurant takes reservations; filled with Restaurant details on. |
| `ranking` | The restaurant's rank among restaurants in its city; filled with Restaurant details on. |
| `ranking_total` | How many restaurants the city ranking covers; filled with Restaurant details on. |
| `ranking_area` | The city or area the ranking is for; filled with Restaurant details on. |
| `ranking_category` | The category the rank covers, such as Restaurants; filled with Restaurant details on. |
| `search_url` | The city list or restaurant link this row came from. |
| `scraped_at` | When the row was saved, ISO 8601. |

Each object in `reviews` holds:

| Field | What it holds |
| --- | --- |
| `review_id` | TripAdvisor's id for the review; unique within a restaurant. |
| `rating` | The reviewer's rating, 1 to 5. |
| `title` | The review headline as written. |
| `text` | The full review text; empty when the diner rated without writing. |
| `language` | The language the review was served in, such as en. |
| `published` | The date the review was posted, YYYY-MM-DD. |
| `trip_type` | Who visited, such as Business, Couples, Family, Friends or Solo; empty when the diner did not say. |
| `stay_date` | The year and month of the visit, YYYY-MM; empty when the diner did not say. |
| `helpful_votes` | How many readers marked the review helpful. |
| `reviewer_name` | The reviewer's display name. |
| `reviewer_username` | The reviewer's profile handle; empty for most reviews. |
| `reviewer_hometown` | The home town on the reviewer's profile; empty when the profile has none. |
| `reviewer_contributions` | How many contributions the reviewer has in total. |
| `subratings` | Scores from 1 to 5 for food, service, value and atmosphere; empty when the diner gave none. |
| `owner_response` | The restaurant's public reply as text, published date and responder name; empty when the restaurant did not reply. |
| `photos` | Links to photos attached to the review, 800 by 600; empty when there are none. |
| `review_url` | Link to the review on TripAdvisor; empty when the review list does not carry one. |

Some fields can be empty because TripAdvisor does not publish them for every restaurant. In 200-row samples on 14 November 2026 every row carried name, address, city, rating, price level, phone and photo. With Restaurant details on: New York City carried a website on 197 rows, a menu link on 99 and a published dish menu on 55 (5,115 dishes), and London carried a website on 198, a menu link on 147 and a dish menu on 92 (7,266 dishes). The same samples carried price class, cuisines, features and opening hours on every row, meal types on 199 of 200 in New York and all 200 in London, special diets on 188 and 185, and a TripAdvisor award on 174 and 186. Cuisines, meal types, diets, features, awards, opening hours, website, menu link, dish menu and ranking are empty unless Restaurant details is on; a restaurant that publishes none of them leaves those cells empty. Reviews, review totals and reviewer details are empty unless Traveler reviews is on; 57 of 500 measured reviews carried a home town, 35 subratings, 43 an owner reply and 26 photos.

### How much does it cost?

You pay for what you get:

- **$0.40 per 1,000 restaurants.** Charged once per restaurant saved to your results. A restaurant found twice in a run is charged once.
- **$0.0032 per restaurant link.** Charged once per restaurant link read. A city list link is free, and a link that cannot be read is not charged.
- **$0.80 per 1,000 restaurants with details.** Charged once per restaurant enriched with cuisines, meal types, diets, features, awards, opening hours, website, menu link, dish menu and city rank, only when **Restaurant details** is on and the page answers.
- **$0.40 per 1,000 reviews.** Charged once per review saved to a restaurant row, only when **Traveler reviews** is on. A restaurant with fewer reviews, or none, saves and charges fewer.

A run of one city list that saves 10,000 restaurants costs $4.00. The same 10,000 restaurants with Restaurant details on costs $12.00. Adding 10 reviews each costs $44.00: $4.00 for the restaurants and $40.00 for 100,000 reviews. One restaurant link costs $0.0032 and includes its details.

Price per 1,000, next to `maxcopell` and `memo23`:

| Per 1,000 | This Actor | `maxcopell/tripadvisor` | `memo23/tripadvisor-scraper` |
| --- | ---: | ---: | ---: |
| Restaurants | **$0.40 free, $0.28 Gold** | $5.00 free, $2.00 Gold | $0.45 |
| Restaurant reviews | **$0.40 free, $0.28 Gold** | $5.00 free, $0.90 Gold, sold as `maxcopell/tripadvisor-reviews` | $1.00 for extra data |

Prices read from the Apify Store on 14 November 2026. `memo23` also charges $0.005 per run start.

Bronze plans pay 10% less, Silver 20% less and Gold 30% less.

### How long does a run take?

About 2,000 restaurants in 27 seconds and the whole New York list (9,990 restaurants) in 2 minutes 7 seconds, depending on the day. With Restaurant details on, 10 restaurants take 6 seconds and 200 take 64 seconds in New York (90 seconds in London), because each restaurant's own page is read. With Traveler reviews at 10 per restaurant, 200 restaurants and 2,000 reviews take 72 seconds; the first page of each restaurant carries up to 15 reviews, and the 200-review cap took 10 seconds for one restaurant (14 pages).

### Good to know

- **The city's advertised count is the target.** New York advertises 15,810 entries and the list serves the first 9,990; the Actor reads every one it serves and names the gap in the final status. A restaurant that appears twice in the list is saved and charged once, and the status names how many repeats it dropped.
- **The list carries the core row.** Cuisines, meal types, diets, features, awards, opening hours, website, menu link, dish menu and city rank come from the restaurant's own page, so they need Restaurant details. The base row is complete without it.
- **Website and menu are the restaurant's own, as TripAdvisor publishes them.** The Actor reads the address behind the page's Website button; the trailing link tag is stripped, because a link that keeps it answers 404. A restaurant that publishes no website, no menu link or no dish menu leaves those cells empty.
- **Features and awards are the page's own labels.** Meal types, special diets, features and the award badge are read from the restaurant's page as TripAdvisor prints them, so a restaurant that lists none leaves those cells empty.
- **Dish prices are the restaurant's own menu prices.** They are read from the menu the restaurant publishes to TripAdvisor, with its own currency and section names, and are not converted. Not every restaurant publishes a dish menu there; the menu link is the fallback for those.
- **The price level is the site's symbol, not a currency conversion.** A restaurant can show $$ where its own menu shows different prices.
- **The rank is the line the page prints.** It covers restaurants in the city. A restaurant the city has not ranked has an empty `ranking`.
- **Reviews are newest first, up to your per-restaurant limit.** A restaurant with more reviews than the limit saves only the newest ones; `review_total` says how many exist. Only saved reviews are charged.
- **Some reviews have no written text.** A diner can leave a rating alone; that review saves with an empty `text` and still carries its rating and date.
- **At most 20 links per run.** A link that is not a TripAdvisor city restaurant list or restaurant stops the run before anything is read.
- **Daily runs:** keep the same city links and compare `restaurant_id` across runs to see restaurants added or removed, and `review_id` to find new reviews.

### FAQ

**Does it return hotels or attractions?**
No. This Actor covers restaurants that appear in a city's restaurant list.

**Why do I sometimes get fewer rows than the count says?**
TripAdvisor serves some restaurants twice across list pages. The Actor keeps the first copy and drops the repeat, so the row count can be below the advertised count; the final status says how many repeats it dropped. A real break returns a few hundred rows, not thousands.

**Can I scrape only one cuisine or neighbourhood?**
Yes. A city link may carry the site's own filters, such as a cuisine or a neighbourhood, and the Actor reads what that page advertises.

**Can I get the restaurant's website or menu prices?**
Yes, with **Restaurant details** on. `website` is the restaurant's own site, `menu_url` the menu it publishes, and `menu` holds the dishes with prices, currency, sections, calories and dietary tags when the restaurant publishes a dish menu to TripAdvisor. A restaurant that publishes none of these leaves those cells empty.

**Does it work outside the United States?**
Yes, on any TripAdvisor city restaurant list. A measured London run saved 10 restaurants in 2 seconds.

**Can I run the same city every day?**
Yes. Run the same links and compare `restaurant_id` across runs; each row also carries `scraped_at`.

# Actor input Schema

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

Up to 20 TripAdvisor city or area restaurant list links, or restaurant links, one per line, such as https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html. A city link reads the list to its end, not only the first pages. A restaurant link returns that restaurant. A link that is not TripAdvisor stops the run before anything is read. A link listed twice is read once.

## `includeDetails` (type: `boolean`):

Add each restaurant's city rank, cuisines, meal types, special diets, features, awards, rating breakdown, opening hours, website, menu link and published dish menu with prices. Charged separately at $0.80 per 1,000 restaurants enriched. Off by default: the list row already carries name, address, rating, review count, price level, phone, photo and coordinates.

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

Add each restaurant's newest traveler reviews with rating, title, text, date, trip type, reviewer name and home town, subratings, photos and the owner's reply. Charged separately at $0.40 per 1,000 reviews saved; a restaurant with no reviews adds nothing. Slower than restaurants alone.

## `maxReviewsPerRestaurant` (type: `integer`):

How many of each restaurant's newest reviews to keep, 1 to 200. The default of 10 keeps a city run fast; raise it when you need deeper history. A restaurant with fewer reviews saves and charges fewer.

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

A hard cap across every link in the run, 10 to 50,000. A city with more restaurants stops here and the final status says it was capped. Leave it high enough for the city you pass in: New York's list advertises 15,810 restaurants and ends at 9,990, so 10,000 or more reads all of it.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
  ],
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerRestaurant": 10,
  "maxItems": 2000
}
```

# Actor output Schema

## `restaurants` (type: `string`):

One row per distinct restaurant in the default dataset; open the link for the overview view.

# 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": [
        "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"
    ]
};

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

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

```

## MCP server setup

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