{
  "openapi": "3.0.1",
  "info": {
    "title": "Swiggy Instamart Products Scraper",
    "description": "Live Swiggy Instamart product data for any Indian pincode: prices, MRP, stock, ratings, search rank and images. By Mindcase.",
    "version": "1.0",
    "x-build-id": "MN2ux5cUvfET71jb0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mindcase-co~swiggy-instamart-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mindcase-co-swiggy-instamart-products-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/mindcase-co~swiggy-instamart-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mindcase-co-swiggy-instamart-products-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/mindcase-co~swiggy-instamart-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mindcase-co-swiggy-instamart-products-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": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "What to search for (e.g. milk, chocolate)."
          },
          "category": {
            "title": "Category",
            "enum": [
              "Atta, Rice and Dal",
              "Baby Care",
              "Bath and Body",
              "Biscuits and Cakes",
              "Cereals and Breakfast",
              "Chips and Namkeens",
              "Chocolates",
              "Cleaners and Repellents",
              "Cold Drinks and Juices",
              "Dairy, Bread and Eggs",
              "Dry Fruits and Seeds Mix",
              "Electronics and Appliances",
              "Fashion",
              "Feminine Hygiene",
              "Fresh Fruits",
              "Fresh Vegetables",
              "Frozen Food",
              "Hair Care",
              "Health and Pharma",
              "Home and Kitchen",
              "Ice Creams and Frozen Desserts",
              "Makeup",
              "Masalas",
              "Meat and Seafood",
              "Noodles, Pasta, Vermicelli",
              "Oils and Ghee",
              "Paan Corner",
              "Pet Supplies",
              "Puja Store",
              "Sauces and Spreads",
              "Sexual Wellness",
              "Skincare",
              "Sports and Fitness",
              "Sweet Corner",
              "Tea, Coffee and Milk drinks",
              "Toys and Stationery"
            ],
            "type": "string",
            "description": "Top-level category (e.g. Cold Drinks & Juices)."
          },
          "sub_category": {
            "title": "Sub-category",
            "type": "string",
            "description": "Sub-category within it (e.g. Soft Drinks). Examples: Atta, Basmati Rice, Besan, Sooji and Maida, High Protein Atta, Millets & Daliya, Other Flours, Poha & Puffed Rice, Premium Brands."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Brand as spelled on Instamart. Pick from the list. The brand's URL slug is accepted too. Examples: &Circus, 1000 Farms, 10on, 10on10foods, 1868 BY TATA Tea, 1950 Origins, 1st Step, 24 Mantra."
          },
          "urls": {
            "title": "Product URLs",
            "type": "array",
            "description": "One or more product page URLs (one per line).",
            "items": {
              "type": "string"
            }
          },
          "store_id": {
            "title": "Store",
            "type": "string",
            "description": "Dark store - pick a city and pincode first. Examples: 1386719, 1261842, 1383851, 1403207, 1404594, 1402776, 1381835, 816651."
          },
          "lat": {
            "title": "Latitude",
            "type": "string",
            "description": "Or target by coordinates: latitude (use with longitude). Decimal degrees, e.g. 28.6139."
          },
          "lon": {
            "title": "Longitude",
            "type": "string",
            "description": "Or target by coordinates: longitude (use with latitude). Decimal degrees, e.g. 28.6139."
          },
          "city": {
            "title": "City",
            "enum": [
              "New Delhi",
              "Faridabad",
              "Gurugram",
              "Rohtak",
              "Sonipat",
              "Karnal",
              "Panipat",
              "Ambala",
              "Panchkula",
              "Kurukshetra",
              "Sas Nagar",
              "Ludhiana",
              "Amritsar",
              "Jalandhar",
              "Patiala",
              "Bathinda",
              "Chandigarh",
              "Ghaziabad",
              "Noida",
              "Greater Noida",
              "Aligarh",
              "Kanpur",
              "Prayagraj",
              "Varanasi",
              "Lucknow",
              "Bareilly",
              "Moradabad",
              "Saharanpur",
              "Roorkee",
              "Dehradun",
              "Meerut",
              "Rudrapur",
              "Gorakhpur",
              "Mathura",
              "Agra",
              "Jhansi",
              "Jaipur",
              "Ajmer",
              "Udaipur",
              "Kota",
              "Bikaner",
              "Ganganagar",
              "Jodhpur",
              "Rajkot",
              "Ahmedabad",
              "Gandhinagar",
              "Anand",
              "Vadodara",
              "Surat",
              "Vapi",
              "Mumbai",
              "Goa",
              "Pune",
              "Latur",
              "Ahmednagar",
              "Satara",
              "Kolhapur",
              "Thane",
              "Nashik",
              "Aurangabad(Mh)",
              "Nanded",
              "Nagpur",
              "Amravati",
              "Indore",
              "Ujjain",
              "Bhopal",
              "Gwalior",
              "Jabalpur",
              "Bhilai",
              "Raipur",
              "Bilaspur",
              "Hyderabad",
              "Nizamabad",
              "Karimnagar",
              "Warangal",
              "Khammam",
              "Anantapur",
              "Tirupati",
              "Kurnool",
              "Vijayawada",
              "Guntur",
              "Tadepalli",
              "Prakasam",
              "Nellore",
              "Vizag",
              "Kakinada",
              "West Godavari",
              "Bhimavaram",
              "Vizianagaram",
              "Bengaluru",
              "Mysuru",
              "Vijayanagar",
              "Tumakuru",
              "Mangalore",
              "Udupi",
              "Manipal",
              "Davanagere",
              "Shivamogga",
              "Hubballi",
              "Belgaum",
              "Chennai",
              "Kanchipuram",
              "Tiruvallur",
              "Kavanur",
              "Puducherry",
              "Thanjavur",
              "Trichy",
              "Madurai",
              "Tirunelveli",
              "Thoothukudi",
              "Kanyakumari",
              "Sivaganga",
              "Vellore",
              "Salem",
              "Erode",
              "Karur",
              "Coimbatore",
              "Tiruppur",
              "Kannur",
              "Kozhikode",
              "Palakkad",
              "Thrissur",
              "Kochi",
              "Ernakulam",
              "Kottayam",
              "Alappuzha",
              "Kollam",
              "Thiruvananthapuram",
              "Kolkata",
              "South 24 Parganas",
              "North 24 Parganas",
              "Durgapur",
              "Siliguri",
              "Darjeeling",
              "Nadia",
              "Bhubaneswar",
              "Cuttack",
              "Berhampur",
              "Guwahati",
              "Dibrugarh",
              "Cachar",
              "Patna",
              "Jamshedpur",
              "Ranchi",
              "Muzaffarpur"
            ],
            "type": "string",
            "description": "City - filters the pincode and store lists."
          },
          "pincode": {
            "title": "Pincode",
            "type": "string",
            "description": "Pincode - pick a city first; filters the store list. Examples: 110002, 110003, 110005, 110007, 110008, 110009, 110012, 110014."
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many products to return. You pay only for products delivered.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}