{
  "openapi": "3.0.1",
  "info": {
    "title": "Swiggy Delivery Restaurants & Menu Scraper",
    "description": "Scrape restaurant data and menus from Swiggy.com delivery platform",
    "version": "1.0",
    "x-build-id": "NhqSqpqnOovQ1noD9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~swiggy-delivery-restaurants-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-swiggy-delivery-restaurants-menu-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/codingfrontend~swiggy-delivery-restaurants-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-swiggy-delivery-restaurants-menu-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/codingfrontend~swiggy-delivery-restaurants-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-swiggy-delivery-restaurants-menu-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": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Location for search."
          },
          "getMenus": {
            "title": "Get Menus",
            "type": "boolean",
            "description": "Whether to retrieve restaurant menus.",
            "default": true
          },
          "getAddons": {
            "title": "Get Addons",
            "type": "boolean",
            "description": "Whether to include addon information in menu data.",
            "default": true
          },
          "getVariants": {
            "title": "Get Variants",
            "type": "boolean",
            "description": "Whether to include variant information in menu data.",
            "default": true
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of items to retrieve.",
            "default": 20
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "deliveryTimeAsc",
              "modelBasedRatingDesc",
              "costForTwoAsc",
              "costForTwoDesc"
            ],
            "type": "string",
            "description": "Sort restaurants by selected criteria.",
            "default": "relevance"
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Filter by cuisines.",
            "items": {
              "type": "string",
              "enum": [
                "query_afghani",
                "query_american",
                "query_andhra",
                "query_arabian",
                "query_asian",
                "query_assamese",
                "query_awadhi",
                "query_bakery",
                "query_bangladeshi",
                "query_barbecue",
                "query_batter",
                "query_bengali",
                "query_beverages",
                "query_bihari",
                "query_biryani",
                "query_british",
                "query_brownies",
                "query_bubble_tea",
                "query_burger",
                "query_burgers",
                "query_burmese",
                "query_cafe",
                "query_cakes",
                "query_cakes_&_pastries",
                "query_cakes_and_pastries",
                "query_chaat",
                "query_chettinad",
                "query_chinese",
                "query_chocolate",
                "query_coffee",
                "query_combos",
                "query_continental",
                "query_curry_point",
                "query_dessert",
                "query_desserts",
                "query_dry_fruits",
                "query_european",
                "query_fusion",
                "query_fast_food",
                "query_french",
                "query_grill",
                "query_gujarati",
                "query_haleem",
                "query_healthy",
                "query_healthy_food",
                "query_home_food",
                "query_hot_chips",
                "query_hyderabadi",
                "query_ice_cream",
                "query_ice_cream_cakes",
                "query_indian",
                "query_indonesian",
                "query_italian",
                "query_italian-american",
                "query_jain",
                "query_japanese",
                "query_juice_and_shake",
                "query_juices",
                "query_kebabs",
                "query_kerala",
                "query_keto",
                "query_korean",
                "query_lebanese",
                "query_lucknowi",
                "query_maharashtrian",
                "query_malaysian",
                "query_meal",
                "query_meat",
                "query_mediterranean",
                "query_mexican",
                "query_middle_eastern",
                "query_milkshakes",
                "query_momos",
                "query_mongolian",
                "query_mughlai",
                "query_naga",
                "query_navratri_special",
                "query_nepalese",
                "query_north_eastern",
                "query_north_indian",
                "query_oriental",
                "query_paan",
                "query_pan-asian",
                "query_pastas",
                "query_persian",
                "query_pizzas",
                "query_protein_rich",
                "query_punjabi",
                "query_rajasthani",
                "query_rolls",
                "query_rolls_&_wraps",
                "query_salads",
                "query_seafood",
                "query_shakes",
                "query_singaporean",
                "query_snacks",
                "query_south_american",
                "query_south_indian",
                "query_sri_lankan",
                "query_starters",
                "query_steakhouse",
                "query_street_food",
                "query_streetfood",
                "query_sushi",
                "query_sweets",
                "query_tandoor",
                "query_tandoori",
                "query_tea",
                "query_thai",
                "query_thali",
                "query_thalis",
                "query_tibetan",
                "query_turkish",
                "query_waffle",
                "query_beverages_bakery",
                "query_briyani",
                "query_fastfood",
                "query_indian_snacks",
                "query_juice",
                "query_paratha",
                "query_pizza",
                "query_pure_veg",
                "query_sandwich",
                "query_shawarma",
                "query_snack",
                "query_wrap"
              ],
              "enumTitles": [
                "Afghani",
                "American",
                "Andhra",
                "Arabian",
                "Asian",
                "Assamese",
                "Awadhi",
                "Bakery",
                "Bangladeshi",
                "Barbecue",
                "Batter",
                "Bengali",
                "Beverages",
                "Bihari",
                "Biryani",
                "British",
                "Brownies",
                "Bubble Tea",
                "Burger",
                "Burgers",
                "Burmese",
                "Cafe",
                "Cakes",
                "Cakes & Pastries",
                "Cakes and Pastries",
                "Chaat",
                "Chettinad",
                "Chinese",
                "Chocolate",
                "Coffee",
                "Combos",
                "Continental",
                "Curry Point",
                "Dessert",
                "Desserts",
                "Dry Fruits",
                "European",
                "FUSION",
                "Fast Food",
                "French",
                "Grill",
                "Gujarati",
                "Haleem",
                "Healthy",
                "Healthy Food",
                "Home Food",
                "Hot Chips",
                "Hyderabadi",
                "Ice Cream",
                "Ice Cream Cakes",
                "Indian",
                "Indonesian",
                "Italian",
                "Italian-American",
                "Jain",
                "Japanese",
                "Juice and shake",
                "Juices",
                "Kebabs",
                "Kerala",
                "Keto",
                "Korean",
                "Lebanese",
                "Lucknowi",
                "Maharashtrian",
                "Malaysian",
                "Meal",
                "Meat",
                "Mediterranean",
                "Mexican",
                "Middle Eastern",
                "Milkshakes",
                "Momos",
                "Mongolian",
                "Mughlai",
                "Naga",
                "Navratri Special",
                "Nepalese",
                "North Eastern",
                "North Indian",
                "Oriental",
                "Paan",
                "Pan-Asian",
                "Pastas",
                "Persian",
                "Pizzas",
                "Protein Rich",
                "Punjabi",
                "Rajasthani",
                "Rolls",
                "Rolls & Wraps",
                "Salads",
                "Seafood",
                "Shakes",
                "Singaporean",
                "Snacks",
                "South American",
                "South Indian",
                "Sri Lankan",
                "Starters",
                "Steakhouse",
                "Street Food",
                "StreetFood",
                "Sushi",
                "Sweets",
                "Tandoor",
                "Tandoori",
                "Tea",
                "Thai",
                "Thali",
                "Thalis",
                "Tibetan",
                "Turkish",
                "Waffle",
                "beverages Bakery",
                "briyani",
                "fastfood",
                "indian snacks",
                "juice",
                "paratha",
                "pizza",
                "pure veg",
                "sandwich",
                "shawarma",
                "snack",
                "wrap"
              ]
            }
          },
          "explore": {
            "title": "Explore",
            "type": "array",
            "description": "Explore filters.",
            "items": {
              "type": "string",
              "enum": [
                "newfacetquery1",
                "isExclusivefacetquery1"
              ],
              "enumTitles": [
                "New on Swiggy",
                "Swiggy Exclusives"
              ]
            }
          },
          "rating": {
            "title": "Ratings",
            "type": "array",
            "description": "Filter by minimum rating.",
            "items": {
              "type": "string",
              "enum": [
                "ratingfacetquery3",
                "ratingfacetquery4",
                "ratingfacetquery5"
              ],
              "enumTitles": [
                "Ratings 4.5+",
                "Ratings 4.0+",
                "Ratings 3.5+"
              ]
            }
          },
          "vegNonVeg": {
            "title": "Veg/Non-Veg",
            "enum": [
              "isVegfacetquery2",
              "isVegfacetquery3"
            ],
            "type": "string",
            "description": "Filter by veg/non-veg."
          },
          "offers": {
            "title": "Offers",
            "type": "boolean",
            "description": "Filter restaurants with offers.",
            "default": false
          },
          "costForTwoFilter": {
            "title": "Cost for Two Filter",
            "enum": [
              "costForTwofacetquery3",
              "costForTwofacetquery4",
              "costForTwofacetquery5"
            ],
            "type": "string",
            "description": "Filter by cost for two."
          },
          "headless": {
            "title": "Headless Mode",
            "type": "boolean",
            "description": "Run browser in headless mode (no visible UI). Set to false for debugging.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Use Apify Proxy to avoid IP address-based blocking. Required for successful scraping.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}