# OpenTable Reviews API

> Get diner reviews for a restaurant on OpenTable by restaurant ID, with overall and sub-ratings, text, date and diner info.

Source: https://www.sandbase.ai/apis/opentable/reviews
API reference: https://www.sandbase.ai/apis/opentable/reviews#api

## Facts

- Provider: OpenTable
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/opentable/reviews`
- Price: $0.01 per call
- Capabilities: api, opentable, restaurants, reviews
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/opentable/reviews` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `rid` | string | yes |  |
| `page` | string | no |  |
| `json_restrictor` | string | no |  |

## FAQ

### How do I use the OpenTable Reviews API?

Send a POST request to https://api.sandbase.ai/v1/api/opentable/reviews with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the OpenTable Reviews API cost?

$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the OpenTable Reviews API accept?

Required: rid (string). Optional: page (string) and json_restrictor (string). The Parameters table and the Playground on this page list every field.

### What does the OpenTable Reviews API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a OpenTable developer account or API key?

No. OpenTable Reviews runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for OpenTable API access separately.

## README

### OpenTable Reviews

Get diner reviews for a restaurant on OpenTable by restaurant ID, with overall and sub-ratings, text, date and diner info.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/opentable/reviews" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rid": "r/central-park-boathouse-new-york-2"}'
```

The result is returned in `outputs[0].data` as structured JSON.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `rid` | string | Yes | Parameter defines the OpenTable Restaurant ID. This identifier can be found in the URL of the restaurant's page, it's the path of the URL (the part after the first singular `/`). For example, in the URL `https://www.opentable.com/r/central- |
| `page` | string | No | Parameter defines the page number. `1` (default) is the first page of 10 results, `2` is the 2nd page, etc. |
| `json_restrictor` | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |

#### Pricing

$0.010 per successful call. Failed calls are not charged.
