Grubhub API endpoint
Returns one restaurant's customer reviews plus its 1-5 star rating histogram. Each review carries the star rating, the written body, the reviewer's display name and how many reviews they have written, the review date, Grubhub's own sentiment classification, the diner type, and the specific menu items the review is attached to -- Grubhub ties each review to what the diner actually ordered. sort accepts `timeCreated_desc` (most recent, the default) and `ratingValue_desc` (highest rated). Note the written-review corpus and the headline rating shown in search are separate systems upstream, so a restaurant can report a large rating count in search while returning few or no written reviews here.
/grubhub/restaurant/reviewsQuery parameters:
restaurant_id (required) — Grubhub's numeric restaurant id, e.g. 6238960.page_size (optional, default 20, max 50) — reviews per page.page (optional, default 1) — 1-based page number.sort (optional, default timeCreated_desc) — one of timeCreated_desc (most recent), ratingValue_desc (highest rated).Note the written-review corpus and the headline rating shown in /api/v1/grubhub/search are separate systems upstream, so a restaurant can report a large rating count in search while returning few or no written reviews here. That is real upstream behaviour, not an error.
Response includes restaurant_id, reviews[], total_count, total_pages, page, restaurant_score, rating_count, star_breakdown, available_sorts[], source_url, and fetched_at. Each review has review_id, rating, text, author_name, created_at, sentiment, diner_type, reviewer_review_count, and items[].
| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| review_id | 20 | |
| rating | 20 | 1 to 5, median 5 |
| text | 20 | |
| author_name | 20 | |
| created_at | 20 | 2025-07-22 to 2026-10-06 |
| sentiment | 20 | |
| diner_type | 20 | |
| reviewer_review_count | 20 | 1 to 45, median 1 |
| items | 20 | median 2 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| restaurant_id | string | Yes | Grubhub's numeric restaurant id, from /grubhub/search | 6238960 | |
| page_size | integer | No | Reviews per page, 1-50 (default 20) | 20 | |
| page | integer | No | 1-based page number (default 1) | 1 | |
| sort | string | No | One of timeCreated_desc, ratingValue_desc. Default timeCreated_desc. Allowed values: timeCreated_desc, ratingValue_desc. | timeCreated_desc | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/grubhub/restaurant/reviews?restaurant_id=6238960&page=1&sort=timeCreated_desc" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"restaurant_id": "6238960",
"reviews": [
{
"review_id": "2bdfed50-940c-11f1-ad51-f9818357fcae",
"rating": 5,
"text": "Staff are great and burgers are great!",
"author_name": "Annie",
"created_at": "2026-08-09T12:05:42Z",
"sentiment": "Positive",
"diner_type": "Regular",
"reviewer_review_count": 21,
"items": [
{
"item_id": "275127198449",
"name": "Cheeseburger"
}
]
}
],
"total_count": 61,
"total_pages": 13,
"page": 1,
"star_breakdown": {
"1": 2,
"2": 1,
"3": 2,
"4": 5,
"5": 90
},
"available_sorts": [
"timeCreated_desc",
"ratingValue_desc"
],
"source_url": "https://api-gtm.grubhub.com/ratings/search/restaurant/6238960",
"fetched_at": "2026-08-31T14:20:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/grubhub.reviewsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | grubhub.ReviewsResponse | No | ||||
| data.available_sorts | array | No | ||||
| data.fetched_at | string | No | ||||
| data.page | integer | No | 1 | |||
| data.rating_count | integer | No | ||||
| data.restaurant_id | string | No | 6238960 | |||
| data.restaurant_score | number | No | ||||
| data.reviews | array | No | ||||
| data.reviews[].author_name | string | No | Annie | |||
| data.reviews[].created_at | string | No | 2026-08-09T12:05:42Z | CreatedAt is RFC3339, converted from the upstream's epoch millis. | ||
| data.reviews[].diner_type | string | No | Regular | DinerType distinguishes e.g. a Regular from a first-time diner. | ||
| data.reviews[].items | array | No | Items are the menu items this review is attached to -- Grubhub ties each review to what the diner actually ordered. | |||
| data.reviews[].items[].item_id | string | No | 275127198449 | |||
| data.reviews[].items[].name | string | No | Cheeseburger | |||
| data.reviews[].rating | integer | No | 5 | |||
| data.reviews[].review_id | string | No | ||||
| data.reviews[].reviewer_review_count | integer | No | 21 | ReviewerReviewCount is how many reviews this diner has written. | ||
| data.reviews[].sentiment | string | No | Positive | Sentiment is Grubhub's own classification of the review. | ||
| data.reviews[].text | string | No | Staff are great and burgers are great! | |||
| data.source_url | string | No | ||||
| data.star_breakdown | grubhub.StarBreakdown | No | ||||
| data.star_breakdown.1 | integer | No | 0 | |||
| data.star_breakdown.2 | integer | No | 1 | |||
| data.star_breakdown.3 | integer | No | 0 | |||
| data.star_breakdown.4 | integer | No | 5 | |||
| data.star_breakdown.5 | integer | No | 94 | |||
| data.total_count | integer | No | 0 | |||
| data.total_pages | integer | No | 0 | |||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/grubhub/restaurant/reviews?restaurant_id=6238960&page=1&sort=timeCreated_desc" \
-H "x-api-key: $CRAWLORA_API_KEY"