The Instamart product details API for one item at one location

Look up one Instamart product by spin_id and get its price, stock and full detail as JSON. Price and stock depend on the delivery location you send. Pass a spin_id and a location to begin.

Instamart Product API at a glance

This API returns one Instamart product for a delivery location. Send a POST request with a spin_id, then read the product object from the response. Run the example below to see the exact shape.

Endpoint
POST /v1/data/instamart/product
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A product object with title, brand, price, mrp, unit, stock, rating, images, highlights, description, details and variants
Product key
A spin_id from Instamart Products, an item ID or a swiggy.com/instamart/item URL
Location
Pick a launch location, or send an area name, a pincode or exact coordinates
Pack variants
Each pack size of the product, with its own spin_id, price and stock
Serving store
The response names the store_id and the coordinates used for the lookup
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request looks up one milk pack in Koramangala 560034. The response below is a trimmed view of one product. Copy the request to try it yourself.

POST /v1/data/instamart/product
curl -X POST "https://api.datablue.dev/v1/data/instamart/product" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "spin_id": "Q3L8WG2OTP",
    "location": "Koramangala 560034"
  }'
Response (trimmed: 2 of 3 variants and 3 of 5 highlights)
{
  "success": true,
  "source": "instamart",
  "product_id": "Q3L8WG2OTP",
  "requested_location": "Koramangala 560034",
  "city": "750, Block 4, 4th Block, Koramangala, Bengaluru, Karnataka 560034, India",
  "latitude": 12.93283,
  "longitude": 77.63096999999999,
  "store_id": "1396284",
  "serviceable": true,
  "captured_at": "2026-11-21T08:29:56.243423Z",
  "product": {
    "product_id": "61WDNU5G4B",
    "spin_id": "Q3L8WG2OTP",
    "title": "Nandini Pasteurised Toned Milk",
    "brand": "Nandini",
    "url": "https://www.swiggy.com/instamart/item/61WDNU5G4B",
    "unit": "500 ml",
    "price": 27,
    "mrp": 27,
    "price_per_unit": "5.4/100 ml",
    "in_stock": true,
    "availability": "in_stock",
    "cart_allowed_quantity": 20,
    "category": "Milk",
    "sub_category": "Fresh Milk",
    "super_category": "Dairy, Bread and Eggs",
    "rating": 4.4,
    "rating_count": 123400,
    "short_description": "Pure toned milk from Nandini, packed with nutrients.",
    "highlights": [
      "Pack Size: 500 ml",
      "Packaging Type: Pouch",
      "Shelf Life (in days): 3"
    ],
    "variants": [
      { "spin_id": "SXZ5HNQRMP", "unit": "500 ml x 4", "price": 108, "mrp": 108, "in_stock": true },
      { "spin_id": "Q3L8WG2OTP", "unit": "500 ml", "price": 27, "mrp": 27, "in_stock": true }
    ]
  }
}

What a product lookup returns.

One lookup returns a single product object with named fields.

Identity and link

The product carries a title and a brand, while a url field points to its item page on swiggy.com. Here product_id is the item ID from that URL, and spin_id is the lookup key.

Price and MRP

The product returns price and mrp, plus a price_per_unit rate. The pack cost 27 rupees and matched its mrp, so compare the two fields to see whether a markdown applies.

Stock and order limit

The in_stock flag and the availability value show whether the pack is on the shelf. The cart_allowed_quantity field shows the unit limit for one order. Our sample allowed 20 units in one order, so check both fields before you act on a price.

Rating

The rating field holds the shopper score for the product. The rating_count field shows the number of ratings behind it. Our sample showed 4.4 from 123400 ratings, so keep rating_count beside rating when you rank products.

Pack variants

The variants array lists every pack size of the product. Each variant has its own spin_id and price, and it also reports its unit and stock. Our sample listed three packs of the same milk, so loop over variants to build a price ladder.

Highlights

The highlights array holds short lines like Pack Size. Our sample also listed a shelf life of 3 days and an expiry date of 22 November 2026. Read the expiry line again on each lookup.

Images

The images array holds the gallery for the pack, so keep the first URL as your thumbnail.

Description and details

The description field holds the listing text, while the details array holds titled blocks such as Nutritional Information. Our sample also had Seller Details and Other Information blocks. Read the nutrition block when you need food values.

Options that shape your lookup.

Only product_id is required for a lookup. Add a location when you need one specific delivery spot.

Product key

Send the key as product_id, spin_id or url. Use a spin_id from Instamart Products or an item URL. A search row product_id does not work here, so pass the spin_id from that row instead.

Delivery location

Set location_key to pick a launch location. The values are blr_koramangala and blr_indiranagar, plus mum_bandra and del_connaught_place. It applies only when location, city and coordinates are empty.

Area and pincode

Put an area name or a pincode in location. Location wins over location_key when you send both. Unknown areas return an error instead of a default area, and a city alone returns HTTP 422. Add the area name beside city to narrow it.

Exact coordinates

Send latitude and longitude together for an exact delivery point. Coordinates win over both location and location_key. The response echoes the coordinates it used, so read serviceable to confirm that spot is covered.

Timeout

Set timeout_ms between 3000 and 60000 for the provider deadline. Raise it when a lookup times out, or lower it to fail fast in a batch job. Pick a value that suits your own latency budget.

What teams build with it.

A single lookup answers pricing and stock questions.

Price tracking

Run a lookup for each key product every day. Store price and mrp with the captured_at time, then chart the series to see how prices move.

Stock checks

Check in_stock and availability for a short list of products. Run that list at two pincodes to compare local stock.

Catalogue enrichment

Pull the description and details for products in your catalogue. Use the nutrition block to fill food attributes.

Pack price ladders

Read variants to compare prices across the pack sizes. Compare price with unit size to find the best rate.

Why use an API instead of scraping Instamart yourself.

A product price on Instamart belongs to a delivery location, so DataBlue resolves an area or pincode into a serving store. The response then echoes the store_id and coordinates it used.

This API answers a narrower question than Instamart Products. Products returns ranked rows for a keyword. This API returns the full record for one item, including pack variants and the details blocks. Search rows in our live sample carried a short description but never a nutrition block.

Every field above comes from a live Koramangala lookup. Build against those fields before you widen to more locations. Start with one spin_id from an Instamart Products search.

Your first Instamart lookup in a minute.

Get a key, then look up one product.

  1. Create an account

    Sign up to get your API key.

  2. Find a spin_id

    Run a search with Instamart Products to find a spin_id. Do not use the product_id from that row.

  3. Send the lookup

    Send a POST request to /v1/data/instamart/product with a spin_id. Add a location so the price matches one delivery spot.

  4. Read the product

    Read price and stock straight off the product object. Loop over variants to see every pack size.

Instamart product details API questions.

Short answers about data and billing before you start.

It returns one Swiggy Instamart product for a delivery location. The product object holds price and stock, plus pack variants.

Send a POST request to the product endpoint with a spin_id and your Bearer key. Add a location to match one delivery address.

Run Instamart Products and copy the spin_id from a row, or paste an Instamart item URL instead.

A search row product_id does not work in this API. Use the spin_id from the same row instead.

Yes, price and stock depend on the delivery location. Send the same location each time when you compare runs.

It lists every pack size with its own price. Our sample returned three variants for one milk.

No, this API looks up one product only. Use Instamart Products to search and Instamart Autocomplete for suggestions.

This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Look up one Instamart product in a minute.

Create an account to get your key. Then run the example request with your own spin_id.

Start free