{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenTable + Resy Scraper",
    "description": "Scrape restaurant data from OpenTable and Resy in a single actor. Search by city/cuisine, look up specific restaurants by URL or slug, fetch reviews, and check Resy availability. No login required for either platform.",
    "version": "1.0",
    "x-build-id": "uwhTh9uFwlH7Zeb2B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~opentable-resy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-opentable-resy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crawlerbros~opentable-resy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-opentable-resy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crawlerbros~opentable-resy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-opentable-resy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "platform",
          "mode"
        ],
        "properties": {
          "platform": {
            "title": "Platform",
            "enum": [
              "opentable",
              "resy"
            ],
            "type": "string",
            "description": "Which restaurant platform to scrape.",
            "default": "opentable"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byRestaurant",
              "byCuisine",
              "byCity",
              "byUrl"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "search"
          },
          "city": {
            "title": "City (mode=search/byCuisine/byCity)",
            "type": "string",
            "description": "City name. OpenTable resolves popular cities to a metroId; Resy resolves them to (lat, long). Falls back to free-text on OpenTable, NYC on Resy.",
            "default": "New York"
          },
          "metroId": {
            "title": "OpenTable metroId (advanced, optional)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Override OpenTable's city resolution by passing a metroId directly. e.g. 8=NYC, 4=LA, 6=Chicago, 113=London. Most users should leave blank and use `city`."
          },
          "cuisine": {
            "title": "Cuisine (mode=search/byCuisine)",
            "enum": [
              "italian",
              "french",
              "japanese",
              "chinese",
              "thai",
              "indian",
              "mexican",
              "spanish",
              "greek",
              "mediterranean",
              "korean",
              "vietnamese",
              "american",
              "steakhouse",
              "seafood",
              "sushi",
              "pizza",
              "tapas",
              "bbq",
              "vegan",
              "vegetarian",
              "fusion",
              "asian",
              "latin american",
              "caribbean",
              "middle eastern",
              "lebanese",
              "turkish",
              "moroccan",
              "ethiopian",
              "german",
              "british",
              "irish",
              "scandinavian",
              "argentinian",
              "brazilian",
              "peruvian",
              "tex-mex",
              "soul food",
              "southern",
              "diner",
              "gastropub",
              "bistro",
              "brasserie",
              "fine dining",
              "small plates",
              "raw bar",
              "wine bar",
              "cocktail bar",
              "brunch",
              "breakfast"
            ],
            "type": "string",
            "description": "Cuisine taxonomy. Supplied as a search term on both platforms."
          },
          "query": {
            "title": "Free-text search query (mode=search)",
            "type": "string",
            "description": "Free-text query in addition to / instead of `cuisine`. Combined into a single search term."
          },
          "urls": {
            "title": "Restaurant URLs or slugs (mode=byRestaurant/byUrl)",
            "type": "array",
            "description": "OpenTable URLs (`https://www.opentable.com/{slug}`), Resy URLs (`https://resy.com/cities/{city}/venues/{slug}`), or plain slugs. The actor parses both forms.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country filter (ISO 3166-1 alpha-2)",
            "enum": [
              "US",
              "CA",
              "GB",
              "IE",
              "FR",
              "DE",
              "IT",
              "ES",
              "PT",
              "NL",
              "AT",
              "CH",
              "BE",
              "DK",
              "SE",
              "NO",
              "FI",
              "AU",
              "NZ",
              "JP",
              "HK",
              "SG",
              "AE",
              "MX",
              "AR",
              "BR"
            ],
            "type": "string",
            "description": "Drop records whose address country doesn't match."
          },
          "priceRange": {
            "title": "Price range",
            "enum": [
              "$",
              "$$",
              "$$$",
              "$$$$"
            ],
            "type": "string",
            "description": "Filter by price band. $ = under $30, $$ = $30-50, $$$ = $50-75, $$$$ = $75+ (per platform's own bands)."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Drop restaurants with overall rating below this. 1-5 scale on both platforms."
          },
          "partySize": {
            "title": "Party size",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Used for OpenTable search availability scoring and Resy availability lookup.",
            "default": 2
          },
          "dateTime": {
            "title": "OpenTable reservation datetime (advanced)",
            "type": "string",
            "description": "ISO datetime for OpenTable search (e.g. `2026-06-15T19:00:00`). Defaults to two weeks from today at 19:00."
          },
          "day": {
            "title": "Resy availability day (mode=byRestaurant on Resy)",
            "type": "string",
            "description": "ISO date (`YYYY-MM-DD`) for Resy availability lookup. Defaults to two weeks from today. Required by Resy's `/4/find` API."
          },
          "latitude": {
            "title": "Latitude (Resy advanced)",
            "type": "string",
            "description": "Override Resy geo lookup with explicit latitude. Use with `longitude`."
          },
          "longitude": {
            "title": "Longitude (Resy advanced)",
            "type": "string",
            "description": "Override Resy geo lookup with explicit longitude. Use with `latitude`."
          },
          "includeAvailability": {
            "title": "Include Resy availability (mode=byRestaurant on Resy)",
            "type": "boolean",
            "description": "Add a `/4/find` lookup per venue and append the available reservation slots. Slows the run.",
            "default": false
          },
          "enrichDetailPages": {
            "title": "Enrich OpenTable search hits with detail pages",
            "type": "boolean",
            "description": "After OpenTable search, also fetch each restaurant's detail page (slow). Adds reviews, hours, contact info.",
            "default": false
          },
          "resyApiKey": {
            "title": "Resy api_key (advanced override)",
            "type": "string",
            "description": "Override the bundled Resy widget api_key. Leave blank — actor harvests a fresh key from resy.com on startup if the bundled one breaks."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 10
          },
          "autoEscalateOnBlock": {
            "title": "Auto-escalate to Apify proxy on block",
            "type": "boolean",
            "description": "If true (default), the actor automatically engages Apify Proxy when it hits HTTP 403 / 429 from a raw datacenter IP. Set false to fail fast without proxy.",
            "default": true
          },
          "proxyGroups": {
            "title": "Apify proxy groups (used on auto-escalation)",
            "type": "array",
            "description": "Apify proxy groups to use when auto-escalating after a block. Empty = datacenter (default), then residential fallback.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}