# OpenTable (`canadesk/opentable`) Actor

Find restaurants, compare cuisines and ratings, and check reservation availability across locations.

- **URL**: https://apify.com/canadesk/opentable.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** SEO tools, Social media, Travel
- **Features:** Full permissions
- **Stats:** 181 total users, 1 monthly users, 91.4% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.25 / 1,000 restaurant or availability results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Collect restaurants, ratings and reservation availability from **OpenTable**. Search one location or a list and choose the date, time and party size.

### Features

| **Process** | **What you get** |
| :--- | :--- |
| Search suggestions | Matching locations and restaurants with available IDs and coordinates |
| Restaurant search | Available names, addresses, cuisines, price bands, ratings, photos and profile links |
| Availability | Available reservation times and booking links |

Availability reflects the selected date and party size. Restaurant fields and supported filters depend on the source response.

### Quick start

```json
{
  "process": "gr",
  "query": "Boston",
  "maximum": 50,
  "country": "com"
}
```

Choose `gs` for search suggestions, `gr` for restaurants or `ga` for availability. For multiple searches, supply `queries`, such as `["Boston", "Chicago"]`; this list replaces `query`.

For availability, set `date` in `YYYY-MM-DD` format, `time` such as `19:00`, and `people`. If the date is omitted, the actor uses two days from today. Times are local to the restaurant. An exact restaurant name targets that restaurant when OpenTable finds a matching listing.

`maximum` limits results per query. `maxResults` limits real results across the run. Restaurant search continues through available pages until the limit is reached or OpenTable has no more results.

### Results

Search suggestions and restaurant results preserve OpenTable's fields. Availability returns one row per restaurant/day with `slots` and a sorted `summary` containing available times, booking links and slot types. `availableDate` on a slot accounts for times crossing midnight.

Availability is a snapshot and may change before you book. Booking links open OpenTable; this actor does not make reservations. Coverage and available fields vary by country and restaurant.

### Search tips

Choose the OpenTable country domain that covers your destination. Use search suggestions to identify how OpenTable names a location. Narrow filters may return fewer results than requested.

Direct connections are used by default. OpenTable may restrict availability requests, including through proxies. If access is blocked, try another proxy or retry later. For support, share the run URL and the affected query.

### Pricing

Each valid pay-per-event run with at least one input includes a shared minimum charge of 100 restaurant result units. Results above 100 are charged individually at the Pricing tab rate, plus the listed $0.01 start fee. The minimum also applies when fewer results are returned or no matches are found. Clearly marked placeholder rows contain no scraped restaurant data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included. Set a maximum run budget of at least **$0.04**.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

# Actor input Schema

## `process` (type: `string`):

Process to run.

## `queries` (type: `array`):

Optional list of locations or restaurant names. When supplied, this list replaces Query.

## `query` (type: `string`):

Location to search for.

## `country` (type: `string`):

Domain extension to get data from.

## `date` (type: `string`):

YYYY-MM-DD. Leave empty for two days from today.

## `time` (type: `string`):

Format: HH:MM. Minutes can only be 00 or 30.

## `people` (type: `integer`):

No description

## `maxResults` (type: `integer`):

Maximum real results across all queries.

## `maximum` (type: `integer`):

Maximum real results per query.

## `sortby` (type: `string`):

No description

## `pricing` (type: `string`):

No description

## `amneties` (type: `string`):

No description

## `seating` (type: `string`):

No description

## `timeout` (type: `integer`):

Request will give up after the specified duration.

## `retries` (type: `integer`):

Request will be retried in case an error occurs.

## `delay` (type: `integer`):

Seconds between requests.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "process": "gr",
  "query": "Boston",
  "country": "com",
  "date": "",
  "time": "19:00",
  "people": 2,
  "maxResults": 10000,
  "maximum": 50,
  "sortby": "WEB_CONVERSION",
  "pricing": "default",
  "amneties": "default",
  "seating": "default",
  "timeout": 30,
  "retries": 0,
  "delay": 1,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "Boston",
    "date": "",
    "time": "19:00",
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/opentable").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "Boston",
    "date": "",
    "time": "19:00",
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/opentable").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "Boston",
  "date": "",
  "time": "19:00",
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call canadesk/opentable --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,canadesk/opentable"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PpsdmnylTjb2NleJy/builds/7vnJtipWQGP5h47lK/openapi.json
