# OpenTable Restaurant Scraper (`moving_beacon-owner1/opentable-restaurant-scraper`) Actor

Scrapes OpenTable restaurants by city, returning names, cuisine, price range, ratings, reviews, addresses, coordinates, phone numbers, photos, and top reviews. Supports pagination for larger restaurant lists and uses US proxies for reliable results.

- **URL**: https://apify.com/moving\_beacon-owner1/opentable-restaurant-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Developer tools, Travel, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 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?

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

## OpenTable Restaurant Scraper

Collects restaurants near a city from OpenTable (opentable.com). For each
restaurant it returns the name, cuisine, price band, rating, review count,
address, coordinates, phone, a photo and a top review.

### Input

| Field | Default | Description |
|---|---|---|
| `location` | `boston` | City to search near (e.g. `chicago`, `san francisco`, `manhattan`, `miami`). |
| `limit` | `10` | Maximum number of restaurants to return (1–200). |
| `max_pages` | `8` | Maximum city landing pages to fetch (1–40). |
| `proxyConfiguration` | US proxy on | Optional. Enable a US-based proxy for the most reliable results. |

### Output

One record per restaurant:

```json
{
  "restaurant_id": 34726,
  "name": "Union Oyster House",
  "primary_cuisine": "Seafood",
  "price_band": "$$",
  "price_band_id": 2,
  "rating": 4.5,
  "review_count": 9109,
  "recent_reservation_count": 172,
  "neighborhood": "Faneuil Hall",
  "address_line1": "41 Union St",
  "city": "Boston",
  "post_code": "02108",
  "country": "United States",
  "latitude": 42.3612817,
  "longitude": -71.0562,
  "phone": "+16177572...",
  "description": "...",
  "profile_url": "https://www.opentable.com/r/union-oyster-house-boston",
  "photo_url": "https://resizer.otstatic.com/v4/photos/...",
  "top_review_text": "Excellent as always!",
  "top_review_overall": 5,
  "top_review_user": "Karen",
  "top_review_date": "2026-08-14T18:30:00-04:00",
  "source_city_slug": "boston",
  "raw": { ... }
}
```

### Notes

- Runs with empty input (defaults to `boston`).
- Enable a US-based proxy for the most reliable results.
- To reach more than about ten results the actor follows OpenTable's adjacent-city
  links, so higher limits may include restaurants in neighbouring towns of the
  same metro. Please respect OpenTable's Terms of Use and keep limits modest.

# Actor input Schema

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

City to search near, e.g. 'boston', 'chicago', 'san francisco', 'manhattan', 'miami'. Slugified to opentable.com/food-near-me/<city>. Most major-city names resolve directly.

## `limit` (type: `integer`):

Maximum number of restaurant records to return. Each city page yields ~10; higher limits page through OpenTable's adjacent-city links.

## `max_pages` (type: `integer`):

Maximum number of city landing pages to fetch while paging toward the restaurant limit.

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

Proxy settings for the run. Enable a US-based proxy for the most reliable results, especially for sites that limit non-US or datacenter traffic. Optional — leave off to run directly.

## Actor input object example

```json
{
  "location": "boston",
  "limit": 10,
  "max_pages": 8,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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": "boston",
    "limit": 10,
    "max_pages": 8,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/opentable-restaurant-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": "boston",
    "limit": 10,
    "max_pages": 8,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/opentable-restaurant-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": "boston",
  "limit": 10,
  "max_pages": 8,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moving_beacon-owner1/opentable-restaurant-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/opentable-restaurant-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/fnagPzjCxhz67nqo4/builds/mvwMgU7K5VCyBB9tp/openapi.json
