Skip to main content
POST
/
api
/
grubhub
/
restaurants
/
reviews
/grubhub/restaurants/reviews
curl --request POST \
  --url https://api.anysite.io/api/grubhub/restaurants/reviews \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "restaurant": "<string>",
  "count": 2,
  "timeout": 300,
  "sort": "most_recent"
}
'
[
  {
    "id": "<string>",
    "@type": "GrubhubReview",
    "text": "<string>",
    "author": "<string>",
    "rating": 123,
    "sentiment": "<string>",
    "diner_type": "<string>",
    "author_review_count": 123,
    "created_at": 123,
    "order_placed_at": 123,
    "items": [],
    "responses": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
restaurant
string
required

Grubhub restaurant numeric id or a full restaurant page URL

Minimum string length: 1
Examples:

"4255520"

"https://www.grubhub.com/restaurant/sunset-bagels/4255520"

count
integer
required

Max number of reviews to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string>
default:most_recent

Sort order

Available options:
most_recent,
highest_rated

Response

Successful Response

id
string
required
@type
string
default:GrubhubReview
text
string | null
author
string | null
rating
integer | null
sentiment
string | null
diner_type
string | null
author_review_count
integer | null
created_at
integer | null
order_placed_at
integer | null
items
string[]
responses
object[]