API · Tripadvisor
GET /tripadvisor/search
Search Tripadvisor places (hotels, restaurants, attractions, cities, ships) with full details.
| Request | GET /v1/tripadvisor/search |
| Operation id | tripadvisor.search.all |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Tripadvisor places (hotels, restaurants, attractions, cities, ships) with full details.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | What to search for. Example: Plaza Hotel. |
location | string | no | The destination: a city or region name (the first match is used), a geo id (60763 or g60763), or a Tripadvisor link to it. Example: New York City. |
language | string | no | Language for names and reviews: en, fr, de-DE, … (default en-US). |
limit | number | no | Results, 1-20 (default 10). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The matching places. | TripadvisorSearchResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Tripadvisor place or destination like that. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Tripadvisor is temporarily unavailable. Retryable; nothing was charged. | Error |
TripadvisorSearchResponse fields
| Field | Type | Description |
|---|---|---|
query | string | |
scope_geo_id | number | null | |
results | TripadvisorLocationInformation[] |
Errors use one shape everywhere; see Errors for every code and what to do.