# OpenTable Availability Scraper & Table Alert Monitor (`scrapebench/opentable-availability-scraper`) Actor

Open OpenTable tables for any date, party size and time window: search a city by cuisine, watch restaurants for new tables, or map which days are open.

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

## Pricing

from $0.002 / availability check

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 Availability Scraper & Table Alert Monitor

### Pain points

- The tables people want open up at random times, and refreshing OpenTable by hand means missing them.
- The leading checkers take a handful of restaurant links for one date, so a whole city or a week of nights means many runs.
- A monitor that cannot tell "no tables" from "not released yet" or "no answer" sends false all-clears.
- A restaurant link can point to the wrong place: the same name exists in several cities, and some listings no longer take online bookings.

### What we solve

- City search and availability in one run: every restaurant for your cuisine, date, party size and time window, with its open times and contact details in the same row.
- A date range of up to 90 days, one row per restaurant per day, with a day status: available, no_times, not_released, closed, party_too_large.
- "Flag new tables" marks only the tables that appeared since the watch's last run, so an alert fires on a change, not on every run.
- Numeric ids are exact; a pasted /r/ link is matched by name and the row says which restaurant was used. A restaurant that does not take online bookings, or is closed, comes back as a free note, never a billed "no tables" row.

### Summary

Two jobs in one actor, in the same rows as our Resy actor. Search: give a city or area (New York, Chicago, London, or the latitude and longitude of a venue), optional cuisines, a date or a range, a party size and a time window, and get OpenTable's restaurants there, each with every open time that day, its seating, card policy, price and points, plus cuisine, price band, rating, phone, street address, website, hours and booking policies. Watch: list the OpenTable restaurants you care about (their links or numeric ids), a date or up to 90 days, and get one row per restaurant per day saying whether a table is open, and if not, why: no times left, not yet released, closed that day, or a party too large to book online. Switch on "flag new tables" and the actor remembers what was open on the watch's last run and marks the tables that appeared since, so a run scheduled every few minutes plus a webhook becomes an alert that fires only when something opens. Booking stays with you: the actor reports tables and never books one.

### Who it's for

- Developers building table alerts, Discord or Telegram bots and AI dining agents
- Diners and concierge services waiting for a table at hard-to-book restaurants
- Event and conference planners looking for group dinners near a venue
- Hotel concierges and travel planners booking dinners for guests
- Hospitality analysts tracking how booked-up a city's restaurants are

### How to use

This actor does two jobs. Run it, then collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API).

**Get a list (export):** no names, just filters; returns the whole matching list.

```json
{
  "mode": "search",
  "locations": [
    "New York"
  ],
  "queries": [
    "italian"
  ],
  "partySize": 2,
  "timeFrom": "18:00",
  "timeTo": "21:00",
  "maxResults": 20
}
```

**Watch restaurants for a table (lookup):** put Watch specific restaurants for open tables over a range of dates in `mode`, `venues`, `daysAhead`, `partySize`, `timeFrom`, `timeTo`, `onlyNew`; **Inputs** below says how each is matched.

