Scrapingdog

Swiggy Instamart Category Listing Scraper API

The Swiggy Instamart Category Listing Scraper API walks a whole Instamart category one page at a time and stops when the platform stops offering a next page. Use it instead of search when you want a complete catalogue rather than the products a query happens to match. Each successful request costs 5 API credits.

Endpoint: https://api.scrapingdog.com/swiggy/instamart/listing

API Parameters

πŸ”‘

Scrapingdog Parameters

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
πŸ”

Identifying the Category

  • url Optional
    An Instamart category URL, for example https://instamart.in/sc/fresh-vegetables/nectr-69380ea9945fd90001ca9e57/st. The three fields below are derived from it, which is why this form exists β€” it saves you assembling them by hand.

    Type: String
  • filter_id Optional
    The 24-character hex id at the end of the category URL.

    The id alone is not enough. Instamart matches the category name and filter name as well, and rejects a request carrying only the id β€” the likeliest thing to get wrong here, because the id looks like it should be sufficient.

    Type: String
  • category_name Optional
    The parent category, for example Fresh Vegetables. From a URL, this is the first path slug with hyphens turned into spaces and title-cased.

    Type: String
  • filter_name Optional
    The category itself, for example Exotic Vegetables. From a URL, this is the second slug minus the trailing id, given the same treatment.

    Type: String
  • taxonomy_type Optional
    Instamart’s taxonomy for the category.

    Default: Speciality taxonomy 1

    Rarely needs changing.

    Type: String
  • next_page_token Optional
    Returned by the previous response. Supply it alone β€” it already carries the store, the category and the position.

    Supply one of: url, or all three of filter_id, category_name and filter_name, or next_page_token.

    Type: String
πŸ“

Location

  • pincode Optional
    Indian pincode, geocoded by Instamart. One of pincode, lat and lng, or store_id is required.

    Cannot be combined with lat and lng.

    Type: String
  • lat Optional
    Latitude. Pair with lng, and do not send a pincode as well.

    Type: Number
  • lng Optional
    Longitude. Note Instamart takes lng β€” Blinkit takes lon.

    Type: Number
  • store_id Optional
    A store_id from an earlier response, and the fastest way in.

    Resolving a pincode costs three upstream calls on the first request and one on every request after it. On a measured category the first page took 12.6s and each later page about 2.4s. For bulk work, reuse store_id rather than sending a pincode each time.

    Type: String
βš™

️ Scrapingdog Options

  • html Optional
    Set to true to receive the raw upstream body instead of the parsed response.

    Default: false

    Type: Boolean

API Examples

API result preview
Code to Integrate
curl "https://api.scrapingdog.com/swiggy/instamart/listing?api_key=APIKEY&category_name=Fresh%20Vegetables&filter_name=Exotic%20Vegetables&filter_id=6822eeeded32000001e25aa4&pincode=302018"
API Response
{
  "search_parameters": {
    "category_name": "Fresh Vegetables",
    "filter_name": "Exotic Vegetables",
    "filter_id": "6822eeeded32000001e25aa4",
    "pincode": "560001",
    "page": 1
  },
  "total_time_taken": 12.12,
  "location": {
    "lat": 12.9715987,
    "lng": 77.5945627,
    "address": "Bengaluru, Karnataka 560001, India"
  },
  "store_id": "1401477",
  "total_results": 20,
  "total_available": null,
  "next_page_token": "eyJzIjoiMTQwMTQ3NyIsImYiOiI2ODIyZWVlZGVkMzIwMDAwMDFlMjVhYTQi...",
  "products": [
    {
      "position": 1,
      "spin_id": "AHK7JFBKCS",
      "sku_id": "UB2HSIX7SF",
      "product_id": "RPR7PDT7SR",
      "parent_product_id": "PDPFO4TAIN",
      "name": "Button Mushroom (Anabe)",
      "brand": "Fruits and Vegetables",
      "quantity": "1 Pack",
      "description": "Plump, earthy flavor for stir-fries & soups!",
      "mrp": 93,
      "offer_price": 74,
      "discount": 19,
      "discount_percent": 20,
      "offers": ["20% OFF"],
      "in_stock": true,
      "available": true,
      "max_order_quantity": 6,
      "category": "Leafy and Seasonings",
      "sub_category": "Exotic Vegetables",
      "super_category": "Fruits and Vegetables",
      "weight_in_grams": 200,
      "is_sponsored": false,
      "pod_id": "1401477",
      "product_url": "https://instamart.in/p/..."
    },
    {
      "position": 2,
      "spin_id": "K7JFBKCSAH",
      "name": "Broccoli",
      "quantity": "1 Piece",
      "description": "Rich in fiber, fresh & perfect for stir-fries",
      "mrp": 65,
      "offer_price": 52,
      "discount": 13,
      "discount_percent": 20,
      "offers": ["20% OFF"],
      "in_stock": true,
      "category": "Leafy and Seasonings",
      "sub_category": "Exotic Vegetables",
      "product_url": "https://instamart.in/p/..."
    }
  ]
}