Tripadvisor Hotels API
The hotels in a city or region, ranked as the site ranks them, page after page.
GET /v1/tripadvisor/hotels1 credit Failed requests are free A not-found answer is still charged
About this endpoint
GET /v1/tripadvisor/hotels lists the hotels in a city or region. geoId is the city's geo id: the g number in a Tripadvisor address, or the locationId of a geo match from search (186338 is London).
data.totalCount counts the hotels as the site does. The site's list stops at 10,000 places, and data.truncated is true when paging ends before totalCount. data.places holds this page's, in the site's own order with sponsored places left out. Each carries locationId (pass it to the hotel and hotel reviews routes), name, url, rating, reviewCount, ranking (#340 of 1,219 hotels in London), coordinates, address, phone, description, image and award. Pass page.nextCursor back as cursor while page.hasMore is true.
Price
From $1.35 per 1,000 requests
1 credit per request. Failed requests are free.
- Scale pack
- $1.64 / 1,000
- Growth pack
- $2.36 / 1,000
The lowest rate is on annual plans; packs are pay as you go.
Example request
Send your API key in the x-api-key header. New accounts get 100 free credits, no card needed.
Example response
A 200 response. Live responses have the same shape with current data.
Tripadvisor Hotels API FAQ
Where do I find a city's geo id?
It is the g number in any Tripadvisor address for the city (Hotels-g186338-London… is 186338), or the locationId of a geo match from GET /v1/tripadvisor/search?type=geo.
What order are the hotels in?
The site's own default order, as a visitor sees it, 30 a page. Sponsored places are left out, so a page can hold a few fewer.
What does a geo id that does not exist return?
HTTP 200 with data.lookupStatus not_found and an empty list. Check lookupStatus before storing rows.
How many credits does a call cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
Other Tripadvisor endpoints
- SearchGET /v1/tripadvisor/search
- Place by URLGET /v1/tripadvisor/place
- Restaurants in a cityGET /v1/tripadvisor/restaurants
- Attractions in a cityGET /v1/tripadvisor/attractions
- Attraction types in a cityGET /v1/tripadvisor/attractions/types
- Cruise searchGET /v1/tripadvisor/cruises
- Cruise shipGET /v1/tripadvisor/cruise-ships/{locationId}
- Cruise ship reviewsGET /v1/tripadvisor/cruise-ships/{locationId}/reviews