OpenTable: Search
Search from OpenTable as JSON. 1 credit per successful call.
GET /v1/opentable/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 100 characters |
location | string | Optional | Up to 100 characters |
latitude | number | Optional | Any |
longitude | number | Optional | Any |
type | string | Optional | restaurant, cuisine, location |
Example request
OpenTable
GET/v1/opentable/search?query=mon+ami+gabi&latitude=41.88&longitude=-87.63&type=restaurant
{
"success": true,
"data": {
"query": "mon ami gabi",
"results": [
{
"type": "restaurant",
"id": "489",
"name": "Mon Ami Gabi",
"url": "https://www.opentable.com/restaurant/profile/489",
"country": "United States",
"metro": "Chicago / Illinois",
"macro": "Chicago",
"neighborhood": "Lincoln Park",
"latitude": 41.924216,
"longitude": -87.6370405,
"rating": 4.8,
"review_count": 754,
"price_band": "$30 and under",
"price_symbol": "$",
"cuisine": "French",
"dining_style": "Casual Dining",
"address": "2300 N. Lincoln Park West",
"city": "Chicago"
},
{
"type": "restaurant",
"id": "26734",
"name": "Francesca's Amici",
"url": "https://www.opentable.com/restaurant/profile/26734",
"country": "United States",
"metro": "Chicago / Illinois",
"macro": "West Suburbs",
"neighborhood": "Elmhurst",
"latitude": 41.9024847,
"longitude": -87.9402344,
"rating": 4.8,
"review_count": 90,
"price_band": "$30 and under",
"price_symbol": "$",
"cuisine": "Italian",
"dining_style": "Casual Dining",
"address": "174 North York Road",
"city": "Elmhurst"
},
{
"type": "restaurant",
"id": "1487623",
"name": "The Lucky Monk - Downers Grove",
"url": "https://www.opentable.com/restaurant/profile/1487623",
"country": "United States",
"metro": "Chicago / Illinois",
"macro": "West Suburbs",
"neighborhood": "Elmhurst",
"latitude": 41.8329593,
"longitude": -88.0232388,
"rating": 4.6,
"review_count": 94,
"price_band": "$30 and under",
"price_symbol": "$",
"cuisine": "American",
"dining_style": "Casual Dining",
"address": "1461 Butterfield Rd",
"city": "Downers Grove"
}
]
},
"meta": {
"endpoint_family": "search",
"request_id": "req_9d61b1149a994d4e9322c323dd1b0d61",
"credits_charged": 1,
"credits_remaining": 1791
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.results has these 18 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
type | string |
id | string |
name | string |
url | url |
country | string |
metro | string |
macro | string |
neighborhood | string |
latitude | number |
longitude | number |
rating | number |
review_count | integer |
price_band | string |
price_symbol | string |
cuisine | string |
dining_style | string |
address | string |
city | string |