# Grubhub Restaurant Scraper (`crawlerbros/grubhub-scraper`) Actor

Scrape Grubhub restaurant listings and menus. Search by address, fetch a single restaurant with full menu, or scrape from a Grubhub restaurant URL. Extracts ratings, delivery info, cuisine types, and menu items.

- **URL**: https://apify.com/crawlerbros/grubhub-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Grubhub Restaurant Scraper

Scrape Grubhub restaurant listings and menus. Search by address or city to find nearby restaurants, fetch a single restaurant with its full menu, or scrape from a Grubhub URL. Extracts ratings, delivery info, cuisine types, menu items, and more.

### What data can you scrape?

- **Search restaurants** — find restaurants near any US address or city with cuisine and rating filters
- **Single restaurant + menu** — full restaurant details plus all menu items with prices
- **From URL** — paste any Grubhub restaurant URL to scrape its data and menu

### Input

| Field | Type | Description |
|---|---|---|
| `mode` | select | `search`, `byRestaurantId`, or `byUrl` |
| `address` | string | Address or city for search (e.g. "New York, NY") |
| `cuisine` | select | Cuisine filter (American, Italian, Chinese, etc.) |
| `sortBy` | select | Sort: default, rating, delivery_time, minimum_order_amount |
| `openNow` | boolean | Only open restaurants (default: true) |
| `minRating` | float | Minimum rating 0-5 |
| `maxDeliveryTime` | integer | Max estimated delivery time in minutes |
| `restaurantId` | string | Restaurant ID for byRestaurantId mode |
| `url` | string | Grubhub URL for byUrl mode |
| `maxItems` | integer | Max records to emit (default: 50) |

### Output — Restaurant record