```json
{
  "mode": "watch",
  "venues": [
    "1207555",
    "https://www.opentable.com/r/little-owl-new-york",
    "151951"
  ],
  "daysAhead": 14,
  "partySize": 2,
  "timeFrom": "19:00",
  "timeTo": "21:30",
  "onlyNew": true
}
```

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `name` | The restaurant's name on OpenTable |
| `date` | The day checked |
| `party_size` | Guests the tables are for |
| `available` | True when at least one table is open in your time window |
| `slot_count` | Number of open times in your window |
| `first_slot` | Earliest open time, HH:MM |
| `last_slot` | Latest open time, HH:MM |
| `slots` | Each open time: time, seating (Standard, Bar, Outdoor...), type (Standard or a points table), card_required and card_policy (HOLD...), price_amount where the time has a price, and points |
| `new_slots` | With "flag new tables" on: the open times not seen on this watch's last run |
| `has_new_slots` | With "flag new tables" on: true when a table opened since the last run |
| `calendar_status` | The day's status: available, no_times, no_times_in_window, not_released, closed, party_too_large, party_too_small, same_day_cutoff |
| `no_times_reason` | OpenTable's own reason when a day has no times (NoTimesExist, TooFarInAdvance...) |
| `opentable_url` | Opens the restaurant on OpenTable for this date, time and party size |
| `venue_id` | OpenTable's own numeric id for the restaurant |
| `cuisine` | The restaurant's main cuisine |
| `price_range` | OpenTable price band, 1 ($) to 4 ($$$$) |
| `rating` | OpenTable diners' overall rating, 1 to 5 |
| `rating_count` | Number of OpenTable reviews |
| `neighborhood` | Neighborhood |
| `city` | City |
| `region` | State or region |
| `country` | Country |
| `latitude` | Latitude |
| `longitude` | Longitude |
| `phone` | The restaurant's phone number |
| `address` | Street address |
| `postal_code` | ZIP or postal code |
| `website` | The restaurant's own website |
| `description` | The restaurant's own description on OpenTable |
| `min_party_size` | Smallest party the restaurant books online |
| `max_party_size` | Largest party the restaurant books online |
| `booking_window_days` | How many days ahead the restaurant releases tables |
| `booking_policies` | The restaurant's own booking notes for the day: grace period, card hold or cancellation fee, table time |
| `resolved_id` | For a pasted /r/ link: the OpenTable id the link was matched to |
| `resolved_name` | For a pasted /r/ link: the name of the restaurant it was matched to |
| `extras` | Everything else OpenTable shows for the restaurant: all cuisines, price band wording, dining style, dress code, hours, chef, cross street, parking, transit, payment options, seating options, food/service/ambience/value/noise ratings, review summary, bookings in the last day, takeout, private dining capacity and rooms |
| `query` | The place or restaurant this row was found for |
| `source_url` | The OpenTable page this row is about |

Sample:

