{
  "openapi": "3.0.1",
  "info": {
    "title": "Resy Availability Scraper - Open Tables, Times & Alerts",
    "description": "Scrape Resy reservation availability: every open time for your restaurants, dates and party sizes, with seating type, tables left, deposit rules and the booking link. Sold-out dates come back as free rows. Schedule it with onlyNew to be alerted the moment a table opens.",
    "version": "0.1",
    "x-build-id": "15OxrY71BuFYwrpfI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~resy-availability-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-resy-availability-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/scrapewise~resy-availability-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-resy-availability-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/scrapewise~resy-availability-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-resy-availability-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",
        "properties": {
          "venues": {
            "title": "Restaurants",
            "type": "array",
            "description": "Resy restaurant pages, one per line: the link from resy.com (https://resy.com/cities/new-york-ny/venues/lilia), the restaurant's numeric Resy id, or just the slug from the link (lilia) together with the Location field below. Up to 400 restaurant/date/party combinations per run.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (for bare slugs)",
            "type": "string",
            "description": "City part of the Resy link, used only for restaurants given as a bare slug: new-york-ny, los-angeles-ca, chicago-il, london-uk... Links and ids carry their own city.",
            "default": "new-york-ny"
          },
          "dates": {
            "title": "Dates",
            "type": "array",
            "description": "Dates to check, one per line, as YYYY-MM-DD (today and tomorrow also work). Past dates are returned as free INVALID_INPUT rows. Empty with no daysAhead = today at the restaurant.",
            "items": {
              "type": "string"
            }
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Check today and the next N-1 days at the restaurant (2 = today and tomorrow). Added to the Dates list. Restaurants usually open bookings 14 to 30 days ahead; later dates come back as no availability."
          },
          "partySizes": {
            "title": "Party sizes",
            "type": "array",
            "description": "Number of guests to check, one check per size (1 to 20). Each restaurant has its own online range; sizes outside it come back as free INVALID_INPUT rows.",
            "items": {
              "type": "integer"
            },
            "default": [
              2
            ]
          },
          "timeFrom": {
            "title": "Earliest time",
            "type": "string",
            "description": "Keep only open times at or after this local time, for example 18:00 or 6pm. Empty = from the first seating."
          },
          "timeTo": {
            "title": "Latest time",
            "type": "string",
            "description": "Keep only open times at or before this local time, for example 21:00 or 9pm. Empty = until the last seating."
          },
          "seatingTypes": {
            "title": "Seating types",
            "type": "array",
            "description": "Keep only these seating types, as the restaurant names them on Resy (Dining Room, Bar, Patio, Counter...). Partial, case-insensitive match. Empty = every type.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max open times",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on open-time rows for the whole run. Checks that do not fit come back as free NOT_REACHED rows. 0 = no cap.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new open times (for schedules)",
            "type": "boolean",
            "description": "On: remembers the open times delivered in the previous run for the same restaurant, date and party size (in your account) and delivers only the ones that were not there. A time that disappears and comes back is delivered again. Checks are still made and charged; a check with nothing new comes back as a free NO_NEW_AVAILABILITY row.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default. Change it only if you know you need to.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}