# Tripadvisor (Restaurants) (`canadesk/tripadvisor-restaurants`) Actor

Get Locations and Restaurants with advanced filters from Tripadvisor. It's fast and costs little.

- **URL**: https://apify.com/canadesk/tripadvisor-restaurants.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** Travel, Social media
- **Features:** Full permissions
- **Stats:** 306 total users, 0 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

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

Collect restaurant listings from **Tripadvisor**. Search one location or a list, with filters for dietary requirements, establishment type, meal and price.

### Features

| **Process** | **What you get** |
| :--- | :--- |
| Destination search | Restaurants matching a location and selected filters |
| Keyword search | Restaurant matches for a search term |
| Restaurant listings | Available names, ratings, cuisines, price categories, menus and booking links |

Results are grouped by page with their search metadata. Fields depend on the listing and source response.

### Getting started

Enter a destination or provide a list of locations. Select the search mode and filters you need.

```json
{
  "location": "London",
  "process": "gr",
  "pages": 3
}
```

### Results

Export your dataset as JSON, CSV or Excel. Available fields depend on the matching listing. Restaurant results are grouped by page, preserving their search metadata.

### Pay-per-event billing

Each valid pay-per-event run with at least one input includes a minimum charge of 100 result units, shared across all inputs in that run. Any placeholder rows are clearly marked and contain no scraped data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

# Actor input Schema

## `process` (type: `string`):

Process to run.

## `locations` (type: `array`):

Optional list. When supplied, replaces the single location.

## `location` (type: `string`):

The location to search data for.

## `locale` (type: `string`):

No description

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

Maximum number of actual matches across this run.

## `diets` (type: `array`):

No description

## `establishments` (type: `array`):

No description

## `meals` (type: `array`):

No description

## `prices` (type: `array`):

No description

## `broaden` (type: `boolean`):

Broaden results beyond exact location.

## `pages` (type: `integer`):

Maximum number of pages to be returned (high impact on cost).

## `delay` (type: `integer`):

Waiting time between requests (ms).

## `cache` (type: `string`):

Reuse destination lookup data for up to 90 days. Listings and prices are fetched live.

## `proxy` (type: `object`):

Choose direct access or your preferred proxy configuration.

## Actor input object example

```json
{
  "process": "gr",
  "location": "London",
  "locale": "en-US",
  "maxResults": 1000,
  "broaden": false,
  "pages": 3,
  "delay": 1500,
  "cache": "1",
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "location": "London",
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/tripadvisor-restaurants").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 = {
    "location": "London",
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/tripadvisor-restaurants").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 '{
  "location": "London",
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call canadesk/tripadvisor-restaurants --silent --output-dataset

```

## MCP server setup

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

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/9CTR5AIb7oTf36BDX/builds/2S8UVETAt1vom2uuT/openapi.json
