# TripAdvisor Scraper: Hotels, Restaurants and Attractions (`santamaria-automations/tripadvisor-scraper`) Actor

Get hotel, restaurant and attraction listings from TripAdvisor list pages: name, link, location ID, rating, review count, price level, cuisines, address, coordinates, phone, ranking and image. No login needed.

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

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Get hotel, restaurant and attraction listings from [TripAdvisor](https://www.tripadvisor.com/) list pages. Paste the address of a list page, such as the restaurants of a city, and the actor returns one record per listing: name, link, location ID, rating, review count, price level, cuisines and categories, address, coordinates, phone, ranking, image and opening hours. No login and no API key are needed.

### What you get

- One record per listing from a TripAdvisor list page, 30 listings per page.
- Several pages in one run. Set `maxResults` and the actor reads as many pages as it needs.
- Each listing once per run, even if it shows up on more than one page.
- A run that is interrupted continues where it stopped. Listings already delivered are not delivered or charged again.
- You pay only for listings that were saved to the dataset.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/tripadvisor-scraper
```

**Example prompt once connected:**

> "Use `tripadvisor-scraper` to list the first 60 restaurants in Paris from TripAdvisor with their ratings, review counts and addresses as a CSV."

### Data extracted

| Field | Example |
|-------|---------|
| `id` | `"1109767"` |
| `location_id` | `"1109767"` |
| `geo_id` | `"187147"` |
| `name` | `"Le Train Bleu"` |
| `listing_type` | `"restaurant"` |
| `url` | `"https://www.tripadvisor.com/Restaurant_Review-g187147-d1109767-Reviews-Le_Train_Bleu-Paris_Ile_de_France.html"` |
| `rating` | `4` |
| `review_count` | `7562` |
| `price_level` | `"$$$$"` |
| `cuisines` | `["French"]` |
| `categories` | `["Restaurants"]` |
| `address` | `"Place Louis Armand Gare de Lyon, 75012 Paris France"` |
| `city` | `"Paris"` |
| `country` | `"France"` |
| `postal_code` | `"75012"` |
| `latitude`, `longitude` | `48.84495`, `2.373383` |
| `phone` | `"+33 1 43 43 09 06"` |
| `menu_url` | Menu link, when the page shows one |
| `description` | Short description, when the page shows one |
| `image_url` | Main photo |
| `rank` | `1` |
| `ranking_text` | `"#1 in Paris Restaurants"` |
| `opening_hours` | `["Sunday 11:15-14:30", "Sunday 19:00-22:30"]` |
| `is_sponsored` | `false` |
| `source_url` | The list page the row came from |
| `page` | `1` |
| `scraped_at` | `"2026-11-05T10:00:00Z"` |

Fields that a page does not show are returned empty. List pages do not show a long description for most listings.

### Pricing

Pay-per-event pricing. You pay only for listings that were saved to the dataset.

| Event | Price |
|-------|-------|
| Actor start (`actor-start`) | $0.001 |
| Listing scraped (`tripadvisor-listing-result`) | $2.50 / 1,000 |

The start event is charged once per run, together with the first saved listing. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops before it goes over that limit.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `locationUrls` | string\[] | TripAdvisor list pages, for example `https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html`. Hotels, restaurants and things to do list pages work. | none |
| `directUrls` | string\[] | Single listing pages (Hotel_Review, Restaurant_Review, Attraction_Review). One page gives one record. | none |
| `maxResults` | integer | Most listings to return across all inputs. 0 uses 100. | `100` |

At least one of `locationUrls` or `directUrls` is required.

### Usage examples

#### First 40 restaurants in Paris

```json
{
  "locationUrls": ["https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html"],
  "maxResults": 40
}
```

#### Hotels in two cities

```json
{
  "locationUrls": [
    "https://www.tripadvisor.com/Hotels-g187791-Rome_Lazio.html",
    "https://www.tripadvisor.com/Hotels-g187497-Barcelona_Catalonia.html"
  ],
  "maxResults": 100
}
```

#### One listing page

```json
{
  "directUrls": [
    "https://www.tripadvisor.com/Restaurant_Review-g187147-d719424-Reviews-Le_Jules_Verne-Paris_Ile_de_France.html"
  ]
}
```

### Output

Results are saved to the default dataset. Export them as JSON, CSV or Excel, or read them through the API.

### FAQ

**Which pages should I use?**
List pages, such as the restaurants, hotels or things to do of a city. They give 30 listings per request, which keeps runs fast and cost low.

**How many listings can I get from one list?**
TripAdvisor shows up to a few hundred pages for a list. The actor reads pages until it has `maxResults` listings or the list ends.

**What does a run cost?**
$0.001 to start plus $2.50 per 1,000 listings. A run of 40 listings costs about $0.10.

**What status does a run end with?**
The run status says how many listings were delivered. If TripAdvisor refuses every request, the run fails and nothing is charged. If a page has no listings, the run ends normally and says so.

**Can I get reviews?**
This actor returns listing data: rating summary, address, contact details and ranking. It does not return the text of individual reviews.

# Actor input Schema

## `locationUrls` (type: `array`):

TripAdvisor list pages, for example https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html. Each page holds 30 listings and the actor reads further pages until it has Max Results listings.

## `directUrls` (type: `array`):

Single TripAdvisor listing pages (Hotel_Review, Restaurant_Review or Attraction_Review). One page gives one record.

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

Most listings to return across all inputs. 0 or empty uses 100.

## `proxyConfiguration` (type: `object`):

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "locationUrls": [
    "https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html"
  ],
  "maxResults": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing scraped TripAdvisor listing records with ratings, location details, and contact information

# API

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

## JavaScript example

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

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

// Prepare Actor input
const input = {
    "locationUrls": [
        "https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html"
    ],
    "maxResults": 40,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/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 = {
    "locationUrls": ["https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html"],
    "maxResults": 40,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/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 '{
  "locationUrls": [
    "https://www.tripadvisor.com/Restaurants-g187147-Paris_Ile_de_France.html"
  ],
  "maxResults": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call santamaria-automations/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

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