Grubhub API
grubhub.com
Grubhub - browse restaurants for a US address, full menus with prices, and item add-ons.
- Actions
- 3
- Category
- Food
- Login
- Not required
- Output
- JSON
Call the Grubhub API
Submit a task, then poll the job until it settles. This example runs gh_browse_restaurants.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "gh_browse_restaurants",
"params": {
"address": "350 5th Ave, New York, NY 10118",
"latitude": 10
}
}'3 actions on grubhub.com
Read
Browse Restaurants
gh_browse_restaurantsread2 credits / callList the restaurants Grubhub shows for a US address or coordinates (Grubhub only operates in the US; other countries fail at no charge), including ones closed right now and ones that only take orders for later. Returns restaurant_id, name, address, coordinates, cuisines, rating, price level, delivery fee and minimum, ETA, open/closed status with next opening time, and the Grubhub URL, 20 per page by default, up to 36 with page_size (use next_page); page_size 36 reaches the most restaurants. Grubhub shows a limited number of restaurants per search, so very large cities are not listed in full; retrieved_total and browsing_capped say how many were reachable. Pass restaurant_id to Restaurant Menu for the full menu.
- address
- string
- latitude
- number
- longitude
- number
- include_closed
- boolean
- page
- integer
- page_size
- integer
- order_method
- string
Item Customizations
gh_item_customizationsread2 credits / callGet the add-ons and options for one Grubhub menu item: each choice group (min/max picks, required) with its options and their USD prices, including nested choices, plus the item's base price (Grubhub's delivery price, which can be higher than the menu price). Items without options return an empty groups list.
- restaurant_id
- string · required
- item_id
- string · required
- latitude
- number
- longitude
- number
Restaurant Menu
gh_restaurant_menuread2 credits / callGet a Grubhub restaurant's full menu as JSON: every category with its items (item_id, name, description, price and delivery price in USD, image, availability, has_customizations) plus restaurant details (address, phone, coordinates, cuisines, rating, weekly hours, open now). Time-of-day categories Grubhub is not serving right now (e.g. breakfast in the evening) may come back empty. For an item's add-ons and options, pass its item_id to Item Customizations.
- restaurant_id
- string
- restaurant_url
- string
- latitude
- number
- longitude
- number
Grubhub API questions
- Is there an API for Grubhub?
- Grubhub does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for grubhub.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape Grubhub data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when grubhub.com changes its markup, Anakin updates the action.
- Do I need a Grubhub account?
- No. Every Grubhub action listed here runs anonymously — no account and no credentials required.
- What does the Grubhub API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Food APIs
101 Cookbooks
Whole-foods recipe blog - recipe categories, full recipes with ingredients, and article roundups.
Allmenus
Allmenus - restaurant search by city, menus with dish prices, and cuisine filters.
Allrecipes
Allrecipes - recipe search by keyword or ingredient, categories, and recipe details.
Ambitiouskitchen
Recipe site - categories, recipe details, ingredients, steps, and ratings.
Applebee's
Applebee's - menu, item prices, locations, and nutrition info.
Arbys
Arby's quick-service chain - menu categories, prices, nutrition facts, and store locations.