OpenTable Restaurant Search
POST /api/v1/opentable/restaurants/search
Search OpenTable restaurants by cuisine, name or keyword in a city and get matching restaurants with cuisine, price band, diner ratings, review counts, neighborhood, address, coordinates, phone, photos and takeout options.
Overview
Search OpenTable restaurants by cuisine, name or keyword in a city and get matching restaurants with cuisine, price band, diner ratings, review counts, neighborhood, address, coordinates, phone, photos and takeout options.
POST /api/v1/opentable/restaurants/search
Method: POST Path: /api/v1/opentable/restaurants/search Category: Travel
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| limit | integer | Optional | Maximum number of restaurants to return (1-100). |
| query | string | Required | What to search for, including the city, e.g. "italian new york", "steakhouse chicago" or "London". |
Request Example
OpenTable Restaurant Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/opentable/restaurants/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": "50", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "query": "string", "keywords": "string", "metro_id": 0, "search_latitude": 0.0, "search_longitude": 0.0, "total_results": 0, "count": 0, "search_url": "https://example.com/...", "restaurants": [ { "position": 0, "restaurant_id": 0, "name": "string", "url": "https://example.com/...", "cuisine": "string", "dining_style": "string", "price_band": "string", "price_level": 0, "currency_symbol": "string", "rating": 0.0, "review_count": 0, "recent_bookings": 0, "neighborhood": "string", "address": { "full": "string", "line1": "string", "line2": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string" }, "latitude": 0.0, "longitude": 0.0, "phone": "string", "description": "string", "review_highlight": "string", "photos": [ "string" ], "outdoor_seating": false, "bar_seating": false, "max_party_size": 0, "private_dining": false, "takeout": false, "order_online_url": "https://example.com/...", "delivery_partners": [ { "name": "string", "url": "https://example.com/..." } ], "awards": [ "string" ], "offers": [ "string" ], "just_added": false } ], "time_taken": 0.0, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "OpenTable 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 |
|---|---|---|---|
| query | string | Yes | Text that was searched. |
| keywords | string | No | The part of the query OpenTable searched for after reading the location out of it, e.g. 'italian'. |
| metro_id | integer | null | No | OpenTable metro area the search ran in. |
| search_latitude | number | null | No | Center of the searched area. |
| search_longitude | number | null | No | |
| total_results | integer | null | No | Total number of matching restaurants. |
| count | integer | Yes | Number of restaurants returned. |
| search_url | string | No | OpenTable search page for the query. |
| restaurants | array<object> | Yes | |
| restaurants[].position | integer | No | Position in the search results. |
| restaurants[].restaurant_id | integer | null | Yes | OpenTable restaurant id. |
| restaurants[].name | string | Yes | |
| restaurants[].url | string | Yes | Restaurant page URL. |
| restaurants[].cuisine | string | No | Primary cuisine, e.g. 'Italian'. |
| restaurants[].dining_style | string | No | e.g. 'Casual Dining', 'Fine Dining'. |
| restaurants[].price_band | string | No | Typical price per person, e.g. '$31 to $50'. |
| restaurants[].price_level | integer | null | No | Price level from 1 (cheapest) to 4. |
| restaurants[].currency_symbol | string | No | |
| restaurants[].rating | number | null | No | Overall diner rating out of 5. |
| restaurants[].review_count | integer | null | No | Number of diner reviews. |
| restaurants[].recent_bookings | integer | null | No | Bookings made today, as shown on the site. |
| restaurants[].neighborhood | string | No | |
| restaurants[].address | object | No | |
| restaurants[].address.full | string | Yes | Address on one line. |
| restaurants[].address.line1 | string | No | |
| restaurants[].address.line2 | string | No | |
| restaurants[].address.city | string | No | |
| restaurants[].address.state | string | No | |
| restaurants[].address.postal_code | string | No | |
| restaurants[].address.country | string | No | |
| restaurants[].latitude | number | null | No | |
| restaurants[].longitude | number | null | No | |
| restaurants[].phone | string | No | |
| restaurants[].description | string | No | |
| restaurants[].review_highlight | string | No | Short quote from a recent review. |
| restaurants[].photos | array<string> | No | Photo URLs. |
| restaurants[].outdoor_seating | boolean | null | No | |
| restaurants[].bar_seating | boolean | null | No | |
| restaurants[].max_party_size | integer | null | No | Largest party that can be booked online. |
| restaurants[].private_dining | boolean | No | |
| restaurants[].takeout | boolean | No | |
| restaurants[].order_online_url | string | No | |
| restaurants[].delivery_partners | array<object> | No | |
| restaurants[].delivery_partners[].name | string | Yes | Delivery service, e.g. 'Uber Eats'. |
| restaurants[].delivery_partners[].url | string | No | The restaurant's menu on that service. |
| restaurants[].awards | array<string> | No | |
| restaurants[].offers | array<string> | No | Current special offers. |
| restaurants[].just_added | boolean | No | Recently added to OpenTable. |
| 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/opentable/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
query,limit example,50
Pricing & Rate Limits
Endpoint Pricing
$0.02 / 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. |