Get a Tripadvisor attraction API
A Tripadvisor attraction: categories, rating, description, address, visit length, tours.
GET /v1/tripadvisor/attractionBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tripadvisor/attraction?url=%2FAttraction_Review-g60763-d105127-Reviews-Central_Park-New_York_City_New_York.html",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "location": { "locationId": 105127, "detail": { "info": { "localizedName": "Central Park", "placeType": "ATTRACTION", "parentGeoId": 60763, "latitude": 40.766983, "longitude": -73.979004, "locationDescription": "For more than 150 years, visitors have flocked to Central Park's 843 green acres in the he…", "isGeo": false, "streetAddress1": "86th St Transverse", "streetAddress2": "Between Fifth Avenue and Central Park West", "parentGeo": { "locationId": 60763, "detail": { "…": "1 fields" } }, "contextualNameWithParent": "Central Park, New York", "contextualConciseParentHierarchy": "New York City, New York", "cuisines": [], "price": [], "…": "4 more fields" } }, "reviewRatingAndCount": { "responseData": { "rating": 4.7, "count": 134505 } }, "__typename": "Content__LocationNode", "primaryMedia": { "shape": "NORMAL", "photo": { "id": 801425483, "photoSizes": [ { "…": "3 fields" }, { "…": "3 fields" }, "… 7 more" ], "photoSizeDynamic": { "urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2f/c4/c8/4b/caption.jpg?w={width}&…", "maxWidth": 1536, "maxHeight": 2048 } } }, "tcAwardForActiveYear": { "awardType": "BOTB", "year": 2026 } }, "summary": { "locationId": 105127, "url": "/Attraction_Review-g60763-d105127-Reviews-Central_Park-New_York_City_New_York.html", "name": "Central Park", "placeType": "ATTRACTION", "reviewSummary": { "rating": 4.7, "count": 134505 }, "latitude": 40.766983, "longitude": -73.979004, "locationV2": { "tags": { "tags": [ { "…": "1 fields" }, { "…": "1 fields" }, "… 3 more" ] } }, "thumbnail": { "photoSizeDynamic": { "urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2f/c4/c8/4b/caption.jpg?w={width}&…", "maxWidth": 1536, "maxHeight": 2048 } } }, "tickets": { "recommendedVisit": "2-3 hours", "minTicketPriceInfo": null, "productCount": 139, "attractionProductListUrl": { "webLinkUrl": "/ClientLink?value=YUkxXy9BdHRyYWN0aW9uX1Byb2R1Y3RzLWc2MDc2My1kMTA1MTI3LUNlbnRyYWxfUGFyay1O…" } }}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). |
currencyquery | string | Currency for prices (default USD). |
Response fields
200 with a TripadvisorAttractionResponse, in Tripadvisor’s own JSON.
| Field | Type | Description |
|---|---|---|
location | TripadvisorContentLocation | |
summary | TripadvisorLocationSummary | |
tickets | object | null |
Status codes
| Status | Meaning |
|---|---|
200 | The attraction. |
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.