# OpenTable Restaurants Scraper · Sitemap URLs · $0.5/1K (`mlg14/opentable-scraper`) Actor

Export public OpenTable restaurant profile URLs for restaurant lead lists, city coverage research and catalog monitoring. Filters sitemap URL slugs by keyword and city. $0.5/1K restaurants. No live availability or booking.

- **URL**: https://apify.com/mlg14/opentable-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** Agents, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 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?

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

## OpenTable Restaurants Scraper

Scrape OpenTable restaurants as profile URLs from its public restaurant sitemaps and export the results to CSV, JSON, or Excel. This OpenTable API alternative searches URL slugs by restaurant keyword and city, then records a URL-derived label and the sitemap source for every match. It is a catalog discovery scraper: it does not check live reservation availability, verify that a restaurant is still operating, or create bookings.

### What data can you extract from OpenTable?

Each dataset item represents one restaurant profile URL published in a restaurant-profile sitemap. The site publishes separate listing and network profile categories. Select one category per run, and use a second run when you need to compare their coverage. The scraper records the exact URL from the source rather than building guessed links.

| Field | Description | Example |
| --- | --- | --- |
| `restaurantUrl` | Profile URL exactly as published in the sitemap. | `https://www.opentable.com/r/michaels-new-york` |
| `restaurantSlug` | Last segment of the profile URL path. | `michaels-new-york` |
| `name` | Readable label made from the slug. It is not a verified restaurant name. | `Michaels New York` |
| `nameSource` | How the label was created. Currently always `urlSlug`. | `urlSlug` |
| `sourceSitemap` | Sitemap shard containing the URL. | `https://www.opentable.com/sitemap_restaurants_restaurant-profile_listing_1.xml.gz` |
| `sitemapUpdatedAt` | Published update time for that sitemap shard. This is not a record update time. | `2026-09-23T08:40:12.499Z` |

The scraper does not invent ratings, cuisines, street addresses, prices, images, opening hours, or time slots. Those fields are not in the sitemap records used here. A URL can remain discoverable even when a venue has changed, closed, or stopped accepting reservations. Confirm details on the restaurant profile before relying on a result for an operational decision.

#### How the restaurant search works

The search runs against restaurant URL slugs, not against the site's live search index. For example, a city value of `New York` becomes `new-york`; a slug must contain that sequence to match. A query such as `sushi bar` becomes two words, and both words must appear as complete hyphen-separated slug tokens. The city condition and keyword condition are combined. This makes filtering simple and reproducible, but it can miss restaurants whose URL omits the city or uses a spelling that differs from the name a diner knows.

The `name` field is deliberately paired with `nameSource`. Turning a slug into title case is useful for scanning a CSV, but it does not establish the venue's official display name. Punctuation, accents, abbreviations, and brand styling can differ. Keep `restaurantUrl` as the stable reference in downstream records, and treat the label as a search aid.

### How to scrape OpenTable

1. Enter a city, a restaurant keyword, or both. The default city is `New York`, so the input form is ready for a small first run.
2. Set `maxItems` to control the number of dataset records. Start with 50 or 100 to inspect the matching URLs before exporting a larger catalog.
3. Choose the listing profile catalog. If a venue is missing, run the network profile category separately. The two categories are searched independently.
4. Run the actor and open the default dataset. Download the results as JSON, CSV, or Excel, or access them through the dataset endpoint.
5. Open profile URLs to verify current restaurant details when needed. The dataset itself contains sitemap data only.

