Reviews of a Tripadvisor attraction API
Recent reviews Tripadvisor features for an attraction (up to 20).
GET /v1/tripadvisor/attraction/reviewsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tripadvisor/attraction/reviews?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, "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 } } }, "reviews": [ { "id": 1086450167, "rating": 5, "title": "Central Park", "text": "I really enjoyed the experience at Central Park. it was Amazing to see the views of the ci…", "publishedDate": "2026-11-23", "originalLanguage": "en", "helpfulVotes": 0, "tripInfo": { "stayDate": "2026-11-30", "tripType": "FAMILY" }, "userProfile": { "route": { "url": "/ClientLink?value=Q2lnXy9Qcm9maWxlL1kxNzg4UUt3aWxscF9IT2E%3D" }, "contributionCounts": { "sumAllUgc": 1 }, "userId": "60DB68B464ED37F37CBC654A0CC3A80C", "displayName": "Will P", "avatar": { "__typename": "MemberProfile_MediaId", "data": { "…": "4 fields" } }, "hometown": { "locationId": null, "fallbackString": null, "location": null } }, "ownerResponse": null, "status": "PUBLISHED", "location": { "name": "Central Park", "locationId": 105127, "parentGeoId": 60763, "absoluteUrl": "https://www.tripadvisor.com/Attraction_Review-g60763-d105127-Reviews-Central_Park-New_York…" }, "locationId": 105127, "ownerResponseId": null, "…": "3 more fields" }, { "id": 1086221075, "rating": 5, "title": "Special day in Central Park", "text": "We had a very special day in Central Park. We passed by the Shakespeare garden, the John L…", "publishedDate": "2026-11-21", "originalLanguage": "en", "helpfulVotes": 0, "tripInfo": { "stayDate": "2026-11-30", "tripType": "COUPLES" }, "userProfile": { "route": { "url": "/ClientLink?value=bHZjXy9Qcm9maWxlL3RoYWlzcmlnb2xvbl8wSTE%3D" }, "contributionCounts": { "sumAllUgc": 128 }, "userId": "F23DF37DC95AEAA6D012F47BDC3D35A3", "displayName": "Thaís Rigolon", "avatar": { "__typename": "MemberProfile_MediaId", "data": { "…": "4 fields" } }, "hometown": { "locationId": 303631, "fallbackString": "303631", "location": { "…": "1 fields" } } }, "ownerResponse": null, "status": "PUBLISHED", "location": { "name": "Central Park", "locationId": 105127, "parentGeoId": 60763, "absoluteUrl": "https://www.tripadvisor.com/Attraction_Review-g60763-d105127-Reviews-Central_Park-New_York…" }, "locationId": 105127, "ownerResponseId": null, "…": "3 more fields" }, "… 18 more" ], "unfiltered_count": 20}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). |
ratingquery | string | Keep only these ratings, comma separated: excellent, very_good, average, poor, terrible. Example: poor,terrible. |
visit_typequery | string | Keep only these trip types, comma separated: families, couples, solo, business, friends. |
search_reviews_keywordquery | string | Keep only reviews whose title or text contains this. |
sort_byquery | "most_recent" | "detailed_reviews" | most_recent (default) or detailed_reviews (longest first). One of most_recent, detailed_reviews. |
sincequery | string | Only reviews published on or after this date. |
untilquery | string | Only reviews published on or before this date. |
Response fields
200 with a TripadvisorReviewsResponse, in Tripadvisor’s own JSON.
| Field | Type | Description |
|---|---|---|
location | TripadvisorLocationSummary | |
reviews | TripadvisorReview[] | |
unfiltered_count | number |
Status codes
| Status | Meaning |
|---|---|
200 | The place and its featured reviews. |
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.