Grubhub

Get one Grubhub restaurant's menu with prices

Returns one restaurant's full menu grouped into categories. Every item carries a base price, a delivery price and a pickup price, which genuinely differ, plus a min and max price bounding items whose price varies with the options chosen. Items also carry a description, a popularity flag, availability, tags and an image. Amounts are given both in minor units (cents) and as a decimal value.

get/grubhub/restaurant/menu

Request

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

Query parameters

restaurant_idstring required

Grubhub's numeric restaurant id, from /grubhub/search

include_unavailableboolean

Include items the restaurant currently has unavailable (default false)

Headers

x-api-keystring required

API key required

Response

OK

codeinteger

Code is the HTTP status code or a custom code used to indicate the result of the request @example 200

msgunknown

Example response

{
  "data": {
    "categories": [
      {
        "available": true,
        "category_id": "275127198073",
        "items": [
          {
            "available": true,
            "delivery_price": {
              "amount": 399,
              "currency": "USD",
              "value": 3.99
            },
            "item_id": "275127198449",
            "max_price": {
              "amount": 399,
              "currency": "USD",
              "value": 3.99
            },
            "min_price": {
              "amount": 399,
              "currency": "USD",
              "value": 3.99
            },
            "name": "Cheeseburger",
            "pickup_price": {
              "amount": 399,
              "currency": "USD",
              "value": 3.99
            },
            "popular": true,
            "price": {
              "amount": 399,
              "currency": "USD",
              "value": 3.99
            }
          }
        ],
        "name": "Burgers"
      }
    ],
    "item_count": 8,
    "restaurant_id": "6238960"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.