# OpenTable Restaurants & Reviews Scraper (`devilscrapes/opentable-restaurants-scraper`) Actor

Scrape OpenTable restaurant listings and reviews — price tier, star ratings, review counts, booking-popularity signal, phone, address, and recent review snippets, one row per restaurant. Search any city or neighborhood, optionally filtered by cuisine.

- **URL**: https://apify.com/devilscrapes/opentable-restaurants-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## OpenTable Restaurants & Reviews Scraper

**💰 $1.52 / 1 000 results**  ·  pay only for results  ·  no credit card to try

*We do the dirty work so your dataset stays clean.* 😈

Scrape OpenTable restaurant listings and reviews — price tier, star ratings, review counts, booking-popularity signal, phone, address, and recent review snippets, one row per restaurant. Search any city or neighborhood, optionally filtered by cuisine.

</div>

***

### 🎯 What this scrapes

OpenTable is the default reservation platform for tens of thousands of restaurants across the US and beyond. This Actor collects one structured row per restaurant for a searched city: price tier, overall and sub-category star ratings, review count, a booking-popularity signal, contact details, and a capped set of recent review snippets — built to feed local-restaurant SaaS tools, franchise/competitive-intel research, and site-selection analysis.

### 🔥 What we handle for you

- 🛡️ **Browser fingerprint rotation** — `curl-cffi` impersonates real Chrome / Firefox / Safari TLS handshakes so the target sees a browser, not Python.
- 🌐 **Residential proxy rotation** via Apify Proxy — fresh session and exit IP on every block.
- 🔁 **Retries with exponential backoff** on `408 / 429 / 5xx` — up to 5 attempts per page, `Retry-After` honoured.
- 🧱 **Rate-limit-aware pacing** — when the target pushes back, we slow down instead of getting banned.
- 🧊 **Clean, typed dataset rows** — Pydantic-validated, ISO-8601 timestamps, stable IDs, JSON / CSV / Excel export straight from the Apify Console.
- 💰 **Pay-Per-Event pricing** — you only pay for results that hit your dataset. No data, no charge.

### 💡 Use cases

- **Local-restaurant SaaS** — keep a client-facing dataset of competitor listings, price tiers, and ratings current for a target metro.
- **Franchise / competitive-intel research** — compare cuisine mix, price tiers, and booking-popularity signals across a city or neighborhood.
- **Site-selection analysis** — map restaurant density, price tiers, and ratings for a candidate location before opening a new site.
- **Reputation monitoring** — track review counts and recent review snippets for a watchlist of restaurants over time.

### ⚙️ How to use it

1. Click **Try for free** at the top of the page.
2. Fill in the input form — most fields have sensible defaults.
3. Click **Start**. Output streams into the run's dataset.
4. Export from **Storage → Dataset** as JSON, CSV, or Excel — or fetch via the API.

### 📥 Input

| Field | Type | Required | Default | Notes |
|---|---|:--:|---|---|
| `location` | `string` | **yes** | 'New York, NY' | City or neighborhood to search on OpenTable, e.g. "New York, NY", or a city-listing slug. |
| `cuisine` | `string` | no | 'Italian' | Optional cuisine filter, e.g. "Italian". |
| `maxResults` | `integer` | no | 100 | Maximum number of restaurants to return in this run. |
| `includeReviews` | `boolean` | no | True | Populate the reviews field on each row with recent review snippets. |
| `maxReviewsPerRestaurant` | `integer` | no | 5 | Cap on review snippets collected per restaurant when Include reviews is on. |
| `proxyConfiguration` | `object` | **yes** | {'useApifyProxy': True, 'apifyProxyGroups': \['RESIDENTIAL']} | Mandatory — defaults to RESIDENTIAL given OpenTable's site-wide bot-defense wall on non-residential IPs. |

#### Example input

