APIs / OpenTable / Search

OpenTable: Search

Search from OpenTable as JSON. 1 credit per successful call.

GET /v1/opentable/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 100 characters
locationstringOptionalUp to 100 characters
latitudenumberOptionalAny
longitudenumberOptionalAny
typestringOptionalrestaurant, 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.

FieldType
typestring
idstring
namestring
urlurl
countrystring
metrostring
macrostring
neighborhoodstring
latitudenumber
longitudenumber
ratingnumber
review_countinteger
price_bandstring
price_symbolstring
cuisinestring
dining_stylestring
addressstring
citystring