Reviews of a Tripadvisor restaurant API
Recent reviews Tripadvisor features for a restaurant (up to 20).
GET /v1/tripadvisor/restaurant/reviewsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tripadvisor/restaurant/reviews?url=%2FRestaurant_Review-g60763-d457808-Reviews-Daniel-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": 457808, "url": "/Restaurant_Review-g60763-d457808-Reviews-Daniel-New_York_City_New_York.html", "name": "Daniel", "placeType": "EATERY", "reviewSummary": { "rating": 4.7, "count": 3452 }, "latitude": 40.766827, "longitude": -73.96756, "locationV2": { "tags": { "tags": [ "…" ] } }, "thumbnail": { "photoSizeDynamic": { "urlTemplate": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2e/f1/29/51/restaurant-d…", "maxWidth": 5472, "maxHeight": 3648 } } }, "reviews": [ { "id": 1086462541, "rating": 5, "title": "There's a reason Daniel is a top NYC restaurant for 30 years", "text": "A completely enjoyable evening of fantastic service, impeccably prepared and pre…", "publishedDate": "2026-11-23", "originalLanguage": "en", "helpfulVotes": 0, "tripInfo": { "stayDate": "2026-10-31", "tripType": "FAMILY" }, "userProfile": { "route": { "…": "1 fields" }, "contributionCounts": { "…": "1 fields" }, "userId": "2F97800E69642C608109F8061256A2F6", "displayName": "ORD-SAN", "avatar": { "…": "2 fields" }, "hometown": { "…": "3 fields" } }, "ownerResponse": null, "…": "7 more fields" }, "… 19 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.