```json
{
  "location": "New York, NY",
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

### 📤 Output

Every row is one dataset item.

| Field | Type | Notes |
|---|---|---|
| `query_location` | `string` | Original location input for this row. |
| `restaurant_name` | `string` | Listing/detail page title. |
| `opentable_url` | `string` | Canonical https://www.opentable.com/r/<slug> URL. |
| `opentable_id` | `['string', 'null']` | Internal numeric/slug ID, if exposed (unconfirmed). |
| `city` | `string` | Parsed from location or the listing page. |
| `neighborhood` | `['string', 'null']` | Neighborhood name (unconfirmed). |
| `cuisines` | `array` | Cuisine tags on the listing/detail page. |
| `price_tier` | `['string', 'null']` | OpenTable's $–$$$$ symbol tier. |
| `rating_overall` | `['number', 'null']` | 1–5 aggregate star rating. |
| `rating_food` | `['number', 'null']` | Food sub-score (unconfirmed). |
| `rating_service` | `['number', 'null']` | Service sub-score (unconfirmed). |
| `rating_ambience` | `['number', 'null']` | Ambience sub-score (unconfirmed). |
| `review_count` | `['integer', 'null']` | Total review count on the listing. |
| `booked_today_count` | `['integer', 'null']` | "Booked N times today" popularity badge (unconfirmed). |
| `phone` | `['string', 'null']` | Contact number on the detail page. |
| `address` | `['string', 'null']` | Street address on the detail page. |
| `reviews` | `array` | Recent review snippets (author, rating, text, date — all nullable, unconfirmed), only when includeReviews=true, capped… |
| `scraped_at` | `string` | ISO 8601 UTC timestamp at row creation. |

#### Example output

```json
{
  "query_location": "New York, NY",
  "restaurant_name": "Gramercy Tavern",
  "opentable_url": "https://www.opentable.com/r/gramercy-tavern-new-york",
  "opentable_id": null,
  "city": "New York",
  "neighborhood": "Flatiron District",
  "cuisines": [
    "American",
    "Contemporary American"
  ],
  "price_tier": "$$$",
  "rating_overall": 4.8,
  "rating_food": 4.9,
  "rating_service": 4.7,
  "rating_ambience": 4.8,
  "review_count": 6421,
  "booked_today_count": 37,
  "phone": "+1 212-477-0777",
  "address": "42 E 20th St, New York, NY 10003",
  "reviews": [
    {
      "author": "J.",
      "rating": 5.0,
      "text": "Exceptional service.",
      "date": "2026-07-28"
    }
  ],
  "scraped_at": "2026-08-02T12:00:00+00:00"
}
```

### 💰 Pricing

Pay-Per-Event — you pay only when these events fire:

| Event | USD | What it is |
|---|---:|---|
| `actor-start` | $0.02 | One-off warm-up charge per run |
| `result-row` | $0.0015 | Per unique dataset item |

Example: 1 000 results at the rates above ≈ **$1.52**. No subscription, no minimum, no card to start — Apify gives every new account $5 of free credit.

### 🚧 Limitations

This scaffold-stage release ships input validation and the full output shape but does not yet push scraped rows — production fetching/parsing is gated on a cloud recon pass confirming OpenTable's live wire format (see the Actor's CHANGELOG). Live table-availability/booking-time search, making or managing reservations, and any authenticated diner-account view are out of scope.

### ❓ FAQ

**Do I need an OpenTable account or API key?**

No. This Actor scrapes OpenTable's own publicly listed restaurant data — no login, no API key.

**Why does this default to a residential proxy?**

OpenTable runs a site-wide bot-defense wall that blocks direct/datacenter-IP requests. We default proxyConfiguration to Apify's RESIDENTIAL group so runs clear that wall without you tuning anything.

**Can I filter by cuisine?**

Yes — set cuisine (e.g. "Italian") alongside location.

**Does every row include reviews?**

Only when includeReviews is true (the default); reviews is capped at maxReviewsPerRestaurant per row.

### 💬 Your feedback

Spotted a bug, hit a weird edge case, or need a new field? Open an
issue on the Actor's **Issues** tab on Apify Console — we ship
fixes weekly and we read every report.

***

<div align="center">

Built by **[Devil Scrapes](https://apify.com/DevilScrapes)** 😈 — a small fleet of
opinionated public-data Actors. Honest pricing, real engineering, zero fine print.

</div>

# Actor input Schema

## `location` (type: `string`):

City or neighborhood to search on OpenTable, e.g. "New York, NY", or a city-listing slug.

## `cuisine` (type: `string`):

Optional cuisine filter, e.g. "Italian".

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

Maximum number of restaurants to return in this run.

## `includeReviews` (type: `boolean`):

Populate the reviews field on each row with recent review snippets.

## `maxReviewsPerRestaurant` (type: `integer`):

Cap on review snippets collected per restaurant when Include reviews is on.

## `proxyConfiguration` (type: `object`):

Mandatory — defaults to RESIDENTIAL given OpenTable's site-wide bot-defense wall on non-residential IPs.

## Actor input object example

```json
{
  "location": "New York, NY",
  "cuisine": "Italian",
  "maxResults": 100,
  "includeReviews": true,
  "maxReviewsPerRestaurant": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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 = {
    "location": "New York, NY",
    "cuisine": "Italian",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/opentable-restaurants-scraper").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 = {
    "location": "New York, NY",
    "cuisine": "Italian",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/opentable-restaurants-scraper").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 '{
  "location": "New York, NY",
  "cuisine": "Italian",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call devilscrapes/opentable-restaurants-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/RDrHr1d5ThuTn6okb/builds/ZnDLeduw22S50Sz6d/openapi.json
