{
  "openapi": "3.0.1",
  "info": {
    "title": "Resy & Michelin Restaurant Availability & Lead Scraper",
    "description": "Read-only Resy & MICHELIN Guide restaurant intelligence & live table availability scraper. Extract starred/Bib Gourmand venues, booking widget partners, 30-day calendar status, open time slots by party size, deposit policies, phone & website leads.",
    "version": "1.0",
    "x-build-id": "D4ZjTym2bq5rlSLQD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~resy-michelin-dining-availability-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-resy-michelin-dining-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/bifrost-data~resy-michelin-dining-availability-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-resy-michelin-dining-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/bifrost-data~resy-michelin-dining-availability-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-resy-michelin-dining-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": {
          "discovery_mode": {
            "title": "Discovery & Enrichment Mode",
            "enum": [
              "michelin_plus_resy_bridge",
              "resy_venue_search",
              "michelin_directory_only"
            ],
            "type": "string",
            "description": "Choose 'michelin_plus_resy_bridge' to discover MICHELIN Guide restaurants, identify their booking platform (Resy, OpenTable, SevenRooms, Tock), and attach live Resy slots; 'resy_venue_search' to query Resy directly by keyword/slug; or 'michelin_directory_only' for global Michelin hospitality B2B leads.",
            "default": "resy_venue_search"
          },
          "city_code": {
            "title": "Primary Metro / Resy City Code",
            "enum": [
              "ny",
              "sf",
              "la",
              "chi",
              "mia",
              "dc",
              "bos",
              "lv",
              "sea",
              "aus",
              "atl",
              "hou",
              "dal",
              "den",
              "nas",
              "phl",
              "lon",
              "tor",
              "seoul",
              "tokyo",
              "paris"
            ],
            "type": "string",
            "description": "Target metro code used for Resy geo-search and automatic Michelin region mapping (e.g., 'ny', 'sf', 'la', 'chi', 'mia', 'dc', 'bos', 'aus', 'lon', 'tor', 'seoul', 'tokyo', 'paris').",
            "default": "ny"
          },
          "search_queries": {
            "title": "Resy Venue Search Keywords",
            "type": "array",
            "description": "Keywords, restaurant names, neighborhoods, or cuisines to search on Resy (e.g., ['omakase', 'steakhouse', 'west village']). Used in 'resy_venue_search' mode.",
            "default": [
              "italian",
              "omakase"
            ],
            "items": {
              "type": "string"
            }
          },
          "resy_venue_urls_or_slugs": {
            "title": "Specific Resy Venue URLs or Slugs (Optional)",
            "type": "array",
            "description": "Optional exact Resy URLs or 'city/slug' identifiers (e.g., ['https://resy.com/cities/ny/le-bernardin', 'ny/gramercy-tavern']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "michelin_region_override": {
            "title": "Custom MICHELIN Guide Region Path (Optional)",
            "type": "string",
            "description": "Optional MICHELIN Guide URL region path override such as 'new-york-state/new-york', 'california/us-san-francisco', or 'seoul-capital-area/kr-seoul'. Leave blank to auto-map from city_code.",
            "default": ""
          },
          "michelin_distinctions": {
            "title": "MICHELIN Distinction Filter",
            "type": "array",
            "description": "Filter MICHELIN Guide listings by distinction slugs: '3-stars-michelin', '2-stars-michelin', '1-star-michelin', 'bib-gourmand', or 'all' for all Michelin-selected venues.",
            "default": [
              "1-star-michelin",
              "bib-gourmand"
            ],
            "items": {
              "type": "string"
            }
          },
          "target_date": {
            "title": "Target Dining Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Exact reservation date in YYYY-MM-DD format for read-only slot lookup. If empty, automatically checks today + days_ahead_offset.",
            "default": ""
          },
          "days_ahead_offset": {
            "title": "Days Ahead Offset (When target_date Is Empty)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Number of days from today to check live slot availability when target_date is blank.",
            "default": 7
          },
          "party_size": {
            "title": "Party Size (Covers)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Number of diners (1 to 12) for read-only Resy slot & calendar availability queries.",
            "default": 2
          },
          "preferred_time_window": {
            "title": "Preferred Dining Time Window Filter",
            "type": "string",
            "description": "Optional time window filter (HH:MM-HH:MM in 24h local time, e.g., '18:00-21:30' for prime dinner) used to calculate prime_window_slot_count.",
            "default": "18:00-21:30"
          },
          "only_with_open_slots": {
            "title": "Require At Least 1 Open Resy Slot on Target Date",
            "type": "boolean",
            "description": "If enabled, skips sold-out or non-Resy venues for $0.00 so you only pay for bookable tables.",
            "default": false
          },
          "booking_platform_filter": {
            "title": "Booking Widget / Platform Filter",
            "enum": [
              "any",
              "resy",
              "opentable",
              "sevenrooms",
              "tock",
              "thefork",
              "none_detected"
            ],
            "type": "string",
            "description": "Filter restaurants by detected reservation technology provider (ideal for Hospitality SaaS SDRs).",
            "default": "any"
          },
          "check_calendar_summary": {
            "title": "Include 30-Day Resy Calendar Scarcity Metrics",
            "type": "boolean",
            "description": "Queries read-only /4/venue/calendar to compute available_days_30d and sold_out_days_30d.",
            "default": true
          },
          "proxy_mode": {
            "title": "Proxy Routing Mode",
            "enum": [
              "auto",
              "residential",
              "datacenter",
              "direct_only"
            ],
            "type": "string",
            "description": "Cost-saving 'auto' tries direct Chrome TLS first and automatically escalates to Apify Datacenter / Residential proxy if Imperva/Cloudflare challenges cloud IPs.",
            "default": "auto"
          },
          "max_items": {
            "title": "Maximum Verified Venue Records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of verified restaurant & availability records to emit (1 to 500).",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}