Get a Tripadvisor cruise ship API
A cruise ship on Tripadvisor: rating, review count, description, photo.
GET /v1/tripadvisor/cruiseBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tripadvisor/cruise?url=%2FCruise_Review-d24948909-Reviews-Wonder_of_the_Seas",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "location": { "locationId": 24948909, "detail": { "info": { "localizedName": "Wonder of the Seas", "placeType": "SHIP", "parentGeoId": null, "latitude": null, "longitude": null, "locationDescription": null, "primaryRoute": null, "isGeo": false, "streetAddress1": null, "streetAddress2": null, "parentGeo": null, "contextualNameWithParent": "Wonder of the Seas", "contextualConciseParentHierarchy": "", "cuisines": [], "price": [], "starRating": [], "attractionCategory": [], "attractionTags": [] } }, "reviewRatingAndCount": { "responseData": { "rating": 3.5, "count": 127 } }, "__typename": "Content__LocationNode", "primaryMedia": { "shape": "NORMAL", "photo": { "id": 748747934, "photoSizes": [ { "url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2c/a0/fc/9e/caption.jpg?w=100&h=100&s=1", "width": 0, "height": 0 }, { "url": "https://media-cdn.tripadvisor.com/media/photo-t/2c/a0/fc/9e/caption.jpg", "width": 50, "height": 50 }, "… 6 more" ], "photoSizeDynamic": { "urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2c/a0/fc/9e/caption.jpg?w={width}&h={height}&s=1", "maxWidth": 4000, "maxHeight": 1868 } } }, "tcAwardForActiveYear": { "awardType": null, "year": null } }, "summary": { "locationId": 24948909, "url": "/Cruise_Review-d24948909-Reviews-Royal_Caribbean_International_Wonder_of_the_Seas", "name": "Wonder of the Seas", "placeType": "SHIP", "reviewSummary": { "rating": 3.5, "count": 127 }, "latitude": null, "longitude": null, "locationV2": { "tags": { "tags": [] } }, "thumbnail": { "photoSizeDynamic": { "urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2c/a0/fc/9e/caption.jpg?w={width}&h={height}&s=1", "maxWidth": 4000, "maxHeight": 1868 } } }}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | The 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. |
languagequery | string | Language for names and reviews: en, fr, de-DE, … (default en-US). |
Response fields
200 with a TripadvisorCruiseResponse, in Tripadvisor’s own JSON.
| Field | Type | Description |
|---|---|---|
location | TripadvisorContentLocation | |
summary | TripadvisorLocationSummary |
Status codes
| Status | Meaning |
|---|---|
200 | The ship. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Tripadvisor place or destination like that. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Tripadvisor is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Tripadvisor is a trademark of its owner. We are not affiliated with or endorsed by it.