Tripadvisor
Tripadvisor Location Lookup API
START HERE. This is the entry point that turns a place or business NAME into the Tripadvisor geo_id / location_id pair every other Tripadvisor endpoint is keyed by - those ids exist only inside Tripadvisor's own URLs, so without this call a caller holding a name has no way in. Returns up to 20 typeahead rows with type, name, geo_id, location_id, coordinates and URL, 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/jsonquerystringrequiredPlace or business name to resolve, 1-120 characters. Works for cities and regions as well as individual restaurants, hotels and attractions.
Example: Austin
limitintegerdefault:12Rows to return, 1-20. This sizes the response only - there is no pagination on this endpoint.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tripadvisor.locations("Austin")
print(results)Response