Get API key

Swiggy Instamart Product Scraper API

The Swiggy Instamart Product Scraper API returns one product, priced at one location, as structured JSON. It carries the same fields as a search result plus variants — the product’s other pack sizes — and related_products, the rails from the page.

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

API Parameters

🔑

Scrapingdog Parameters

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

    Type: String
🔍

Product

  • product_id Required
    The spin_id from a search result — Instamart’s catalogue id, and the value this endpoint expects. spin_id is accepted as an alias. Do not pass sku_id, which is per store.

    Type: String
📍

Location

  • pincode Optional
    Indian pincode to resolve a location from. Either pincode, or both lat and lng, is required.

    Without a location the page still loads but every price comes back as 0, so treat a location as required.

    Type: String
  • lat Optional
    Latitude to search from. Use together with lng in place of pincode.

    Type: Number
  • lng Optional
    Longitude to search from. Note Instamart takes lng — Blinkit takes lon.

    Type: Number

API Examples

API result preview
Code to Integrate
curl "https://api.scrapingdog.com/swiggy/instamart/product?api_key=APIKEY&product_id=9XJCBD88DO&pincode=110001"
API Response
{
  "search_parameters": {
    "product_id": "9XJCBD88DO",
    "pincode": "110001"
  },
  "total_time_taken": 5.65,
  "location": {
    "lat": 28.6327426,
    "lng": 77.2195969,
    "address": "New Delhi, Delhi 110001, India"
  },
  "product": {
    "spin_id": "9XJCBD88DO",
    "sku_id": "5PRPUWP2R3",
    "name": "Fidelo 25gm Protein Milk",
    "brand": "Fidelo",
    "quantity": "200 ml",
    "mrp": 129,
    "offer_price": 109,
    "discount_percent": 16,
    "offers": [
      "15% OFF"
    ],
    "in_stock": true,
    "max_order_quantity": 3,
    "category": "Milk",
    "sub_category": "Fresh Milk",
    "weight_in_grams": 200,
    "images": [
      "..."
    ],
    "variants": [],
    "related_products": [],
    "product_url": "https://instamart.in/p/9XJCBD88DO"
  }
}