---
title: "Get one Grubhub restaurant's reviews and rating histogram"
method: GET
path: "/grubhub/restaurant/reviews"
tags: ["Grubhub"]
---

# Get one Grubhub restaurant's reviews and rating histogram

`GET /grubhub/restaurant/reviews`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/grubhub/restaurant/reviews`
- Auth: API key in header `x-api-key`

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.

## Query parameters

- `restaurant_id` string, required
- `page_size` integer
- `page` integer
- `sort` 'timeCreated_desc' | 'ratingValue_desc'

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GrubhubReviewsResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` GrubhubReviewsResponse
    - `available_sorts` string[]
    - `fetched_at` string
    - `page` integer
    - `rating_count` integer
    - `restaurant_id` string
    - `restaurant_score` number
    - `reviews` GrubhubReview[]
      - `author_name` string
      - `created_at` string: CreatedAt is RFC3339, converted from the upstream's epoch millis.
      - `diner_type` string: DinerType distinguishes e.g. a Regular from a first-time diner.
      - `items` GrubhubReviewedItem[]: Items are the menu items this review is attached to -- Grubhub ties each review to what the diner actually ordered.
        - `item_id` string
        - `name` string
      - `rating` integer
      - `review_id` string
      - `reviewer_review_count` integer: ReviewerReviewCount is how many reviews this diner has written.
      - `sentiment` string: Sentiment is Grubhub's own classification of the review.
      - `text` string
    - `source_url` string
    - `star_breakdown` GrubhubStarBreakdown
      - `1` integer
      - `2` integer
      - `3` integer
      - `4` integer
      - `5` integer
    - `total_count` integer
    - `total_pages` integer
  - `msg` unknown

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
