---
title: "OpenTable API: restaurant search, restaurant details as JSON"
description: "OpenTable API for restaurant search, restaurant details and diner reviews sorted by newest, highest or lowest, as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/opentable
---

[APIs](https://perceptlayer.com/apis) / [Reviews](https://perceptlayer.com/verticals/reviews) / OpenTable

1 credit per call 3 endpoints 18 datapoints 

# OpenTable API

OpenTable API for restaurant search, restaurant details and diner reviews sorted by newest, highest or lowest, as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | 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 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | restaurant | 489 | Mon Ami Gabi | https://www.opentable.com/restaurant/profile/489 | United States | Chicago / Illinois | Chicago | Lincoln Park | 41.924216 | \-87.6370405 | 4.8 | 754 | $30 and under | $ | French | Casual Dining | 2300 N. Lincoln Park West | Chicago |
| 2 | restaurant | 26734 | Francesca's Amici | https://www.opentable.com/restaurant/profile/26734 | United States | Chicago / Illinois | West Suburbs | Elmhurst | 41.9024847 | \-87.9402344 | 4.8 | 90 | $30 and under | $ | Italian | Casual Dining | 174 North York Road | Elmhurst |
| 3 | restaurant | 1487623 | The Lucky Monk - Downers Grove | https://www.opentable.com/restaurant/profile/1487623 | United States | Chicago / Illinois | West Suburbs | Elmhurst | 41.8329593 | \-88.0232388 | 4.6 | 94 | $30 and under | $ | American | Casual Dining | 1461 Butterfield Rd | Downers Grove |

Recorded from our API · 3 items shown · 18 datapoints per item GET /v1/opentable/search?query=mon+ami+gabi&latitude=41.88&longitude=-87.63&type=restaurant

18 datapoints

### Identity

-   type string
-   id string
-   name string

### Contact

-   url url

### Location

-   country string
-   neighborhood string
-   latitude number
-   longitude number
-   address string
-   city string

### Reputation

-   rating number
-   review\_count integer

### Price

-   price\_band string
-   price\_symbol string

### Other

-   metro string
-   macro string
-   cuisine string
-   dining\_style string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/opentable/search?query=mon+ami+gabi&latitude=41.88&longitude=-87.63&type=restaurant" \
  -H "X-API-Key: $API_KEY"
```

OpenTable · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/opentable/restaurant`](https://perceptlayer.com/apis/opentable/restaurant) | none +3 optional | JSON | 1 credit |
| [GET `/v1/opentable/reviews`](https://perceptlayer.com/apis/opentable/reviews) | none +7 optional | JSON | 1 credit |
| [GET `/v1/opentable/search`](https://perceptlayer.com/apis/opentable/search) | `query` +4 optional | `type` `id` `name` `url` `country` `metro` +12 more | 1 credit |

Overview

## About the OpenTable API

## What you can get

The OpenTable API returns OpenTable restaurant data as JSON through 3 endpoints. `restaurant` and `reviews` take a `country` (us, gb, ca, de, au or ie).

-   **Search:** `search` takes a `query`, with `location`, `latitude`, `longitude` and `type` (restaurant, cuisine or location).
-   **Restaurants:** `restaurant` takes a `restaurant_id` or a restaurant `url`.
-   **Reviews:** `reviews` takes a `restaurant_id` or `url`, with `sort` (newest, highest or lowest), `page`, `per_page` and a `query` to search review text.

The recorded `search` for "mon ami gabi" near latitude 41.88, longitude -87.63 with `type=restaurant` returns `results`, each with `id`, `name`, `url`, `metro`, `neighborhood`, `latitude`, `longitude`, `rating`, `review_count`, `price_band`, `cuisine`, `dining_style`, `address` and `city`.

## How a call works

Search, then read reviews: `GET /v1/opentable/search?query=mon ami gabi&latitude=41.88&longitude=-87.63&type=restaurant` with your key in the `X-API-Key` header returns each restaurant's `id`; `restaurant` and `reviews` take it as `restaurant_id`, as in `GET /v1/opentable/reviews?restaurant_id=489&sort=newest`. Every successful call costs 1 credit; failed calls cost nothing.

Reviews JSON REST MCP

### More reviews APIs

[11880.com](https://perceptlayer.com/apis/11880) [Bazaarvoice](https://perceptlayer.com/apis/bazaarvoice) [Capterra](https://perceptlayer.com/apis/capterra) [Clutch](https://perceptlayer.com/apis/clutch) [ConsumerAffairs](https://perceptlayer.com/apis/consumeraffairs) [Das Örtliche](https://perceptlayer.com/apis/dasoertliche) [Doctolib](https://perceptlayer.com/apis/doctolib) [Feefo](https://perceptlayer.com/apis/feefo) [Fresha](https://perceptlayer.com/apis/fresha) [G2](https://perceptlayer.com/apis/g2) [Gelbe Seiten](https://perceptlayer.com/apis/gelbeseiten) [GoodFirms](https://perceptlayer.com/apis/goodfirms)

Use cases

### Track a restaurant's rating and review count over time

`Use the OpenTable API to track a restaurant's rating and review count over time` 

### Monitor new reviews for your restaurants with \`sort=newest\`

`` Use the OpenTable API to monitor new reviews for your restaurants with `sort=newest` `` 

### Find low-rated reviews that mention a dish or topic with \`query\`

`` Use the OpenTable API to find low-rated reviews that mention a dish or topic with `query` `` 

### Compare restaurants in a neighborhood by cuisine, rating and price band

`Use the OpenTable API to compare restaurants in a neighborhood by cuisine, rating and price band` 

FAQ

## Questions

**How much does the OpenTable API cost?**

Each successful call costs one credit, and each page of reviews is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I sort reviews by rating?**

Yes. Pass \`sort=highest\` or \`sort=lowest\` to \`reviews\`, or \`sort=newest\` for the latest first.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Do I need an OpenTable account?**

No. You call this OpenTable API with your Perceptlayer key in the \`X-API-Key\` header, with no OpenTable login.

**Is this the official OpenTable API?**

No. Perceptlayer is an independent service and is not affiliated with OpenTable. It returns OpenTable data as JSON with a Perceptlayer key, so there is no OpenTable developer account, app review or partner approval to get first. It only reads data: if OpenTable has an official API and you need to act on your own OpenTable account, such as posting, managing orders or reading private data, use that one.

**Should I build an OpenTable scraper instead?**

You can, but an OpenTable scraper is code you maintain: page changes break it, requests get blocked, and OpenTable's terms govern how you collect data. The OpenTable API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the OpenTable API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
