GET
TripAdvisor Search API
Search for hotels in any destination on TripAdvisor with advanced filtering options.
Overview
Location-Based Search
Search for hotels in a specific geographic area with optional date filters and sorting options.
The TripAdvisor Search endpoint allows you to find hotels in a specific location (city, region, or area) with optional filtering by dates, guest configuration, and various sorting options.
Endpoint URL
GET https://api.stayapi.com/v1/tripadvisor/search
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| geo_id | integer | Required | TripAdvisor geographic area ID (e.g., 293916 for Bangkok) |
| check_in | string | Optional | Check-in date (YYYY-MM-DD) |
| check_out | string | Optional | Check-out date (YYYY-MM-DD) |
| adults | integer | Optional | Number of adult guests (1-8, default: 2) |
| rooms | integer | Optional | Number of rooms (1-4, default: 1) |
| children_ages | array | Optional | List of children ages (e.g., [5, 12]) |
| currency | string | Optional | Currency code (default: "USD") |
| offset | integer | Optional | Pagination offset (default: 0) |
| limit | integer | Optional | Number of results (1-50, default: 30) |
| sort | string | Optional | Sort order (see options below) |
Sort Options
Available sort orders:
BEST_VALUE
Best value for money (default)
TRAVELER_RANKED
Traveler ranking
PRICE_LOW_TO_HIGH
Lowest price first
PRICE_HIGH_TO_LOW
Highest price first
Finding Geographic IDs
Common Geo IDs
Bangkok: 293916, Phuket: 2400063, Rome: 187791, Paris: 187147, London: 186338, New York: 60763
Geographic IDs can be found in TripAdvisor destination URLs:
https://www.tripadvisor.com/Tourism-g293916-Bangkok_Thailand.html
The geo ID is 293916 (the number after "g").
Response Data
Hotel Information
- Hotel name and TripAdvisor location ID
- Rating (out of 5) and review count
- Price range (minimum and maximum per night)
- GPS coordinates (latitude/longitude)
- Property type (HOTEL, RESORT, etc.)
- Address and neighborhood
Pagination
- Use
offsetandlimitinsearch_paramsto paginate - Available filters and sort options returned per request
Request
Response