The actor reads the sitemap index, selects its restaurant-profile shards, scans their XML entries, applies the slug filters, and stops when `maxItems` is reached or the selected shards are exhausted. Duplicate URLs within a run are removed. The cap is global across all selected shards. Results are produced in sitemap order, not by restaurant rating, current popularity, geographic distance, or reservation availability.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `query` | string | Empty | Restaurant words to match in the URL slug. Every query word must occur as a slug token. |
| `city` | string | `New York` | City text to match in the URL slug. Set it to an empty string to search by keyword alone. |
| `maxItems` | integer | `100` | Maximum matches to export. `0` removes the item cap and scans all selected shards. |
| `includeNetwork` | boolean | `false` | Search network profile shards instead of listing profile shards. |
| `proxyConfiguration` | object | Enabled | Connection configuration for fetching the public sitemap index and shards. |

At least one of `query` or `city` must contain text. An empty city is useful for a distinctive restaurant name. A broad city query can produce many results, while a narrow name and city combination can correctly produce none. If you need a complete catalog, run separate inputs for the listing and network categories and combine the exported datasets using `restaurantUrl` as the deduplication key.

Example: export up to 50 profile URLs whose slugs contain `new-york`:

```json
{
  "city": "New York",
  "query": "",
  "maxItems": 50,
  "includeNetwork": false
}
```

Example: look for profile URLs containing a restaurant keyword across the selected catalog:

```json
{
  "city": "",
  "query": "steakhouse",
  "maxItems": 100,
  "includeNetwork": false
}
```

A query keyword is a slug filter. It is not a cuisine classifier. For example, `Italian` matches URLs that actually contain that word; it cannot identify every restaurant serving Italian food. Similarly, city filtering cannot infer a venue's address from a URL that lacks a city token.

### Output example

This item came from a successful 50-item New York golden run. The label is generated from the URL, while the URL and shard timestamp are copied from the public sitemap sources.

```json
{
  "restaurantUrl": "https://www.opentable.com/r/michaels-new-york",
  "restaurantSlug": "michaels-new-york",
  "name": "Michaels New York",
  "nameSource": "urlSlug",
  "sourceSitemap": "https://www.opentable.com/sitemap_restaurants_restaurant-profile_listing_1.xml.gz",
  "sitemapUpdatedAt": "2026-09-23T08:40:12.499Z"
}
```

The golden input requested 50 records, and the remote run returned 50. Every declared output field was present on every item in that run. That result demonstrates the sitemap workflow for this input; it does not verify live restaurant operation or reservation inventory. A different city or keyword may have fewer matches. Sitemap contents and timestamps can change whenever the site republishes its catalog.

### Use cases

- Build a list of public restaurant profile URLs to review manually for a chosen city. The URL is the reliable handoff field; the generated label helps a reviewer scan the list.
- Check whether a known restaurant name has a discoverable profile URL. Search a distinctive word first, then open candidate links to verify identity.
- Compare listing and network profile catalogs. Run each category and deduplicate by `restaurantUrl` to identify overlap or category-specific entries.
- Monitor changes in discoverable profile URLs over time. Schedule identical inputs, store the URL sets, and compare additions and removals between runs.
- Prepare a seed list for a separate, authorized enrichment workflow. Preserve the source URL and timestamp so later fields can be traced to their own source.
- Create regional navigation or research lists when a city is included in restaurant URL slugs. Review each match because URL text alone does not prove the physical location.

These uses depend on profile discovery, not on live booking data. For a reservation workflow, a user still needs to open the restaurant page and check the requested date, party size, and current time slots. This scraper does not collect account data or alter any reservation.

### How much does it cost to scrape OpenTable restaurants?

The current dataset event price is **$0.0005 per exported URL**, or **$0.50 per 1,000 results**. A 50-result run therefore has a result charge of $0.025; 100 results cost $0.05; 5,000 results cost $2.50 at that event price. Check the run screen for the current price and any platform usage applicable to your account. Pricing can change before a future run.

The result count is controlled by `maxItems` and the number of matching sitemap entries. A run with 100 as its cap can cost less when only 20 URLs match. Scanning multiple shards does not by itself create additional dataset items; the per-result amount follows exported items. The actor stops pushing results when the platform reports that the run's charge limit has been reached. For a predictable small evaluation, leave the default 100-item cap in place.

