> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Tripadvisor reviews

> Read a Tripadvisor hotel as JSON with the tripadvisor-reviews parser. $1 per 1,000 calls. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads a Tripadvisor hotel, restaurant or attraction page, and returns a list of reviews as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London_Hotel-London_England.html","formats":[{"type":"json","parser":"tripadvisor-reviews"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London_Hotel-London_England.html",
    formats: [{ type: "json", parser: "tripadvisor-reviews" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London_Hotel-London_England.html",
        "formats": [{"type": "json", "parser": "tripadvisor-reviews"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "1082705333",
          "url": "https://www.tripadvisor.com/ShowUserReviews-g186338-d187591-r1082705333-The_Ritz_London_Hotel-London_England.html",
          "author": {
            "id": null,
            "name": "Example user",
            "handle": "example_user",
            "url": "https://example.com/example_user",
            "avatarUrl": null
          },
          "rating": 5,
          "title": "Great place",
          "text": "Brilliant everything doorman super cool receptionist  bit  moody",
          "publishedAt": "2026-10-21T00:00:00.000Z",
          "likes": 0,
          "response": {
            "text": "Dear G5474DTrichardk,\n\nWe are delighted to read that you enjoyed your experience with us. However, we are sorry to…",
            "publishedAt": "2026-10-22T00:00:00.000Z"
          },
          "subject": {
            "id": "187591",
            "name": "The Ritz London Hotel",
            "url": "https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London_Hotel-London_England.html"
          },
          "ownerReplyAuthor": "General Manager",
          "language": "en",
          "stayMonth": "2026-10",
          "tripType": "friends",
          "subRatings": [
            {
              "name": "Value",
              "rating": 3
            }
          ],
          "authorAddress": "Sotogrande, Spain",
          "authorContributions": 88
        }
      ],
      "cursor": null,
      "page": 1,
      "total": 4965
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `travelerTypes` | Tripadvisor's own Traveler type filter: families, couples, solo, business or friends. Only reviews from these travelers. |
| `months` | Tripadvisor's own Time of year filter: marMay, junAug, sepNov or decFeb. Only reviews written in these months of the year. |
| `sort` | Tripadvisor's own Sort by: mostRecent (Most recent) or detailed (Detailed reviews, ordered by recency and how much they say). |
| `page` | Page number, starting at 1. |

It also takes `language` and `ratings`.

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Tripadvisor hotel, restaurant or attraction page. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Tripadvisor search](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/tripadvisor-search.md)
* [Tripadvisor place](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/tripadvisor-place.md)
* [Google Maps](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.