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

# TripAdvisor Hotels API

> TripAdvisor hotels: contact, address, coordinates, rating breakdown, ranking, class, room count, amenities, price range, OTA offers and photos.

`POST /v1/data/tripadvisor/hotels/run`

**Pricing:** $0.002 per hotel ($2.00 per 1,000). Setting `maxPhotosPerPlace` above 0 adds \$0.0005 per delivered photo.

## Ways to call it

* **Search**: set `query` (optional: `maxResults`, `language`, `currency`, `includeTags`, `checkInDate`, `checkOutDate`, `maxPhotosPerPlace`, `photosType`)
* **URL**: set `startUrls` (optional: `language`, `currency`, `includeTags`, `checkInDate`, `checkOutDate`, `maxPhotosPerPlace`, `photosType`)

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**query** `string`

A location name or keyword to search, e.g. 'Paris' or 'Lisbon hotels'. Use English place names for best coverage. (By Search mode.)

**startUrls** `string`

A TripAdvisor search results page or hotel page URL to extract hotels from. (By URL mode.)

Format e.g. `https://www.tripadvisor.com/hotels-g189158-lisbon_lisbon_district_central_portugal-hotels.html`.

**maxResults** `integer`

Number of hotels to return. Use 0 for all.

**language** `string` (default: en)

Language for the listing data.

**currency** `string` (default: USD)

Currency for prices.

**includeTags** `boolean` (default: true)

Pull review category tags (e.g. "Family-friendly", "Romantic").

**checkInDate** `date`

Check-in date for room pricing and offers.

Use together with `checkoutdate`.

**checkOutDate** `date`

Check-out date for room pricing and offers.

Use together with `checkindate`.

**maxPhotosPerPlace** `integer` (default: 0)

Photos to fetch per hotel. Use 0 for none. Billed as an add-on per delivered photo.

**photosType** `string` (default: fromEveryone)

Which photo source to pull from.

Allowed values: `fromEveryone` (From Everyone), `fromManagement` (From Management), `fromTravelers` (From Travelers).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/tripadvisor/hotels/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "query": "Lisbon",
    "maxResults": 10,
    "language": "en",
    "currency": "USD"
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/tripadvisor/hotels/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "query": "Lisbon",
    "maxResults": 10,
    "language": "en",
    "currency": "USD"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/tripadvisor/hotels/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "query": "Lisbon",
  "maxResults": 10,
  "language": "en",
  "currency": "USD"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one hotel, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `id` | ID | text |
| `name` | Name | text |
| `subcategories` | Subcategories | array |
| `tripadvisorUrl` | TripAdvisor URL | url |
| `description` | Description | text |
| `address` | Address | object |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |
| `nearbyTransit` | Nearby Transit | object\_array |
| `phone` | Phone | phone |
| `email` | Email | email |
| `website` | Website | url |
| `rating` | Rating | rating |
| `reviews` | Reviews | number |
| `ratingBreakdown` | Rating Breakdown | object |
| `reviewTags` | Review Tags | object\_array |
| `categoryRatingBreakdown` | Category Rating Breakdown | object\_array |
| `rank` | Rank | number |
| `rankOutOf` | Rank Out Of | number |
| `photos` | Photos | array |
| `photoCount` | Photo Count | number |
| `hotelClass` | Hotel Class | text |
| `rooms` | Rooms | number |
| `priceRange` | Price Range | text |
| `priceLevel` | Price Level | text |
| `amenities` | Amenities | array |
| `hotelOffers` | Hotel Offers | object\_array |
| `roomTips` | Room Tips | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "tripadvisor/hotels",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "reviews": 3356,
      "rating": 4.9,
      "amenities": [
        "Internet",
        "Room service"
      ],
      "hotelOffers": [
        {
          "vendor": "Hotels.com",
          "pricePerNight": null,
          "priceText": "$189",
          "originalPrice": null,
          "tax": null
        },
        {
          "vendor": "Booking.com",
          "pricePerNight": null,
          "priceText": "$200",
          "originalPrice": null,
          "tax": null
        }
      ],
      "photos": [],
      "priceLevel": "$$$$",
      "name": "Hotel Da Baixa",
      "email": "geral@hoteldabaixa.com",
      "reviewTags": [
        {
          "tag": "perfect location",
          "reviews": 46
        },
        {
          "tag": "free mini bar",
          "reviews": 12
        }
      ],
      "categoryRatingBreakdown": [
        {
          "category": "Location",
          "score": 4.9786186,
          "roundedScore": 5
        },
        {
          "category": "Rooms",
          "score": 4.8462257,
          "roundedScore": 4.8
        }
      ],
      "roomTips": [
        {
          "text": "Private transfers can't get directly to the front door.",
          "rating": "5",
          "date": "2026-08-15T15:11:44-04:00"
        },
        {
          "text": "Try to book a room overlooking street as it has a lovely atmosphere.\nAlso, make sure you get the breakfast included, as it is delicious.",
          "rating": "5",
          "date": "2026-08-03T07:07:06-04:00"
        }
      ],
      "priceRange": "$226 - $526",
      "rank": 1,
      "rooms": 66,
      "tripadvisorUrl": "https://www.tripadvisor.com/Hotel_Review-g189158-d13402042-Reviews-Hotel_Da_Baixa-Lisbon_Lisbon_District_Central_Portugal.html",
      "phone": "+351 21 012 7450",
      "rankOutOf": "373",
      "id": "13402042",
      "photoCount": 1821,
      "description": "Located in the heart of the city of lisbon - rua da prata - between praca do comercio and praca do rossio, hotel da baixa gets its name from lisbon's most ch...",
      "longitude": -9.137548,
      "nearbyTransit": [
        {
          "name": "Baixa/Chiado",
          "address": "R. do Crucifixo 83, Lisbon 1100-548, Portugal",
          "distance": 0.13262375610682078,
          "lines": [
            "Blue",
            "Green"
          ]
        },
        {
          "name": "Rossio",
          "address": "Rua do Amparo 1B, Lisbon 1100-201, Portugal",
          "distance": 0.13729928086962787,
          "lines": [
            "Green"
          ]
        }
      ],
      "subcategories": [
        "Hotel"
      ],
      "ratingBreakdown": {
        "oneStar": 0,
        "twoStar": 6,
        "threeStar": 20,
        "fourStar": 139,
        "fiveStar": 3191
      },
      "hotelClass": "4.0"
    }
  ]
}
```


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