The visible 50-result golden run completed in about ten seconds under its test configuration. Execution time can change with network conditions, XML size, shard count, and platform startup time. A search that reaches the first 50 matches early may stop before later shards are fetched. A rare keyword or a `maxItems` value of `0` requires a fuller scan and may take longer.

### Tips for best results

Use a city and a broad item cap when you want a sample of URLs quickly. Search one category at a time and save which category produced each dataset. Use a keyword alone when the city is not part of the restaurant slug. If a restaurant uses a short, unusual spelling, try a distinctive single token instead of its full display name. The actor treats query words as an AND condition, so extra words can reduce results to zero.

For larger exports, choose a cap that fits your budget and downstream processing. `maxItems: 0` means no dataset cap; it does not mean an unlimited source catalog. Only URLs in the selected sitemap category are considered. The XML shard list comes from the site's current sitemap index, so the actor does not depend on a fixed number of shard files. The source timestamp helps identify which version of a shard produced each record.

When combining outputs from two runs, deduplicate on the full `restaurantUrl`. A slug alone is less safe because URL paths can differ. Keep the `sourceSitemap` value if you need to audit coverage. If a URL from an earlier export disappears from a later one, investigate before treating it as a restaurant closure: catalog publication rules can change independently of a venue's status.

### Limits

This actor reads public restaurant-profile sitemaps because live search and restaurant pages currently present an access challenge in the available network path. The accessible sitemap entries contain URLs, not live restaurant details. As a result, the actor cannot report availability slots, book a table, view or cancel reservations, or supply ratings, prices, address fields, cuisine labels, photos, menus, or review counts. It also cannot filter by reservation date, preferred time, party size, rating, price range, or cuisine unless those words happen to appear in a URL slug.

Sitemap inclusion is not proof that a restaurant is active or bookable. Some listed URLs may point to historical entries. The generated `name` is not a verified on-page title. City matching is based solely on the URL, so some valid local restaurants will be omitted and some slugs can be ambiguous. The default output order is the order supplied by the sitemap. Pagination is not part of this source; the site publishes multiple XML shards instead.

If the sitemap index or a selected shard becomes unavailable, the actor fails rather than silently returning an empty dataset from an error page. If the site changes its sitemap naming or XML structure, the scraper may need an update. For any workflow where restaurant status or availability matters, verify the current profile directly before acting on a result.

### Programmatic use

A scheduled run can use a fixed city input and compare `restaurantUrl` values across datasets. Another run can search a distinctive restaurant keyword with an empty city, then route candidate URLs to a reviewer. Dataset items are flat JSON objects, so common data tools can read them without parsing nested restaurant records. The default dataset endpoint is also exposed in the actor run output.

