Grubhub Restaurant Search
POST /api/v1/grubhub/restaurants/search
Find Grubhub restaurants delivering to (or offering pickup near) a US address or coordinates, optionally for a cuisine, dish or name, with ratings, price level, cuisines, address, coordinates, distance, delivery time, fees and order minimum.
Overview
Find Grubhub restaurants delivering to (or offering pickup near) a US address or coordinates, optionally for a cuisine, dish or name, with ratings, price level, cuisines, address, coordinates, distance, delivery time, fees and order minimum.
POST /api/v1/grubhub/restaurants/search
Method: POST Path: /api/v1/grubhub/restaurants/search Category: Travel
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| address | string | Optional | US street address, ZIP code or "City, ST" to search around, e.g. "New York, NY" or "60601". Not needed when latitude and longitude are given. |
| latitude | number | Optional | Latitude of the search point, e.g. 40.7128. Use together with longitude instead of an address. |
| limit | integer | Optional | Maximum number of restaurants to return (1-100). |
| longitude | number | Optional | Longitude of the search point, e.g. -74.006. Use together with latitude instead of an address. |
| order_method | string | Optional | "delivery" for restaurants that deliver to the location, "pickup" for restaurants nearby offering pickup. |
| query | string | Optional | Optional cuisine, dish or restaurant name, e.g. "pizza", "sushi" or "tacos". Leave empty to list nearby restaurants. |
Request Example
Grubhub Restaurant Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/grubhub/restaurants/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"address": "example", "latitude": 1, "limit": "20", "longitude": 1, "order_method": "delivery", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "location": "string", "latitude": 0.0, "longitude": 0.0, "query": "string", "order_method": "delivery", "total_results": 0, "count": 0, "restaurants": [ { "position": 0, "restaurant_id": "1234567890", "name": "string", "url": "https://example.com/...", "rating": 0.0, "rating_count": 0, "price_level": 0, "cuisines": [ "string" ], "description": "string", "address": { "street": "string", "city": "string", "state": "string", "postal_code": "string" }, "latitude": 0.0, "longitude": 0.0, "phone": "string", "distance_miles": 0.0, "delivery_time_minutes": { "min": 0, "max": 0 }, "pickup_time_minutes": 0, "delivery_fee": 0.0, "delivery_minimum": 0.0, "offers_delivery": false, "offers_pickup": false, "open_now": false, "next_open_at": "2026-01-01T12:00:00Z", "next_closed_at": "2026-01-01T12:00:00Z", "grubhub_plus": false, "coupons_available": false, "rating_facets": [ { "name": "string", "positive_percent": 0.0, "responses": 0 } ], "logo": "string", "image": "string", "time_zone": "string" } ], "time_taken": 0.0, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Grubhub Restaurant Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| location | string | No | Location that was searched, as resolved from the address. |
| latitude | number | Yes | Latitude of the search point. |
| longitude | number | Yes | Longitude of the search point. |
| query | string | Yes | Cuisine, dish or name that was searched (empty for all restaurants). |
| order_method | string | No | |
| total_results | integer | null | No | Total number of matching restaurants Grubhub reports. |
| count | integer | Yes | Number of restaurants returned. |
| restaurants | array<object> | Yes | |
| restaurants[].position | integer | No | Position in the results. |
| restaurants[].restaurant_id | string | Yes | Grubhub restaurant id. |
| restaurants[].name | string | Yes | |
| restaurants[].url | string | Yes | Restaurant page URL. |
| restaurants[].rating | number | null | No | Average customer rating out of 5 (null when there are too few ratings). |
| restaurants[].rating_count | integer | null | No | Number of customer ratings. |
| restaurants[].price_level | integer | null | No | Price level from 1 (cheapest) to 4. |
| restaurants[].cuisines | array<string> | No | |
| restaurants[].description | string | No | |
| restaurants[].address | object | No | |
| restaurants[].address.street | string | No | |
| restaurants[].address.city | string | No | |
| restaurants[].address.state | string | No | |
| restaurants[].address.postal_code | string | No | |
| restaurants[].latitude | number | null | No | |
| restaurants[].longitude | number | null | No | |
| restaurants[].phone | string | No | |
| restaurants[].distance_miles | number | null | No | Distance from the search point in miles. |
| restaurants[].delivery_time_minutes | object | null | No | Estimated delivery time range in minutes. |
| restaurants[].delivery_time_minutes.min | integer | null | No | |
| restaurants[].delivery_time_minutes.max | integer | null | No | |
| restaurants[].pickup_time_minutes | integer | null | No | Estimated pickup preparation time in minutes. |
| restaurants[].delivery_fee | number | null | No | Delivery fee in USD. |
| restaurants[].delivery_minimum | number | null | No | Minimum order for delivery in USD. |
| restaurants[].offers_delivery | boolean | No | |
| restaurants[].offers_pickup | boolean | No | |
| restaurants[].open_now | boolean | No | |
| restaurants[].next_open_at | string | No | When the restaurant next opens (ISO time, UTC), if closed. |
| restaurants[].next_closed_at | string | No | When the restaurant next closes (ISO time, UTC). |
| restaurants[].grubhub_plus | boolean | No | Eligible for Grubhub+ member benefits. |
| restaurants[].coupons_available | boolean | No | |
| restaurants[].rating_facets | array<object> | No | |
| restaurants[].rating_facets[].name | string | Yes | Rating aspect, e.g. 'Food Quality' or 'Delivery Speed'. |
| restaurants[].rating_facets[].positive_percent | number | null | No | Share of positive responses, in percent. |
| restaurants[].rating_facets[].responses | integer | null | No | Number of responses. |
| restaurants[].logo | string | No | Restaurant logo URL. |
| restaurants[].image | string | No | Restaurant listing image URL. |
| restaurants[].time_zone | string | No | Restaurant's time zone, e.g. 'America/New_York'. |
| time_taken | number | No | Seconds taken to fetch the results. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/grubhub/restaurants/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
address,latitude,limit,longitude,order_method,query example,1,20,1,delivery,example
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |