{
  "openapi": "3.0.1",
  "info": {
    "title": "Resy Restaurants & Table Availability",
    "description": "Search Resy restaurants by city, date and party size with open reservation slots and sold-out status, check venue availability calendars, and export venue details. No login, never books.",
    "version": "0.0",
    "x-build-id": "EoWgLWzHhG9wQsHVD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aitorsm~resy-restaurants/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aitorsm-resy-restaurants",
        "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/aitorsm~resy-restaurants/runs": {
      "post": {
        "operationId": "runs-sync-aitorsm-resy-restaurants",
        "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/aitorsm~resy-restaurants/run-sync": {
      "post": {
        "operationId": "run-sync-aitorsm-resy-restaurants",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "availability",
              "venues"
            ],
            "type": "string",
            "description": "search = restaurants in a city on a date with their open tables. availability = open slots and sold-out / closed status for specific venues over a range of days. venues = full details (address, phone, website, social, images, collections) for specific venues.",
            "default": "search"
          },
          "city": {
            "title": "City (search)",
            "enum": [
              "new-york-ny",
              "los-angeles-ca",
              "san-francisco-ca",
              "chicago-il",
              "washington-dc",
              "miami-fl",
              "boston-ma",
              "philadelphia-pa",
              "atlanta-ga",
              "austin-tx",
              "dallas-fort-worth-tx",
              "houston-tx",
              "seattle-wa",
              "portland-or",
              "denver-co",
              "nashville-tn",
              "new-orleans-la",
              "las-vegas-nv",
              "charleston-sc",
              "detroit-mi",
              "minneapolis-mn",
              "hamptons-ny",
              "san-diego-ca",
              "oakland-ca",
              "san-jose-ca",
              "sacramento-ca",
              "santa-barbara-ca",
              "napa-ca",
              "sonoma-ca",
              "palm-springs-ca",
              "phoenix-az",
              "scottsdale-az",
              "salt-lake-city-ut",
              "aspen-co",
              "kansas-city-mo",
              "st-louis-mo",
              "milwaukee-wi",
              "indianapolis-in",
              "columbus-oh",
              "cleveland-oh",
              "cincinnati-oh",
              "pittsburgh-pa",
              "baltimore-md",
              "richmond-va",
              "charlotte-nc",
              "raleigh-nc",
              "durham-nc",
              "asheville-nc",
              "savannah-ga",
              "tampa-bay-fl",
              "orlando-fl",
              "fort-lauderdale-fl",
              "palm-beach-fl",
              "naples-fl",
              "jersey-city-nj",
              "hoboken-nj",
              "providence-ri",
              "new-haven-ct",
              "portland-me",
              "louisville-ky",
              "memphis-tn-ar",
              "san-antonio-tx",
              "honolulu-hi",
              "toronto-on",
              "montreal-qc",
              "vancouver-bc",
              "mexico-city-mexico",
              "madrid-spain",
              "barcelona-spain",
              "lisbon-portugal",
              "berlin-germany",
              "athens-greece",
              "hong-kong",
              "tokyo-japan"
            ],
            "type": "string",
            "description": "Resy market to search. For any other place, fill in latitude and longitude below instead.",
            "default": "new-york-ny"
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Search: the day to check (empty = 7 days from today). Availability: the first day of the range (empty = today). Format YYYY-MM-DD."
          },
          "partySize": {
            "title": "Party size",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8"
            ],
            "type": "string",
            "description": "Number of guests. Search and availability only.",
            "default": "2"
          },
          "query": {
            "title": "Name or keyword (search)",
            "type": "string",
            "description": "Optional. Restaurant name or keyword such as \"sushi\", \"omakase\" or \"Carbone\"."
          },
          "cuisine": {
            "title": "Cuisine (search)",
            "type": "string",
            "description": "Optional exact Resy cuisine, e.g. Italian, Japanese, Sushi, French, New American, Mexican, Steakhouse, Seafood, Korean, Cocktail Bar."
          },
          "maxResults": {
            "title": "Max restaurants (search)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum restaurants to return. Nearest to the city center first. Each restaurant is one result.",
            "default": 50
          },
          "venues": {
            "title": "Venue URLs or ids (availability, venues)",
            "type": "array",
            "description": "Resy venue pages such as https://resy.com/cities/new-york-ny/venues/carbone, or numeric venue ids (the venueId field of search results).",
            "items": {
              "type": "string"
            }
          },
          "days": {
            "title": "Days to check (availability)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Consecutive days from the date above, 1 to 30. One result per venue per day.",
            "default": 7
          },
          "includeBookingPolicy": {
            "title": "Include booking policy (availability)",
            "type": "boolean",
            "description": "Add the cancellation policy, deposit and cut-off times of the first open slot of each day. One extra lookup per day; the price per result is the same.",
            "default": false
          },
          "latitude": {
            "title": "Latitude (search, optional)",
            "type": "number",
            "description": "Search around this point instead of the city center. Use with longitude."
          },
          "longitude": {
            "title": "Longitude (search, optional)",
            "type": "number",
            "description": "Search around this point instead of the city center. Use with latitude."
          },
          "radiusKm": {
            "title": "Radius in km (search)",
            "minimum": 0.5,
            "maximum": 100,
            "type": "number",
            "description": "How far from the center to search. Default 35 km.",
            "default": 35
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}