> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /grubhub/restaurants/reviews

> Get diner reviews for a Grubhub (grubhub.com) restaurant by numeric id (or restaurant page URL): review text, reviewer, star rating, sentiment, diner type, creation time and the menu items ordered.

**Price:** 5 credits per 35 results

**💡 AI Hint:** Fetch diner reviews for a Grubhub (grubhub.com) restaurant by its numeric id (e.g. '4255520') or a full restaurant page URL. Provide count. Optional: sort (most_recent/highest_rated). Each review has id, text, author, rating (1-5 stars), sentiment, diner_type, author_review_count, created_at, order_placed_at, items (the menu items ordered) and responses (any restaurant owner replies). Returns an empty list if the restaurant has no reviews.



## OpenAPI

````yaml /openapi-filtered.json post /api/grubhub/restaurants/reviews
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/grubhub/restaurants/reviews:
    post:
      tags:
        - /grubhub
      summary: /grubhub/restaurants/reviews
      description: >-
        Get diner reviews for a Grubhub (grubhub.com) restaurant by numeric id
        (or restaurant page URL): review text, reviewer, star rating, sentiment,
        diner type, creation time and the menu items ordered.


        **Price:** 5 credits per 35 results


        **💡 AI Hint:** Fetch diner reviews for a Grubhub (grubhub.com)
        restaurant by its numeric id (e.g. '4255520') or a full restaurant page
        URL. Provide count. Optional: sort (most_recent/highest_rated). Each
        review has id, text, author, rating (1-5 stars), sentiment, diner_type,
        author_review_count, created_at, order_placed_at, items (the menu items
        ordered) and responses (any restaurant owner replies). Returns an empty
        list if the restaurant has no reviews.
      operationId: __api_grubhub_restaurants_reviews_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrubhubReviewsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GrubhubReview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GrubhubReviewsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        restaurant:
          type: string
          minLength: 1
          description: Grubhub restaurant numeric id or a full restaurant page URL
          examples:
            - '4255520'
            - https://www.grubhub.com/restaurant/sunset-bagels/4255520
        count:
          type: integer
          minimum: 1
          description: Max number of reviews to return
        sort:
          $ref: '#/components/schemas/GrubhubReviewSort'
          description: Sort order
          default: most_recent
      type: object
      required:
        - restaurant
        - count
    GrubhubReview:
      properties:
        '@type':
          type: string
          default: GrubhubReview
        id:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        author:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: integer
            - type: 'null'
        sentiment:
          anyOf:
            - type: string
            - type: 'null'
        diner_type:
          anyOf:
            - type: string
            - type: 'null'
        author_review_count:
          anyOf:
            - type: integer
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        order_placed_at:
          anyOf:
            - type: integer
            - type: 'null'
        items:
          items:
            type: string
          type: array
          default: []
        responses:
          items:
            $ref: '#/components/schemas/GrubhubReviewResponse'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GrubhubReviewSort:
      type: string
      enum:
        - most_recent
        - highest_rated
    GrubhubReviewResponse:
      properties:
        '@type':
          type: string
          default: GrubhubReviewResponse
        text:
          anyOf:
            - type: string
            - type: 'null'
        source:
          anyOf:
            - type: string
            - type: 'null'
        responder_name:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````