{
  "openapi": "3.0.1",
  "info": {
    "title": "Swiggy Scraper: Restaurants, Menus, Ratings, No Login",
    "description": "Swiggy restaurants by Indian city: address, coordinates, cuisines, rating, cost for two, delivery time, offers, FSSAI licence, opening hours and menu items. No login. $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "We6QEtO0qQhAo2Gz1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~swiggy-restaurants-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-swiggy-restaurants-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/one_dollar_store~swiggy-restaurants-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-swiggy-restaurants-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/one_dollar_store~swiggy-restaurants-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-swiggy-restaurants-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": {
          "city": {
            "title": "City",
            "enum": [
              "bangalore",
              "mumbai",
              "delhi",
              "hyderabad",
              "chennai",
              "kolkata",
              "pune",
              "ahmedabad",
              "jaipur",
              "lucknow",
              "chandigarh",
              "gurgaon",
              "noida",
              "ghaziabad",
              "faridabad",
              "thane",
              "navi-mumbai",
              "indore",
              "bhopal",
              "nagpur",
              "surat",
              "vadodara",
              "rajkot",
              "kochi",
              "thiruvananthapuram",
              "kozhikode",
              "coimbatore",
              "madurai",
              "mysore",
              "mangalore",
              "visakhapatnam",
              "vijayawada",
              "bhubaneswar",
              "patna",
              "ranchi",
              "guwahati",
              "raipur",
              "dehradun",
              "ludhiana",
              "amritsar",
              "kanpur",
              "agra",
              "varanasi",
              "prayagraj",
              "jodhpur",
              "udaipur",
              "nashik",
              "goa"
            ],
            "type": "string",
            "description": "Swiggy city to sweep. The actor reads Swiggy's restaurant list at points spread around the city centre. Ignored when you give a latitude and a longitude below.",
            "default": "bangalore"
          },
          "latitude": {
            "title": "Latitude (optional)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Sweep around your own map point instead of a city centre. Needs a longitude too. Example: 12.9352 for Koramangala, Bangalore."
          },
          "longitude": {
            "title": "Longitude (optional)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of your own map point. Example: 77.6245."
          },
          "searchRadiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How far around the centre to look. The actor visits a point every 2 km inside this radius and stops when new points add no new restaurants.",
            "default": 8
          },
          "searchTerm": {
            "title": "Search term (optional)",
            "maxLength": 80,
            "type": "string",
            "description": "Use Swiggy's own search instead of the area list: a cuisine, a dish or a restaurant name, for example biryani, pizza or Meghana Foods. Leave empty for the general area list."
          },
          "cuisines": {
            "title": "Cuisine filter (optional)",
            "maxItems": 20,
            "type": "array",
            "description": "Keep only restaurants that list one of these cuisines, for example Biryani or South Indian. Matching is by part of the name, ignoring capitals.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep restaurants rated at least this on Swiggy (0 to 5). Restaurants with no rating yet are dropped when this is above 0.",
            "default": 0
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Keep only restaurants that Swiggy shows as open for orders at the time of the run.",
            "default": false
          },
          "vegOnly": {
            "title": "Pure vegetarian only",
            "type": "boolean",
            "description": "Keep only restaurants that Swiggy marks as pure vegetarian.",
            "default": false
          },
          "includeDetails": {
            "title": "Add address, coordinates, hours and FSSAI licence",
            "type": "boolean",
            "description": "Reads one more Swiggy answer per restaurant to add the full address, latitude and longitude, weekly opening hours, the FSSAI licence number and menu counts. Switch off for the fastest run.",
            "default": true
          },
          "includeMenu": {
            "title": "Include menu items",
            "type": "boolean",
            "description": "Adds the menu to every restaurant row as a list: item name, category, price in rupees, veg or non veg, bestseller flag, rating and description. Rows get larger.",
            "default": false
          },
          "maxMenuItems": {
            "title": "Menu items per restaurant",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most menu items kept per restaurant when menu items are included.",
            "default": 200
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many restaurants. Minimum 10.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Leave empty. Swiggy answers Apify's own addresses directly. If it refuses twice in a row the run switches to Apify datacenter proxy by itself."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}