{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenTable Reviews Scraper",
    "description": "Collect public OpenTable diner reviews with full text, ratings, and restaurant details. Use restaurant links or discover venues by area, then export the feedback for review and research.",
    "version": "0.0",
    "x-build-id": "80eNrcn4fJQAmbj4C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~opentable-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-opentable-reviews",
        "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/maximedupre~opentable-reviews/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-opentable-reviews",
        "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/maximedupre~opentable-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-opentable-reviews",
        "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": [
          "findBy"
        ],
        "properties": {
          "findBy": {
            "title": "Find restaurants by",
            "enum": [
              "urls",
              "slugs",
              "keywords",
              "coordinates",
              "listings"
            ],
            "type": "string",
            "description": "Choose how to find restaurants. Fill in only the options for that choice."
          },
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "Add one or more OpenTable restaurant profile URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "restaurantSlugs": {
            "title": "Restaurant slugs",
            "type": "array",
            "description": "Add one or more profile slugs, such as le-bernardin-new-york.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Dining keywords",
            "type": "array",
            "description": "Add dining keywords to search within the area, such as sushi or brunch.",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "title": "City, neighborhood, or address",
            "type": "string",
            "description": "Enter the area where you want to find restaurants."
          },
          "coordinates": {
            "title": "Coordinates",
            "type": "array",
            "description": "Add latitude and longitude pairs to find nearby restaurants.",
            "items": {
              "type": "object",
              "required": [
                "latitude",
                "longitude"
              ],
              "properties": {
                "latitude": {
                  "title": "Latitude",
                  "description": "Latitude in decimal degrees, from -90 to 90.",
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "longitude": {
                  "title": "Longitude",
                  "description": "Longitude in decimal degrees, from -180 to 180.",
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing page URLs",
            "type": "array",
            "description": "Add OpenTable metro, neighborhood, or search-page URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sort": {
            "title": "Review order",
            "enum": [
              "newest",
              "highestRated",
              "lowestRated"
            ],
            "type": "string",
            "description": "Choose the review order within each restaurant.",
            "default": "newest"
          },
          "minimumRatings": {
            "title": "Minimum ratings",
            "type": "object",
            "description": "Set the lowest accepted ratings from 1 to 5. Leave a rating blank to allow any value.",
            "properties": {
              "overall": {
                "title": "Overall",
                "description": "Keep reviews with an overall rating at or above this value. Reviews without this rating do not match.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "food": {
                "title": "Food",
                "description": "Keep reviews with a food rating at or above this value. Reviews without this rating do not match.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "service": {
                "title": "Service",
                "description": "Keep reviews with a service rating at or above this value. Reviews without this rating do not match.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "ambience": {
                "title": "Ambience",
                "description": "Keep reviews with an ambience rating at or above this value. Reviews without this rating do not match.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "value": {
                "title": "Value",
                "description": "Keep reviews with a value rating at or above this value. Reviews without this rating do not match.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              }
            }
          },
          "diningDateFrom": {
            "title": "Dining date from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Keep reviews with a dining date on or after this date."
          },
          "diningDateTo": {
            "title": "Dining date to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Keep reviews with a dining date on or before this date."
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep restaurants in these cuisines. Leave blank to allow all cuisines.",
            "items": {
              "type": "string"
            }
          },
          "neighborhoods": {
            "title": "Neighborhoods",
            "type": "array",
            "description": "Keep restaurants in these neighborhoods. Leave blank to allow all neighborhoods.",
            "items": {
              "type": "string"
            }
          },
          "vipOnly": {
            "title": "VIP diners only",
            "type": "boolean",
            "description": "Keep only reviews from diners marked as VIP by OpenTable.",
            "default": false
          },
          "photosOnly": {
            "title": "Reviews with photos only",
            "type": "boolean",
            "description": "Keep only reviews that contain diner photos.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum reviews",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matching reviews across all restaurants. Leave empty to return all available matches until the source is exhausted."
          },
          "maxReviewsPerRestaurant": {
            "title": "Maximum reviews per restaurant",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matching reviews from each restaurant. Leave empty to return all available matches until the source is exhausted."
          },
          "maxRestaurants": {
            "title": "Maximum discovered restaurants",
            "minimum": 1,
            "type": "integer",
            "description": "For Keywords and area, Coordinates, and Listing page URLs, stop discovery after this many matching restaurants. Leave empty to find all available matches until the source is exhausted."
          },
          "monitoring": {
            "title": "Recurring monitoring",
            "required": [
              "trackingName"
            ],
            "type": "object",
            "description": "Use the same tracking name on later runs to find new, edited, or reappearing reviews. Leave blank for a regular collection.",
            "properties": {
              "trackingName": {
                "title": "Tracking name",
                "description": "A name for this review history. Use a different name for a different set of restaurants.",
                "type": "string",
                "minLength": 1
              },
              "includeUnchanged": {
                "title": "Include unchanged reviews",
                "description": "Also save reviews that have not changed since the last run.",
                "type": "boolean"
              },
              "trackDisappearances": {
                "title": "Track disappeared reviews",
                "description": "Report previously seen reviews that are now missing. Disappearance is confirmed only after complete coverage of the tracked restaurants.",
                "type": "boolean"
              }
            }
          },
          "continueRunId": {
            "title": "Continue a run",
            "type": "string",
            "description": "Enter the Apify run ID of an interrupted collection to continue it. Reviews already saved by that collection are skipped. Leave blank to start a new collection."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}