TripAdvisor Hotels API & Data Access

API access to TripAdvisor hotels by location id, check-in date, number of nights and api key.


Unofficial api.tripadvisor.com /api/internal/1.17/meta_hac/{{location_id}} | 👥 Contributors: steve

Inputs

Location ID location_id Required

Location ID from TripAdvisor Locations to show hotels and deals for.

E.g. 60763
Check-in Date checkin_date Default {{ 0.days.ago:yyyy-MM-dd }}

Date to check in to the hotel

Number of Nights num_nights Default 1

Number of nights to stay

API Key api_key Default 3c7beec8-846d-4377-be03-71cae6145fdc

Trip Advisor’s API access key embedded in its iOS mobile app. You’ll need to intercept this value from your iOS TripAdvidsor app - we make this very easy to do via proxy.

Notes

Suggest Edit

Raw data for hotels, rankings and deals to get the lowest price from TripAdvisor

Articles

Endpoint

POST https://api.tripadvisor.com/api/internal/1.17/meta_hac/{{location_id}} Suggest New Query Parameter
Body
adults=2&autobroaden=true&base_geocodes_on=citymaps&bookable=true&checkin={{checkin_date}}&commerceonly=false&currency=USD&default_dates=true&devicetype=mobile&dieroll=22&filtercounts=true&from=MobileHotelSearch&ip=infer&lang=en_US&limit=30&lod=list&mcid=0&newrequest=true&nights={{num_nights}}&order=asc&prefersaves=true&rooms=1&roomtype=lowest_price&show_review_highlights=true&show_seo_terms=true&showcommerce=true&sort=best_nearby&subcategory=hotel&tp=MobileHotelSearch
Headers
Accept
application/json
Content-Type
application/x-www-form-urlencoded; charset=utf-8
Accept-Language
en-US;q=1
Accept-Encoding
gzip, deflate
User-Agent
Mozilla/5.0 (iPod touch; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 Mobile iPhone TAiApp TARX13 taAppVersion=171120011 osName='iOS' deviceName=iPod7,1 osVer=10.2 taAppVersionString=23.8 appLang=en_US mcc=null mnc=null connection=wifi
X-TripAdvisor-API-Key
{{api_key}}