Tripadvisor
Tripadvisor Location Details API
Get one Tripadvisor location in full - rating with the five-bucket review histogram and per-aspect sub-ratings, city ranking, price band, cuisines, meal types, features, address, coordinates, contact details, opening hours, photos and the FIRST PAGE OF REVIEWS - as JSON. Costs 2 credits per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonlocation_idstringTripadvisor location id, 1-500 characters. Accepts 469869, d469869, or a full _Review URL. Required unless url is given - get it from /api/v1/tripadvisor/locations.
Example: 469869
geo_idstringGeo the location sits in. Required when location_id is a bare d-id, because Tripadvisor's detail URL is keyed on the pair.
Example: 30196
categoryenum<string>default:restaurantsListing family: restaurants, hotels or attractions. Match it to the location's own type - it selects which Tripadvisor page is fetched and, on /reviews, how many reviews a page holds.
urlstringFull tripadvisor.com _Review URL, 1-500 characters, as an alternative to the id pair.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tripadvisor.location(location_id="469869", geo_id="30196")
print(results)Response