Programmatic consumers should use `restaurantUrl` as the identifier and preserve `nameSource` in displays. That prevents a generated label from being mistaken for a verified venue name. When joining these URLs to a separate restaurant database, use a review step for ambiguous matches. Neither the URL slug nor a shared word is enough to establish that two records describe the same location.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/opentable-scraper`

An agent gets back flat JSON items with the restaurant profile URL, a URL-derived label and the sitemap source. Keep results bounded with `maxItems`; 20 to 50 items finish in well under a minute.

**Prompt 1:** "List 20 OpenTable restaurant profile URLs for New York."

```json
{
  "city": "New York",
  "query": "",
  "maxItems": 20
}
```

**Prompt 2:** "Find OpenTable restaurant URLs with steakhouse in the name, any city, up to 20."

```json
{
  "city": "",
  "query": "steakhouse",
  "maxItems": 20
}
```

**Prompt 3:** "Get 20 OpenTable network restaurants for Chicago so I can compare coverage."

```json
{
  "city": "Chicago",
  "query": "",
  "maxItems": 20,
  "includeNetwork": true
}
```

### FAQ

#### Does this actor check tables for a date and party size?

No. The source is a public sitemap catalog, which contains restaurant profile URLs. It does not include reservation inventory. This actor has no date, time, or party-size input because those filters would imply a result it cannot verify.

#### Can it make, change, or cancel a reservation?

No. It never signs in to an account and never submits reservation actions. Its output is a list of public profile URLs. A person can follow a URL and use the site's normal booking flow if the venue is currently accepting reservations.

#### Is the `name` field the restaurant's official name?

No. The actor converts the final URL path segment into title case. That transformation can leave location words in the label and may miss punctuation or preferred spelling. The `nameSource` field explicitly identifies the label's origin.

#### Why did my city search miss a restaurant?

City matching requires the normalized city text to appear in the restaurant URL slug. A venue may have a valid local profile whose URL omits the city. Search a distinctive restaurant keyword with an empty city, or inspect the other sitemap category.

#### Why did I get fewer results than `maxItems`?

`maxItems` is a ceiling, not a promised count. The selected sitemap category may contain fewer URLs matching your city and keyword. Each query word is required as a complete slug token; remove a word or clear the city to broaden the search.

#### Do I need to configure a proxy?

The default input uses the platform proxy to retrieve sitemap files. Leave the setting as provided unless your environment needs a specific proxy configuration. The actor does not need a login or private account data for this source.

#### Can I export to spreadsheets or schedule monitoring?

Yes. Download the default dataset in CSV or Excel format, or schedule repeated runs with the same input. Compare the `restaurantUrl` sets to track changes in published URLs. Treat additions and removals as catalog changes until verified.

#### Is it legal to use the results?

The actor extracts public sitemap entries. Your use of the data should comply with applicable law, the site's terms, and privacy obligations. The output contains profile links and URL-derived labels; it is not intended for collecting personal account information.

### Integrations

The default dataset can be consumed through the platform API, webhooks, spreadsheet exports, and workflow integrations. Use a scheduled run for periodic snapshots, then pass dataset items to a review queue or a database. Keep the source fields with exported data so the origin of each URL remains clear. Downstream systems that require current restaurant details should verify those details from an appropriate source before displaying or acting on them.

### Support

Open an issue on the Issues tab with the input, run link, and a short description of the expected URLs. Include an example sitemap URL when reporting a missing profile category or changed XML format. We reply within 24 hours and consider field requests when the requested values exist in a dependable public source.

# Actor input Schema

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

Words to match in public restaurant URL slugs; every word must appear as a slug token, e.g. steakhouse or sushi bar. It is not a cuisine filter. Use it to find a named restaurant; leave empty to filter by city only.

## `city` (type: `string`):

City text to match in restaurant URL slugs, free text, e.g. New York or Chicago. Some restaurants omit the city in the URL and are missed. Use it for a city list; leave empty to search by keyword alone.

## `maxItems` (type: `integer`):

Maximum number of matching restaurant URLs to export, integer 0 or higher, e.g. 50. Use 0 to scan all selected sitemap shards with no cap. Set 20 to 100 for a quick first run.

## `includeNetwork` (type: `boolean`):

Choose the sitemap category: false searches listing profiles, true searches network profiles, e.g. true for network restaurants. Leave false first; set true in a second run to compare coverage.

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

Apify Proxy settings used to fetch the public sitemap index and shards. Example: {"useApifyProxy": true}. Leave the default unless you need a custom proxy.

## Actor input object example

```json
{
  "query": "",
  "city": "New York",
  "maxItems": 100,
  "includeNetwork": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `restaurants` (type: `string`):

Public restaurant profile URLs and URL-derived labels in the default dataset.

# 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": "",
    "city": "New York"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/opentable-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 = {
    "query": "",
    "city": "New York",
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/opentable-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 '{
  "query": "",
  "city": "New York"
}' |
apify call mlg14/opentable-scraper --silent --output-dataset

```

## MCP server setup

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