# TripAdvisor API (`epctex/tripadvisor-api`) Actor

Tripadvisor reviews over a simple HTTP API: get paginated reviews of any place by place ID, with optional filters for date, rating and language. Always-on Standby Actor with JSON responses in seconds.

- **URL**: https://apify.com/epctex/tripadvisor-api.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.70 / 1,000 place reviews

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 API

Tripadvisor API is an Apify actor that retrieves paginated reviews of a place from Tripadvisor.com by place ID, with optional filters for date, rating and language. It costs $0.005 per successful request.

Tripadvisor API exposes 1 endpoint, accepts up to 6 path/query parameters on it, and bills one pay-per-event charge per successful request — the event depends on which endpoint you call — with no subscription and no monthly minimum on paid plans.

### How It Works

Tripadvisor API runs as an [Apify Standby Actor](https://docs.apify.com/platform/actors/running/standby): an always-on HTTP server, not a classic Actor run. There is no run to start and no dataset to poll — you send a plain `GET` request to an endpoint and the JSON comes back in the response itself.

| | Classic dataset Actor | Tripadvisor API (Standby) |
| --- | --- | --- |
| How you call it | Start a run, wait, then read the dataset | One `GET` request |
| Result | Items accumulate in a dataset | JSON in the HTTP response, synchronously |
| Billing | Per run or per dataset item | Per successful request, by endpoint |

Authenticate with your Apify API token, either as an `Authorization: Bearer <token>` header or a `?token=<token>` query parameter. The token is only used to identify and bill the caller — it is **never forwarded** to the upstream data service.

### Who Uses Tripadvisor API?

- **Hospitality and hotel teams** read the reviews of their own property or a competitor's (`/place/{id}/reviews`), including the `rating`, `additionalRatings` and `ownerResponse` fields.
- **Reputation and sentiment tools** pull review `text`, `title` and `rating`, filtered by `since` date or by `ratings`, to track how guests feel over time.
- **Multilingual analysis pipelines** use the `languages` filter to get reviews delivered in one language, with `translationType` and `originalLanguage` showing which ones were machine-translated.
- **Travel research and market analysis tools** use `tripInfo` (`stayDate`, `tripType`) and `userProfile.hometown` to see when guests stayed and where they come from.
- **AI agents and chatbots** call it directly as a tool: plain JSON over HTTP with a published OpenAPI spec, so no Tripadvisor account is required.

### Endpoints & Parameters

All endpoints are `GET`. Base URL: `https://epctex--tripadvisor-api.apify.actor` — see the note under [Request Example](#request-example).

#### Reviews

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/place/{id}/reviews` | `id` | string (path) | Id of the place, e.g. `1469038` (1 to 32 characters) | required |
| | `since` | string | Since date for the reviews, expected as `YYYY-MM-DD` (1 to 10 characters). Other strings are not rejected; they are forwarded to Tripadvisor as-is | — |
| | `page` | integer | Page for the pagination, 1 or greater | `1` |
| | `ratings` | string, repeatable | Ratings you want to filter, e.g. `ratings=5&ratings=4` | — |
| | `languages` | string, repeatable | Return the reviews Tripadvisor serves in these languages, e.g. `en`. Tripadvisor applies only the first value and ignores the rest | — |
| | `locale` | string | Tripadvisor domain the reviews are read from, e.g. `tr` reads from tripadvisor.com.tr (at most 10 characters). Supported values are `fr`, `de`, `it`, `es`, `pt`, `nl`, `sv`, `da`, `no`, `tr`, `ru`, `he`, `th`, `ko`, `zh`, `ja`, `el`, `vi`, `id` and `ar`; any other value falls back to the default domain | default domain |

A page holds up to 15 reviews, and `totalCount` reports how many reviews match the applied filters, so the last page is the one where `page * 15` reaches `totalCount`.

### Request Example

> **Standby base URL:** Apify Standby actors are reachable at `https://{apify-username}--{actor-name}.apify.actor`. This actor is published under the epctex account, so its Standby base URL is `https://epctex--tripadvisor-api.apify.actor`, used in the examples below.

Get the first page of a place's reviews:

```bash
curl "https://epctex--tripadvisor-api.apify.actor/place/1469038/reviews" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `place-reviews` on success.

Get 5-star reviews since a date, delivered in English, from the Turkish Tripadvisor domain:

```bash
curl -G "https://epctex--tripadvisor-api.apify.actor/place/1469038/reviews" \
  --data-urlencode "since=2024-01-01" \
  --data-urlencode "page=1" \
  --data-urlencode "ratings=5" \
  --data-urlencode "languages=en" \
  --data-urlencode "locale=tr" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `place-reviews` on success.

### Pricing Model

Tripadvisor API bills one pay-per-event charge per successful request, based on the endpoint called — regardless of how many reviews the response contains. A request charges only the called endpoint's event, once.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/place/{id}/reviews` | `place-reviews` | $0.005 |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Fetch 1 page of a place's reviews | 1 | $0.005 |
| Read the first 5 pages (up to 75 reviews) | 5 | $0.025 |
| Read 10 pages (up to 150 reviews) | 10 | $0.05 |
| Read the first page of 20 different places | 20 | $0.10 |
| 100 review pages | 100 | $0.50 |
| 1,000 review pages | 1,000 | $5.00 |

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Successful response, contains `data` | Yes — the called endpoint's event |
| `400` | Bad request — a param failed validation | No |
| `403` | Standby access not available on your plan, or your access was restricted by the developer | No |
| `404` | Endpoint not matched, or nothing found upstream | No |
| `429` | Monthly free-request limit reached | No |
| `502` | Upstream (INFRA) request failed | No |
| `503` | Plan/quota could not be checked right now | No |

**Cost optimization tips:** don't retry on `400`/`403`/`404`/`429` — they're not charged but they also won't succeed on retry without changing the request; the endpoint is billed per page, not per review, so request only the pages you need and use the `since` and `ratings` filters to narrow results.

#### Demo Mode

Apify Free-plan users can try Tripadvisor API without a subscription, capped at **10 requests per calendar month**. Once that limit is used up, every call answers `429` ("You have used all free requests for this month. Upgrade your Apify plan to keep going.") until the next month. A paid Apify plan removes the monthly cap entirely.

### Output Example

`GET /place/{id}/reviews` returns `totalCount` and a `reviews` array (one review shown, trimmed to the main fields):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "totalCount": 3929,
    "reviews": [
      {
        "id": 939698009,
        "createdDate": "2024-02-25",
        "publishedDate": "2024-02-25",
        "rating": 5,
        "publishPlatform": "OTHER",
        "translationType": "MACHINE",
        "ownerResponse": {
          "id": 12378,
          "publishedDate": "2024-02-26",
          "language": "en",
          "text": "Thank you",
          "username": "Daniele",
          "connectionToSubject": "MANAGER"
        },
        "tripInfo": { "stayDate": "2024-02-29", "tripType": "NONE" },
        "helpfulVotes": 0,
        "labels": ["SOLO"],
        "title": "Great overnight stay and good breakfast",
        "language": "en",
        "originalLanguage": "en",
        "text": "We stayed one night with",
        "username": "Victoria K",
        "absoluteUrl": "https://www.tripadvisor.com/ShowUserReviews-g187801-d1469038-r939698009-Hotel_Cosmopolitan_Bologna-Bologna_Province_of_Bologna_Emilia_Romagna.html",
        "location": {
          "locationId": 1469038,
          "placeType": "ACCOMMODATION",
          "name": "Hotel Cosmopolitan Bologna"
        },
        "additionalRatings": [{ "rating": 5, "ratingLabel": "Value" }],
        "userProfile": {
          "isVerified": false,
          "contributionCounts": { "sumAllUgc": 5, "helpfulVote": null },
          "displayName": "Victoria K",
          "username": "victoriak",
          "hometown": { "locationId": 187801, "fallbackString": "Bologna, Italy" }
        }
      }
    ]
  }
}
```

Each review also carries `photos`, `url`, `locationId`, `mcid` and further fields; see `.actor/openapi.json` for the full schema.

### Limitations

- **Reviews only.** The single endpoint returns the reviews of a place; there is no endpoint for place details or search.
- **`languages` applies only the first value.** Tripadvisor ignores the rest, and the result is not limited to reviews originally written in the requested language — other reviews come back machine-translated, with `translationType` set to `MACHINE` and `originalLanguage` holding the original language.
- **`locale` does not translate anything on its own.** It only selects the Tripadvisor domain; machine translation follows the `languages` filter. Unsupported values fall back to the default domain.
- **`since` is not validated as a date.** Only its length (1 to 10 characters) is checked; the value is forwarded to Tripadvisor as-is.
- **Some fields are always null.** `provider`, `original`, `roomTip`, `location.currentUserOwnerStatus`, `location.parentGeoId` and `userProfile.contributionCounts.helpfulVote` are not exposed by Tripadvisor for reviews.
- **Page-number pagination, up to 15 reviews per page.** Each page is a separate, separately-charged request.
- **Per-endpoint pricing, not per-field pricing.** Every request to an endpoint charges that endpoint's fixed event regardless of how many reviews the page contains.

### Which Tripadvisor API Questions Come Up Most Often?

#### Does Tripadvisor API need a Tripadvisor account or API key?

No. You only need an Apify API token.

#### How much does it cost?

It costs $0.005 per successful request to `/place/{id}/reviews` (see the [Pricing Model](#pricing-model)). Failed, invalid, rejected or not-found responses are never charged, and a request never charges more than one event.

#### Am I charged per review, or per request?

Per request. A full page of reviews costs the same as a page with a single review.

#### How do I get more than one page of reviews?

Increase the `page` query parameter (default `1`) until `page * 15` reaches `totalCount`. Each page is a separate, separately-charged request.

#### How do I find the place ID?

The `id` is the place id, for example `1469038` in the examples. In the sample output, the same number appears as `location.locationId` and inside the review `url` (the `d1469038` segment).

#### What happens when I hit the free-plan limit?

Every call returns `429` with "You have used all free requests for this month. Upgrade your Apify plan to keep going." until the next calendar month, or until you move to a paid Apify plan.

#### Why did my request return `403`?

Either Standby access isn't available on your current Apify plan, or your access to this Actor has been specifically restricted by its developer.

#### Can I retry a `502` or `503`?

Yes. `502` means the request to the upstream data service failed; `503` means your plan/quota couldn't be checked. Neither is charged, and both are safe to retry after a short delay.

#### Can I get reviews in a specific language?

Use the `languages` filter, e.g. `languages=en`. Reviews not written in that language come back machine-translated, flagged by `translationType: "MACHINE"`.

#### Can I use this from an AI agent or bot?

Yes. It's a plain HTTP JSON API with a published OpenAPI spec, so it fits LLM tool calls, bots, backends, and any no-code tool that can make HTTP requests.

### Contact

Tripadvisor API is published by epctex. Visit [epctex.com](https://epctex.com) to see all available products. For custom integrations, reach out through the chat box on epctex.com. For support, contact business@epctex.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/tripadvisor-api").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 = {}

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

```

## MCP server setup

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

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/fv2rzP0pcd4tTCCcc/builds/VNOos3vuNQP2G3ZBk/openapi.json
