GroundsocialDocs

API · Tripadvisor

GET /tripadvisor/autocomplete

Tripadvisor place suggestions for a partial name: ids, types and links.

RequestGET /v1/tripadvisor/autocomplete
Operation idtripadvisor.autocomplete.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Tripadvisor place suggestions for a partial name: ids, types and links.

Query parameters

NameTypeRequiredDescription
qstringyesThe partial name. Example: pari.
languagestringnoLanguage for names and reviews: en, fr, de-DE, … (default en-US).
limitnumbernoSuggestions, 1-20 (default 10).

Responses

StatusMeaningSchema
200The suggestions.TripadvisorAutocompleteResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No Tripadvisor place or destination like that.Error
429Too many requests. Wait for Retry-After seconds.Error
503Tripadvisor is temporarily unavailable. Retryable; nothing was charged.Error

TripadvisorAutocompleteResponse fields

FieldTypeDescription
querystring
resultsTripadvisorSuggestion[]

Errors use one shape everywhere; see Errors for every code and what to do.