# Tripadvisor Scraper - Restaurants, Hotels & Attractions (`juanoox/tripadvisor`) Actor

Extract restaurants, hotels and attractions from any Tripadvisor listing URL. Get rating, review count, ranking, price range, cuisines, phone, full address, opening hours and GPS coordinates. Works on every Tripadvisor country domain.

- **URL**: https://apify.com/juanoox/tripadvisor.md
- **Developed by:** [Juan ignacio Veltri](https://apify.com/juanoox) (community)
- **Categories:** Travel, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Tripadvisor Scraper — Restaurants, Hotels & Attractions

Paste a Tripadvisor listing URL. Get every place on it as clean, structured data — including the fields the page never shows you, like **GPS coordinates** and the exact review count.

Works on every Tripadvisor country domain: `.com`, `.es`, `.co.uk`, `.com.ar`, `.com.mx`, `.com.br`, `.fr`, `.de`, `.it`.

***

### What you get per place

| Field | Example |
|---|---|
| `name` | `Rosi La Loca` |
| `category` | `restaurant` · `hotel` · `attraction` |
| `rating` | `4.6` |
| `reviewsCount` | `9183` |
| `rank` | position in the Tripadvisor ranking |
| `priceRange` | `$$ - $$$` |
| `categories` | `["International", "Spanish"]` |
| `contact.phones` | `["+34915326681"]` — normalised to E.164 |
| `location` | street, city, postcode, **latitude and longitude** |
| `openingHours` | one entry per day, `HH:MM` |
| `images` | full-resolution URLs |

```json
{
  "id": "a1b2c3d4e5f6a7b8",
  "url": "https://www.tripadvisor.com/Restaurant_Review-g187514-d7204621-Reviews-Rosi_La_Loca-Madrid.html",
  "source": "tripadvisor",
  "name": "Rosi La Loca",
  "category": "restaurant",
  "rating": 4.6,
  "reviewsCount": 9183,
  "rank": 1,
  "priceRange": "$$ - $$$",
  "categories": ["International", "Spanish"],
  "contact": { "phones": ["+34915326681"] },
  "location": {
    "address": "Calle De Cadiz, 4, 28012 Madrid Spain",
    "postalCode": "28012",
    "latitude": 40.415836,
    "longitude": -3.702976
  },
  "listingId": "7204621"
}
```

### How to use it

#### Scrape a city's restaurants

Open Tripadvisor, filter however you like, copy the URL:

```json
{
  "startUrls": [{ "url": "https://www.tripadvisor.com/Restaurants-g187514-Madrid.html" }],
  "maxItems": 500
}
```

#### Build a lead list of well-rated venues with phone numbers

```json
{
  "startUrls": [{ "url": "https://www.tripadvisor.com/Restaurants-g187514-Madrid.html" }],
  "minRating": 4,
  "minReviews": 100,
  "onlyWithPhone": true
}
```

#### Monitor new listings

Schedule it with `includeSeen` off — each run returns only places that appeared since the last one.

### Why paste a URL instead of typing a city?

Tripadvisor URLs contain an internal geo id — `g187514` is Madrid — that **cannot be derived from a city name** without an extra lookup. An Actor that accepts "Madrid" has to guess that id, and a wrong guess silently returns another city's listings.

Pasting the URL is slightly less convenient and completely unambiguous. You get the city you asked for, every time.

### Input reference

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array | example URL | Tripadvisor listing pages |
| `category` | enum | `any` | Keep only restaurants, hotels or attractions |
| `nameKeywords` | array | `[]` | Keep places whose name matches any word |
| `minRating` | integer | — | Minimum rating, 0–5 |
| `minReviews` | integer | — | Minimum review count |
| `onlyWithPhone` | boolean | `false` | Keep only places with a phone number |
| `maxItems` | integer | `200` | Hard stop. **Your cost control** |
| `maxPagesPerUrl` | integer | `10` | Listing pages per URL (~30 places each) |
| `includeSeen` | boolean | `true` | `false` returns only places new since the last run |
| `proxyTier` | enum | `datacenter` | Starts cheap, escalates only if blocked |
| `maxProxyTier` | enum | `residential` | Set to `datacenter` to never spend residential bandwidth |
| `maxRequestsPerMinute` | integer | `60` | Throttle. Often more effective than switching proxies |

### Cost

Charged **per place saved**. Places removed by your filters or already seen are not charged.

The Actor starts on datacenter proxies and escalates to residential only when it detects an anti-bot challenge, so you do not pay for residential bandwidth unless the site actually demands it.

### FAQ

**Which URLs work?** Any Tripadvisor listing page — restaurants, hotels or attractions — on any country domain.

**Why do some places have no phone or no coordinates?** Because Tripadvisor does not publish them for that venue. The field comes back `null` rather than being guessed.

**Why fewer results than the page shows?** Almost always `maxItems` or `maxPagesPerUrl`. Raise them. The run log reports how many places each filter removed.

**Is this legal?** Only public listing data is extracted — the same information any visitor sees without logging in. No login is bypassed and no personal data is collected.

### Support

Found a listing URL that does not parse? Open an issue with the URL. Reports with a URL get fixed fastest.

# Actor input Schema

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

Paste listing pages, e.g. https://www.tripadvisor.com/Restaurants-g187514-Madrid.html. Filter on Tripadvisor first and the Actor copies that exact list. Works on any Tripadvisor domain (.com, .es, .co.uk, .com.ar, .com.mx, .com.br, .fr, .de, .it).

## `category` (type: `string`):

Keep only one type of place. Useful when a listing URL mixes categories.

## `nameKeywords` (type: `array`):

Keep only places whose name contains any of these words. Case and accent insensitive.

## `minRating` (type: `string`):

Keep only listings rated at or above this threshold. Listings without a rating are excluded. Apify input schemas cannot express decimals as numbers, so the thresholds are offered as choices.

## `minReviews` (type: `integer`):

Keep only places with at least this many reviews. Useful to skip newly listed venues.

## `onlyWithPhone` (type: `boolean`):

Keep only places that publish a phone number. Useful for lead generation.

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

Stops the run at this many places. 0 = no limit. This is your direct cost control.

## `maxPagesPerUrl` (type: `integer`):

How many listing pages to follow per URL. Tripadvisor returns about 30 places per page.

## `includeSeen` (type: `boolean`):

Turn off for monitoring: each run returns only places that appeared since the previous run.

## `proxyTier` (type: `string`):

Start on datacenter. The Actor escalates to residential automatically if it detects anti-bot challenges, so you do not pay for residential bandwidth unless it is needed.

## `maxProxyTier` (type: `string`):

Set to "Datacenter" to guarantee the run never consumes residential bandwidth.

## `maxConcurrency` (type: `integer`):

Parallel requests. Lower it if you see anti-bot challenges.

## `maxRequestsPerMinute` (type: `integer`):

Throttles the crawl. Tripadvisor reacts to request rate, so lowering this is often more effective than switching proxies.

## `maxRequestRetries` (type: `integer`):

How many times to retry a blocked request. Each retry gets a different proxy IP, so on Tripadvisor a higher number is what turns a blocked run into a successful one.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Restaurants-g187514-Madrid.html"
    }
  ],
  "category": "any",
  "minRating": "any",
  "onlyWithPhone": false,
  "maxItems": 200,
  "maxPagesPerUrl": 10,
  "includeSeen": true,
  "proxyTier": "datacenter",
  "maxProxyTier": "residential",
  "maxConcurrency": 5,
  "maxRequestsPerMinute": 60,
  "maxRequestRetries": 8
}
```

# Actor output Schema

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

No description

## `runSummary` (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-g187514-Madrid.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("juanoox/tripadvisor").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-g187514-Madrid.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("juanoox/tripadvisor").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-g187514-Madrid.html"
    }
  ]
}' |
apify call juanoox/tripadvisor --silent --output-dataset

```

## MCP server setup

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

```

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/N0gnxIsCK3C5B3Kl3/builds/PGSk6L4amIQ4KQvCK/openapi.json
