GroundsocialDocs

API · Tripadvisor

GET /tripadvisor/hotels

Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.

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

Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.

Query parameters

NameTypeRequiredDescription
qstringyesThe 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.
sort_by"BEST_VALUE" | "RANKED" | "PRICE_LOW_TO_HIGH" | "DISTANCE"noOrder (default BEST_VALUE). One of BEST_VALUE, RANKED, PRICE_LOW_TO_HIGH, DISTANCE.
price_minnumber | nullnoLowest nightly price.
price_maxnumber | nullnoHighest nightly price.
star_rating_min"0" | "1" | "2" | "3" | "4" | "5" | "any"noMinimum hotel class in stars. One of 0, 1, 2, 3, 4, 5, any.
review_score_min"3" | "4" | "5" | "any" | "3.5" | "4.5"noMinimum traveler rating. One of 3, 4, 5, any, 3.5, 4.5.
property_type"any" | "hotel" | "resort" | "apartment" | "villa" | "hostel" | "guest_house" | "bed_and_breakfast"noKind of property. One of any, hotel, resort, apartment, villa, hostel, guest_house, bed_and_breakfast.
currencystringnoCurrency for prices (default USD).
afterstringnoCursor: the previous page’s pagination.next_cursor.

Responses

StatusMeaningSchema
200A page of hotels.TripadvisorHotelsResponse
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

TripadvisorHotelsResponse fields

FieldTypeDescription
geoobject
resultsobject[]
totalnumber | null
paginationTripadvisorPagination

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