```json
{
  "restaurantId": "987654",
  "name": "The Great Burger Joint",
  "slug": "great-burger-joint",
  "cuisines": ["American", "Burgers"],
  "categories": ["Fast Food"],
  "rating": 4.7,
  "ratingCount": 1250,
  "deliveryFee": 1.99,
  "deliveryTime": 35,
  "minimumOrder": 10.00,
  "address": "456 Burger Ave, New York, NY",
  "city": "New York",
  "state": "NY",
  "zip": "10002",
  "phone": "+12125551234",
  "isOpen": true,
  "acceptsPickup": true,
  "acceptsDelivery": true,
  "promoText": "Free delivery on orders over $15",
  "imageUrl": "https://res.cloudinary.com/grubhub/...",
  "restaurantUrl": "https://www.grubhub.com/restaurant/great-burger-joint/987654",
  "recordType": "restaurant",
  "siteName": "Grubhub",
  "scrapedAt": "2026-05-10T12:00:00+00:00"
}
````

### Output — Menu item record (byRestaurantId mode)

```json
{
  "itemId": "item_001",
  "name": "Classic Cheeseburger",
  "description": "A juicy beef patty with melted cheese",
  "price": 12.99,
  "calories": 650,
  "categoryName": "Burgers",
  "imageUrl": "https://res.cloudinary.com/grubhub/...",
  "recordType": "menuItem",
  "siteName": "Grubhub",
  "scrapedAt": "2026-05-10T12:00:00+00:00"
}
```

### FAQs

**Do I need a Grubhub account?**
No account is required, but anonymous search access is session- and geo-sensitive. Direct restaurant lookups via `byRestaurantId` or `byUrl` are the most reliable modes.

**Which cities are supported?**
Grubhub operates in the US. Provide a US address or city for search mode, and use a US residential proxy for the best chance of success.

**Does byRestaurantId return menu items?**
Yes. When using `byRestaurantId` or `byUrl`, both the restaurant record and all menu items are emitted.

**What should I use for scheduled smoke tests?**
Use `byRestaurantId` with a known restaurant. `byUrl` usually works too, but direct restaurant IDs are the most stable choice for monitoring. Search mode depends on Grubhub's current anonymous geolocation/session gating and is best treated as best-effort.

**How many restaurants can I scrape?**
Set `maxItems` up to 1000. Pagination is handled automatically.

# Actor input Schema

## `mode` (type: `string`):

How to find restaurants.

## `address` (type: `string`):

Address or city to search near, e.g. 'New York, NY' or '123 Main St, Chicago, IL'.

## `cuisine` (type: `string`):

Filter results to a specific cuisine type.

## `sortBy` (type: `string`):

Result ordering.

## `openNow` (type: `boolean`):

Only include restaurants currently open for delivery.

## `minRating` (type: `number`):

Only include restaurants with a rating at or above this value.

## `maxDeliveryTime` (type: `integer`):

Only include restaurants with estimated delivery time at or below this value.

## `restaurantId` (type: `string`):

Grubhub restaurant ID (numeric) from the restaurant URL.

## `url` (type: `string`):

Paste a Grubhub restaurant URL to scrape its data and menu.

## `maxItems` (type: `integer`):

Maximum number of records to emit.

## `proxyConfiguration` (type: `object`):

Apify proxy configuration. Residential proxy is recommended for reliable access to Grubhub.

## Actor input object example

```json
{
  "mode": "byRestaurantId",
  "address": "New York, NY",
  "cuisine": "",
  "sortBy": "default",
  "openNow": false,
  "restaurantId": "2879580",
  "url": "https://www.grubhub.com/restaurant/plum-vietnamese-restaurant-210-w-94th-st-new-york/2879580",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing all scraped Grubhub restaurants and menu items.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "byRestaurantId",
    "address": "New York, NY",
    "cuisine": "",
    "sortBy": "default",
    "openNow": false,
    "restaurantId": "2879580",
    "url": "https://www.grubhub.com/restaurant/plum-vietnamese-restaurant-210-w-94th-st-new-york/2879580",
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/grubhub-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "byRestaurantId",
    "address": "New York, NY",
    "cuisine": "",
    "sortBy": "default",
    "openNow": False,
    "restaurantId": "2879580",
    "url": "https://www.grubhub.com/restaurant/plum-vietnamese-restaurant-210-w-94th-st-new-york/2879580",
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/grubhub-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "byRestaurantId",
  "address": "New York, NY",
  "cuisine": "",
  "sortBy": "default",
  "openNow": false,
  "restaurantId": "2879580",
  "url": "https://www.grubhub.com/restaurant/plum-vietnamese-restaurant-210-w-94th-st-new-york/2879580",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call crawlerbros/grubhub-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/grubhub-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Grubhub Restaurant Scraper",
        "description": "Scrape Grubhub restaurant listings and menus. Search by address, fetch a single restaurant with full menu, or scrape from a Grubhub restaurant URL. Extracts ratings, delivery info, cuisine types, and menu items.",
        "version": "1.0",
        "x-build-id": "TuPXEWVNGa80vltBR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~grubhub-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-grubhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~grubhub-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-grubhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~grubhub-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-grubhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byRestaurantId",
                            "byUrl"
                        ],
                        "type": "string",
                        "description": "How to find restaurants.",
                        "default": "search"
                    },
                    "address": {
                        "title": "Address or city (mode=search)",
                        "type": "string",
                        "description": "Address or city to search near, e.g. 'New York, NY' or '123 Main St, Chicago, IL'.",
                        "default": "New York, NY"
                    },
                    "cuisine": {
                        "title": "Cuisine filter",
                        "enum": [
                            "",
                            "American",
                            "Italian",
                            "Chinese",
                            "Mexican",
                            "Japanese",
                            "Thai",
                            "Indian",
                            "Mediterranean",
                            "Pizza",
                            "Burgers",
                            "Sushi",
                            "Korean",
                            "Greek",
                            "Vietnamese",
                            "Middle Eastern",
                            "Breakfast",
                            "Sandwiches",
                            "Healthy",
                            "Vegan",
                            "Desserts"
                        ],
                        "type": "string",
                        "description": "Filter results to a specific cuisine type.",
                        "default": ""
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "default",
                            "rating",
                            "delivery_time",
                            "minimum_order_amount"
                        ],
                        "type": "string",
                        "description": "Result ordering.",
                        "default": "default"
                    },
                    "openNow": {
                        "title": "Open now only",
                        "type": "boolean",
                        "description": "Only include restaurants currently open for delivery.",
                        "default": false
                    },
                    "minRating": {
                        "title": "Minimum rating (0-5)",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Only include restaurants with a rating at or above this value."
                    },
                    "maxDeliveryTime": {
                        "title": "Max delivery time (minutes)",
                        "minimum": 0,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Only include restaurants with estimated delivery time at or below this value."
                    },
                    "restaurantId": {
                        "title": "Restaurant ID (mode=byRestaurantId)",
                        "type": "string",
                        "description": "Grubhub restaurant ID (numeric) from the restaurant URL."
                    },
                    "url": {
                        "title": "Grubhub restaurant URL (mode=byUrl)",
                        "type": "string",
                        "description": "Paste a Grubhub restaurant URL to scrape its data and menu."
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of records to emit.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify proxy configuration. Residential proxy is recommended for reliable access to Grubhub.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
