Tripadvisor Search

Docs ↗
https://api.sandbase.ai/v1/api/tripadvisor/search

Search Tripadvisor hotels, restaurants, attractions and places by keyword.

Price
$0.0001USD / call
Method
POST
Response
JSON
Parameters
1 required · 9 optional
100 free calls / dayFirst 100 calls per day free (shared per organization) · Resets at 00:00 UTC. Pay per call after that.

Playground

Input
Search text, 1 to 500 characters.
Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
Lowercase language code with an optional uppercase country, such as en or en-US.
Tripadvisor geography ID to search within.
Search center latitude from -90 through 90. Requires lon.
Search center longitude from -180 through 180. Requires lat.
Restrict results to one entity type. Allowed values: all, accommodation, attraction, attraction_product, eatery, geo.
Result offset from 0 through 10,000. Offsets and positions count any leading exact match.
Maximum number of search_results, 1 through 30, including any leading exact match.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

Tripadvisor Search API

Search Tripadvisor hotels, restaurants, attractions and places by keyword.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tripadvisor/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "hotels in Austin Texas"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
qstringYesSearch text, 1 to 500 characters.
geo_idintegerNoTripadvisor geography ID to search within.
latnumberNoSearch center latitude from -90 through 90. Requires lon.
localestringNoLowercase language code with an optional uppercase country, such as en or en-US.
lonnumberNoSearch center longitude from -180 through 180. Requires lat.
numintegerNoMaximum number of search_results, 1 through 30, including any leading exact match.
place_typestringNoRestrict results to one entity type.
startintegerNoResult offset from 0 through 10,000. Offsets and positions count any leading exact match.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater t
tripadvisor_domainstringNoSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.

Pricing

Flat price per call. Failed calls are not charged.

Explore more

Related APIs

All APIs
APIPriceResponse
Tripadvisor$0.0001 per callJSON
Tripadvisor$0.0001 per callJSON

Questions

FAQ

How do I use the Tripadvisor Search API?

Send a POST request to https://api.sandbase.ai/v1/api/tripadvisor/search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Tripadvisor Search API cost?

$0.0001 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Tripadvisor Search API accept?

Required: q (string). Optional: tripadvisor_domain (string), locale (string), geo_id (integer), lat (number), lon (number) and place_type (one of all, accommodation, attraction, attraction_product, eatery, geo) and 3 more. The Parameters table and the Playground on this page list every field.

What does the Tripadvisor Search API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a Tripadvisor developer account or API key?

No. Tripadvisor Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Tripadvisor API access separately.