> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Instamart Products API

> Instamart products by search, category or product URL(s): prices, MRP, stock, ratings, rank, images and product details

`POST /v1/data/instamart/products/run`

**Pricing:** $0.001 per product ($1.00 per 1,000).

Search by query, browse a category and sub-category, or fetch one or more specific product URLs.

## Ways to call it

* **Search**: set `query` (optional: `city`, `pincode`, `store_id`, `lat`, `lon`, `maxResults`)
* **Category**: set `category`, `sub_category` (optional: `city`, `pincode`, `store_id`, `lat`, `lon`, `maxResults`)
* **Brand**: set `brand` (optional: `city`, `pincode`, `store_id`, `lat`, `lon`, `maxResults`)
* **URL**: set `urls` (optional: `city`, `pincode`, `store_id`, `lat`, `lon`)

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**query** `string`

What to search for (e.g. milk, chocolate).

**category** `string`

Top-level category (e.g. Cold Drinks & Juices).

36 allowed values, for example `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`. Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**sub\_category** `string`

Sub-category within it (e.g. Soft Drinks).

526 allowed values, for example `Atta`, `Basmati Rice`, `Besan, Sooji and Maida`, `High Protein Atta`, `Millets & Daliya`, `Other Flours`, `Poha & Puffed Rice`, `Premium Brands`, `Rajma, Chola and Others`, `Ready to Cook Flour Mix`. Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**brand** `string`

Brand as spelled on Instamart. Pick from the list. The brand's URL slug is accepted too.

4846 allowed values, for example `&Circus` (\&circus), `1000 Farms` (1000-farms), `10on`, `10on10foods`, `1868 BY TATA Tea` (1868-by-tata-tea), `1950 Origins` (1950-origins), `1st Step` (1st-step), `24 Mantra` (24-mantra), `24BITES` (24bites), `28 BLACK` (28-black). Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**urls** `string[]`

One or more product page URLs (one per line).

**store\_id** `string`

Dark store - pick a city and pincode first.

1197 allowed values, for example `1386719` (1386719 (110002, New Delhi)), `1261842` (1261842 (110003, New Delhi)), `1383851` (1383851 (110003, New Delhi)), `1403207` (1403207 (110005, New Delhi)), `1404594` (1404594 (110007, New Delhi)), `1402776` (1402776 (110007, New Delhi)), `1381835` (1381835 (110008, New Delhi)), `816651` (816651 (110009, New Delhi)), `1325203` (1325203 (110009, New Delhi)), `1229997` (1229997 (110012, New Delhi)). Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**lat** `number`

Or target by coordinates: latitude (use with longitude).

Min `-90`; max `90`; use together with `lon`.

**lon** `number`

Or target by coordinates: longitude (use with latitude).

Min `-180`; max `180`; use together with `lat`.

**city** `string`

City - filters the pincode and store lists.

145 allowed values, for example `New Delhi`, `Faridabad`, `Gurugram`, `Rohtak`, `Sonipat`, `Karnal`, `Panipat`, `Ambala`, `Panchkula`, `Kurukshetra`. Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**pincode** `string`

Pincode - pick a city first; filters the store list.

816 allowed values, for example `110002` (110002 (New Delhi)), `110003` (110003 (New Delhi)), `110005` (110005 (New Delhi)), `110007` (110007 (New Delhi)), `110008` (110008 (New Delhi)), `110009` (110009 (New Delhi)), `110012` (110012 (New Delhi)), `110014` (110014 (New Delhi)), `110015` (110015 (New Delhi)), `110016` (110016 (New Delhi)). Fetch the full list with `GET /v1/data/instamart/products?expand=options`.

**maxResults** `integer`

How many products to return. Use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/instamart/products/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "query": "chocolate",
    "city": "Agra",
    "pincode": "282002",
    "store_id": "1401076"
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/instamart/products/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "query": "chocolate",
    "city": "Agra",
    "pincode": "282002",
    "store_id": "1401076"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/instamart/products/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "query": "chocolate",
  "city": "Agra",
  "pincode": "282002",
  "store_id": "1401076"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one product, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `productName` | Product Name | text |
| `brand` | Brand | text |
| `variantId` | Variant ID | text |
| `productId` | Product ID | text |
| `price` | Price | currency |
| `mrp` | MRP | currency |
| `discount` | Discount % | percentage |
| `packSize` | Pack Size | text |
| `inStock` | In Stock | boolean |
| `stockCount` | Stock Count | number |
| `rating` | Rating | rating |
| `ratingCount` | Rating Count | number |
| `category` | Category | text |
| `rank` | Rank | number |
| `sponsored` | Sponsored | boolean |
| `images` | Images | array |
| `productUrl` | Product URL | url |
| `description` | Description | text |
| `countryOfOrigin` | Country of Origin | text |
| `manufacturer` | Manufacturer | text |
| `seller` | Seller | text |
| `specifications` | Specifications | object\_array |
| `storeId` | Store ID | text |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "instamart/products",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "rating": 4.5,
      "productId": "E4UHUGHU7J",
      "countryOfOrigin": "India",
      "images": [
        "https://instamart-media-assets.swiggy.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,h_600/NI_CATALOG/IMAGES/ciw/2026/2/18/960fc1b4-9a1b-4f7c-8391-62205152fd...",
        "https://instamart-media-assets.swiggy.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,h_600/NI_CATALOG/IMAGES/CIW/2025/4/12/38016198-a96d-4de7-86ce-2d968d92aa..."
      ],
      "mrp": 20.0,
      "brand": "Cadbury",
      "variantId": "2371CYLZH9",
      "rank": 1,
      "manufacturer": null,
      "sponsored": false,
      "seller": "Dream Magic Mart Pvt Ltd - Rambagh",
      "inStock": true,
      "ratingCount": 85600,
      "packSize": "16 g x 2",
      "description": "Boost your snack time with the delightful Cadbury Shots Chocolate Multi Pack Of 3 online ! Indulge in the rich, creamy taste of Cadbury chocolate in convenie...",
      "stockCount": 15,
      "longitude": 77.998,
      "category": "Milk Chocolates",
      "specifications": [
        {
          "name": "Ingredients",
          "value": "Milk Chocolate (Sugar, Milk Solids, Cocoa Butter, Cocoa Solids, Emulsifiers (442, 476)) Cocoa Solids 20% minimum Milk Solids 20% minimum Contains added Flavo..."
        },
        {
          "name": "Nutritional Information",
          "value": "Energy: 533 kcal Protein: 8.1g Carbohydrate: 57.7g Total Fat: 29.8g Saturated Fat: 18.8g Trans Fat: 0.1g Cholesterol: 9mg Sodium: 59mg Dietary Fiber: 3.5g Su..."
        }
      ],
      "latitude": 27.1947,
      "productName": "Cadbury Shots Chocolate",
      "productUrl": "https://www.swiggy.com/instamart/item/E4UHUGHU7J",
      "discount": 0.0,
      "storeId": "1401076",
      "price": 20.0
    }
  ]
}
```

## Related APIs

Same record shape as [`blinkit/products`](https://docs.mindcase.co/apis/blinkit/products) and [`zepto/products`](https://docs.mindcase.co/apis/zepto/products), so the three can be compared row for row.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.