GroundsocialDocs

API · Tripadvisor

GET /tripadvisor/hotel

A Tripadvisor hotel: rating, sub-ratings, amenities, price range, contact, description.

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

A Tripadvisor hotel: rating, sub-ratings, amenities, price range, contact, description.

Query parameters

NameTypeRequiredDescription
urlstringyesThe place: a Tripadvisor link or its path (/Hotel_Review-g60763-d93437-Reviews-…html), d93437, or the location id. Example: /Hotel_Review-g60763-d93437-Reviews-Hotel_Edison_Times_Square-New_York_City_New_York.html.
languagestringnoLanguage for names and reviews: en, fr, de-DE, … (default en-US).
currencystringnoCurrency for prices (default USD).

Responses

StatusMeaningSchema
200The hotel.TripadvisorHotelResponse
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

TripadvisorHotelResponse fields

FieldTypeDescription
locationTripadvisorContentLocation
hotelobject
hotelInformationobject | null
amenitiesobject | null
priceRangeobject | null
nearbyLocationsobject | null

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