```json
{
  "venue_id": 8033,
  "name": "Little Owl",
  "opentable_url": "https://www.opentable.com/restaurant/profile/8033?covers=6&dateTime=2026-12-12T19%3A00",
  "date": "2026-12-12",
  "party_size": 6,
  "available": true,
  "slot_count": 1,
  "first_slot": "21:45",
  "last_slot": "21:45",
  "slots": [
    {
      "time": "21:45",
      "end_time": null,
      "seating": "Standard",
      "type": "Standard",
      "min_party": null,
      "max_party": null,
      "table_minutes": null,
      "card_required": true,
      "card_policy": "HOLD",
      "deposit_required": false,
      "deposit_fee": null,
      "cancellation_fee": null,
      "cancel_cutoff_hours": null,
      "price_amount": null,
      "points": 100
    }
  ],
  "new_slots": null,
  "has_new_slots": null,
  "calendar_status": "available",
  "no_times_reason": null,
  "cuisine": "Contemporary American",
  "price_range": 3,
  "rating": 4.8,
  "rating_count": 5177,
  "neighborhood": "West Village",
  "city": "New York",
  "region": "NY",
  "country": "United States",
  "latitude": 40.732302,
  "longitude": -74.005244,
  "phone": "(212) 741-4695",
  "address": "90 Bedford Street",
  "postal_code": "10014",
  "website": "http://www.thelittleowlnyc.com/",
  "min_party_size": 1,
  "max_party_size": 9,
  "booking_window_days": 30,
  "bookable_online": true,
  "permanently_closed": false,
  "extras": {
    "dining_style": "Casual Dining",
    "dress_code": "Smart Casual",
    "rating_food": 4.8,
    "bookings_last_day": 72
  },
  "query": "8033",
  "source_url": "https://www.opentable.com/restaurant/profile/8033?covers=6&dateTime=2026-12-12T19%3A00"
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `mode` | no | string | `"search"` | Search: OpenTable restaurants in a city or near a point, each with its open tables for the date. Watch: the OpenTable restaurants you list, checked for open tables on your dates; schedule it to get an alert when a table opens. |
| `locations` | no | array | `["New York"]` | One per line: a city or area as you would type it on OpenTable (New York, Chicago, IL, London, River North), or "latitude,longitude" for the area around a venue or hotel (for example 40.7505,-73.9934 for Madison Square Garden). Each is searched on its own. |
| `location` | no | string | — | One city or "latitude,longitude", for saved tasks and API calls that send a single value. Use the list above for several. |
| `venues` | no | array | `[]` | One per line: the restaurant's OpenTable link (https://www.opentable.com/r/little-owl-new-york or https://www.opentable.com/restaurant/profile/8033) or its numeric OpenTable id (8033). The numeric id is exact; a /r/ link is matched by name and the row says which restaurant was used. |
| `venue` | no | string | — | One OpenTable link or id, for saved tasks and API calls that send a single value. |
| `startUrls` | no | array | — | Optional. The same as Restaurants to watch, as a list of links (for tools that send startUrls). Each is checked like a watched restaurant. |
| `date` | no | string | — | YYYY-MM-DD. Empty means today. With "Until date" it is the first day of a range. |
| `dates` | no | array | `[]` | Extra days to check, YYYY-MM-DD, one per line. Past dates are skipped with a free note. |
| `dateTo` | no | string | — | YYYY-MM-DD. Check every day from Date to this one (up to 90 days). In Watch mode OpenTable's calendar is read once per 14 days and days it does not book yet (or is closed) are not opened, so a long range stays fast. |
| `daysAhead` | no | integer | — | Check every day from today for this many days (up to 90), instead of fixed dates. Best for a scheduled watch: the dates move with the calendar, so a saved task never goes stale. |
| `partySize` | no | integer | `2` | Number of guests (1 to 20). Only tables for this many are returned; a restaurant that cannot seat that many online says so in calendar_status. |
| `timeFrom` | no | string | — | HH:MM, 24-hour (18:00). Only tables from this time on. Empty means any time. OpenTable shows times within 3.5 hours of the asked time, so the actor asks for the middle of your window (19:00 when no window is given). |
| `timeTo` | no | string | — | HH:MM, 24-hour (21:30). Only tables up to this time. Empty means any time. |
| `onlyNew` | no | boolean | `false` | Remembers what was open on this watch's last run and fills new_slots and has_new_slots, so a scheduled run plus a webhook alerts only when a table opens. The first run counts every open table as new. |
| `queries` | no | array | `[]` | Optional, one per line: words OpenTable matches against cuisine and name (italian, sushi, steakhouse, a restaurant name). Each is searched and a restaurant found twice is returned once. Empty means every restaurant. |
| `query` | no | string | — | One cuisine or name, for saved tasks and API calls that send a single value. |
| `priceRanges` | no | array | `[]` | Keep only these OpenTable price bands, 1 ($) to 4 ($$$$); each row's extras.price_band_label gives the band's own wording ("$30 and under"). Empty keeps all. |
| `minRating` | no | string | — | Keep only restaurants OpenTable diners rate at least this (for example 4.5). Empty keeps all. |
| `onlyAvailable` | no | boolean | `false` | Drop restaurants with no table for your date, party size and time window. |
| `radiusKm` | no | integer | — | Keep only restaurants this close to the point or city centre. Empty means OpenTable's own area for a city, 3 km for "latitude,longitude". |
| `maxResults` | no | integer | `20` | Cap for EACH city and date. OpenTable lists several thousand restaurants in New York; the order is OpenTable's own. |
| `includeDetails` | no | boolean | `true` | On by default: opens each restaurant for its full set of times around your time, its phone, website, hours, dress code and booking policies. No extra charge. Off is faster but each row then has only the 3 times nearest your time and no phone or website. Watch rows always have them. |
| `proxyConfiguration` | no | object | `{"useApifyProxy": false}` | Off by default (not needed). If a run comes back with a 'blocked' row, turning on a proxy is an option. Included in the price. |

### Pricing (Pay Per Event)

You pay per result (`availability-check`) — **no charge for empty runs**. Example: **1000 availability checks** at *$0.002/result* ≈ **$2.00**.

Search mode is charged per restaurant returned instead: $0.003 per restaurant with its open times for the date (event "Restaurant"), phone, address, website and hours included. In Watch mode a date range is one row per restaurant per day, so watching 20 restaurants for 14 days is 280 checks ($0.56) per run. Compute is included; you pay only these events.

### Use cases

- Table alerts: watch a list of restaurants every 5 to 15 minutes for the next 14 days, 19:00 to 21:30, for 2, and send a message the moment has_new_slots is true.
- What's open tonight: every Italian restaurant in a city with a table for 2 between 18:00 and 21:00, with phone and address.
- Group dinners: restaurants within 3 km of the event venue with a table for 8 to 12 on the conference nights.
- Trip planning: which restaurants have tables for 4 on each night of a stay, filtered by price band and rating.
- Booking pressure: the share of a neighborhood's restaurants still open on a Saturday night, and each one's bookings in the last day, week by week.
- One monitor for Resy and OpenTable: the same input names and row fields as our Resy actor, so one parser reads both.

### Why this actor

- Search and availability in one run, across many restaurants and many dates, with no 10-link or one-date cap.
- A day status that tells sold out from not released yet, closed or too large a party, plus a free "blocked" row when OpenTable does not answer.
- Every row carries the restaurant's phone, street address, website, hours and booking policies with the tables, at no second charge.

### Limitations & updates

Availability is what OpenTable shows at the moment of the run and changes by the minute; a table can be gone by the time you open the link. Only restaurants that take reservations on OpenTable are covered (Resy, Tock and walk-in tables are not; our Resy actor covers Resy). OpenTable gives times within 3.5 hours of the asked time, so a window wider than 7 hours is not covered end to end. Search order is OpenTable's own, and Maximum restaurants caps each city and date. Slot end times, table lengths and per-slot cancellation fees are not given by OpenTable, so those slot fields stay empty; the restaurant's own policy text is in booking_policies. Experiences, ticketed events, private dining requests and menus are not covered yet. The actor reports availability and never books.

### FAQ

**How do I get an alert when a table opens?**

Use Watch mode: add the restaurants' OpenTable links or ids, "Next N days" (or fixed dates), party size and time window, and switch on "Flag tables that are new since the last run". Save it as a task and schedule it (every 5 to 15 minutes is common), then add a webhook or an n8n/Make/Zapier step that fires when a row has has_new_slots = true. The first run counts every open table as new; after that only tables that appeared since the previous run are flagged.

**Does it book the table?**

No, and it never logs in. Every row has opentable_url, which opens the restaurant on OpenTable for the date, time and party size, so you or your own tools book it. OpenTable's official reservation API is for approved partners only.

**Which link or id should I give?**

The numeric OpenTable id is exact: it is the number in opentable.com/restaurant/profile/<id>, or the rid in a booking link. A /r/ link (opentable.com/r/little-owl-new-york) is matched by name, and the row's resolved_id and resolved_name say which restaurant was used. If several restaurants match, a free note lists the others; if none does, a free note asks for the id.

**What does a day status mean?**

available: at least one table is open around your time. no_times: OpenTable has no times left that day. no_times_in_window: there are times, but none inside your window. not_released: the day is past the restaurant's booking window (booking_window_days). closed: the restaurant blocks that day. party_too_large / party_too_small: the restaurant does not book that party size online. In Watch mode a range is read from OpenTable's calendar first, so days it settles (not released, closed, party size) cost no extra request.

**What is in each table (slot)?**

The time, the seating (Standard, Bar, Outdoor...), the type (a Standard table or one that earns extra OpenTable points), whether a card is required and the card policy (HOLD means a card is held for no-shows), price_amount where the time is sold with a price, and the points it earns. The day's booking_policies carry the restaurant's own text about grace periods, holds and cancellation fees. Rows never carry booking identifiers.

**Which times are returned?**

OpenTable shows the times within 3.5 hours either side of the time asked. The actor asks for the middle of your time window (19:00 when you give none), so a window of up to 7 hours is covered in full; for a wider one, a free note suggests splitting it.

**Which cities can I search?**

Any place OpenTable's own location box knows: cities (New York, Chicago, IL, London), neighborhoods (River North) and areas. For the area around a specific place, such as a conference venue or hotel, give "latitude,longitude" and a radius in km (3 km by default). OpenTable listed 799 Italian restaurants for New York on 2026-11-24, and Maximum restaurants caps each city and date.

**What if a restaurant does not take online bookings?**

Some restaurants are listed on OpenTable but take reservations elsewhere, and some are closed. Those come back as a free no_match note naming the restaurant and its address, never as a billed "no tables" row.

**How am I charged?**

Watch mode: $0.002 per restaurant per date checked, whether or not a table is open, because the check is the answer. Search mode: $0.003 per restaurant returned with its times for the date, with phone, address, website and hours included. Free rows (a refused request, a skipped past date, a link that is not an OpenTable restaurant, a restaurant that does not book online) are never charged.

**What if OpenTable does not answer?**

Each request is retried. If OpenTable still refuses or does not answer, the restaurants checked so far are delivered and a free row with notice_type "blocked" names the ones that were not, so a monitor never reads a failed check as "no tables".

### Which actor to choose

Works with:

- **Resy Availability Scraper & Table Alert Monitor** — The restaurant takes reservations on Resy instead: same inputs and the same rows, so one monitor reads both.
- **Restaurant, Cafe & Bar Scraper: Email, Phone & Address** — You want every restaurant in an area from Google Maps, including those not on OpenTable, with emails.

### Guides & use cases

Written up on **[scrapebench.dev](https://scrapebench.dev)** — the bench that runs and verifies this actor against the live source every night:

- **How-to:** [How to run OpenTable Availability Scraper & Table Alert Monitor](https://scrapebench.dev/guides/how-to-opentable-availability-scraper/)
- **Use case:** [Italian restaurants in New York with open OpenTable tables tonight](https://scrapebench.dev/use-cases/new-york-opentable-italian-tonight/)
- **Use case:** [Watch OpenTable restaurants and flag new tables](https://scrapebench.dev/use-cases/opentable-table-alert-watch/)

More actors, coverage and nightly verification results: **[scrapebench.dev](https://scrapebench.dev)**

### Works with AI assistants (MCP)

Callable as an MCP tool, so Claude, Cursor, VS Code Copilot and other MCP clients can run it directly. Grab the config from the [MCP tab](https://apify.com/scrapebench/opentable-availability-scraper/api/mcp) on this page — Apify hosts the server and keeps that snippet current, and OAuth signs you in on first connect, so no API token goes in your config file.

Then just ask:

> "Which Italian restaurants in New York have a table for 2 between 6pm and 9pm today on OpenTable?"

Start with Maximum restaurants at 20 to see the rows, then switch to Watch mode with the restaurants you like to keep an eye on them. Runs started this way bill exactly like any other run.

### Data & lawful use

This actor collects publicly available information that OpenTable (OpenTable, Inc., part of Booking Holdings) publishes for public
lookup — licence records, business listings and the contact details professionals list there.
Some of it identifies individuals (sole proprietors, licence holders, agents), so treat any
names, phone numbers and emails in your results as personal data.

When you run this actor, you decide what is collected and what it is used for, so you are the
controller of that data and we act only as your processor (Apify Standard Actor Contract).
You need a lawful basis for your use, must honour opt-out and deletion requests, and must
follow the marketing rules that apply to you (CAN-SPAM, TCPA, GDPR, CCPA and similar).
Don't use the output for unsolicited bulk messaging, for screening covered by the FCRA, or
for anything the source's own terms forbid.

Your results are stored in your own Apify account. We don't keep a copy of your results and
don't sell or share them.

### Disclaimer

This is an independent tool. It is not affiliated with, endorsed by or sponsored by
OpenTable (OpenTable, Inc., part of Booking Holdings). Names and marks are used only to describe the data source. Records are
provided as published by the source and may be out of date or incomplete. For anything
consequential (hiring, a permit, a legal decision), confirm the record with the issuing
agency. You are responsible for making sure your use complies with applicable law and the
source's terms.

### Need help?

Open an issue on this actor's **Issues** tab and we'll respond there. Bug reports, missing
fields and feature requests are all welcome. Guides and examples: [scrapebench.dev](https://scrapebench.dev).

If you are a person named in this data and want your record removed from our copy, email
apify-help@scrapebench.dev; the source agency remains the official record.

Your run may be used to improve our services. If something looks off, or you want this actor to fit your use better, please share your run data with us: [Apify Console → Settings → Security → Share run data with developers](https://console.apify.com/settings/security). It lets us see exactly what went wrong and keep improving the actor.

If this actor saved you time, a short review on its Store page helps other buyers find it.

# Actor input Schema

## `mode` (type: `string`):

Search: OpenTable restaurants in a city or near a point, each with its open tables for the date. Watch: the OpenTable restaurants you list, checked for open tables on your dates; schedule it to get an alert when a table opens.

## `locations` (type: `array`):

One per line: a city or area as you would type it on OpenTable (New York, Chicago, IL, London, River North), or "latitude,longitude" for the area around a venue or hotel (for example 40.7505,-73.9934 for Madison Square Garden). Each is searched on its own.

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

One city or "latitude,longitude", for saved tasks and API calls that send a single value. Use the list above for several.

## `venues` (type: `array`):

One per line: the restaurant's OpenTable link (https://www.opentable.com/r/little-owl-new-york or https://www.opentable.com/restaurant/profile/8033) or its numeric OpenTable id (8033). The numeric id is exact; a /r/ link is matched by name and the row says which restaurant was used.

## `venue` (type: `string`):

One OpenTable link or id, for saved tasks and API calls that send a single value.

## `startUrls` (type: `array`):

Optional. The same as Restaurants to watch, as a list of links (for tools that send startUrls). Each is checked like a watched restaurant.

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

YYYY-MM-DD. Empty means today. With "Until date" it is the first day of a range.

## `dates` (type: `array`):

Extra days to check, YYYY-MM-DD, one per line. Past dates are skipped with a free note.

## `dateTo` (type: `string`):

YYYY-MM-DD. Check every day from Date to this one (up to 90 days). In Watch mode OpenTable's calendar is read once per 14 days and days it does not book yet (or is closed) are not opened, so a long range stays fast.

## `daysAhead` (type: `integer`):

Check every day from today for this many days (up to 90), instead of fixed dates. Best for a scheduled watch: the dates move with the calendar, so a saved task never goes stale.

## `partySize` (type: `integer`):

Number of guests (1 to 20). Only tables for this many are returned; a restaurant that cannot seat that many online says so in calendar_status.

## `timeFrom` (type: `string`):

HH:MM, 24-hour (18:00). Only tables from this time on. Empty means any time. OpenTable shows times within 3.5 hours of the asked time, so the actor asks for the middle of your window (19:00 when no window is given).

## `timeTo` (type: `string`):

HH:MM, 24-hour (21:30). Only tables up to this time. Empty means any time.

## `onlyNew` (type: `boolean`):

Remembers what was open on this watch's last run and fills new_slots and has_new_slots, so a scheduled run plus a webhook alerts only when a table opens. The first run counts every open table as new.

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

Optional, one per line: words OpenTable matches against cuisine and name (italian, sushi, steakhouse, a restaurant name). Each is searched and a restaurant found twice is returned once. Empty means every restaurant.

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

One cuisine or name, for saved tasks and API calls that send a single value.

## `priceRanges` (type: `array`):

Keep only these OpenTable price bands, 1 ($) to 4 ($$$$); each row's extras.price_band_label gives the band's own wording ("$30 and under"). Empty keeps all.

## `minRating` (type: `string`):

Keep only restaurants OpenTable diners rate at least this (for example 4.5). Empty keeps all.

## `onlyAvailable` (type: `boolean`):

Drop restaurants with no table for your date, party size and time window.

## `radiusKm` (type: `integer`):

Keep only restaurants this close to the point or city centre. Empty means OpenTable's own area for a city, 3 km for "latitude,longitude".

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

Cap for EACH city and date. OpenTable lists several thousand restaurants in New York; the order is OpenTable's own.

## `includeDetails` (type: `boolean`):

On by default: opens each restaurant for its full set of times around your time, its phone, website, hours, dress code and booking policies. No extra charge. Off is faster but each row then has only the 3 times nearest your time and no phone or website. Watch rows always have them.

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

Off by default (not needed). If a run comes back with a 'blocked' row, turning on a proxy is an option. Included in the price.

## Actor input object example

```json
{
  "mode": "search",
  "locations": [
    "New York"
  ],
  "venues": [],
  "dates": [],
  "partySize": 2,
  "onlyNew": false,
  "queries": [],
  "priceRanges": [],
  "onlyAvailable": false,
  "maxResults": 20,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per restaurant per date: open times for your party size, plus phone, address and website.

# 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 = {
    "locations": [
        "New York"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapebench/opentable-availability-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 = {
    "locations": ["New York"],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapebench/opentable-availability-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 '{
  "locations": [
    "New York"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call scrapebench/opentable-availability-scraper --silent --output-dataset

```

## MCP server setup

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