Instamart Products
DataBlue / Docs / Endpoint
POST/v1/data/instamart/products

Instamart Products

Search Swiggy Instamart products or browse a collection and return normalized quick-commerce rows with price, MRP, pack size, stock, category, sponsored flags, ratings when available, and location/store context. DataBlue mints the required session pack internally and replays the decoded HTTP search flow.

Execution Model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit Weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Parameters

NameTypeRequirementDescription
query / searchQuerystringREQUIREDProduct search query. Required unless collection_id is supplied.
collection_id / collectionIdstringoptionalInstamart collection/category id for collection browse mode.
num_results / maxResultsnumberoptionalMaximum products to return (1-200).
pagenumberoptionalStarting Instamart result page (1-5).
location_keystringoptionalFixed launch location. Supported: blr_koramangala, blr_indiranagar, mum_bandra, del_connaught_place.
store_idstringoptionalExplicit decoded Instamart store ID for advanced store-specific requests.
primary_store_idstringoptionalExplicit primary store ID. Requires store_id.
secondary_store_idstringoptionalComma-separated secondary store IDs for advanced decoded-store replay.
latitude / latnumberoptionalCustom delivery latitude. Must be sent with longitude.
longitude / lonnumberoptionalCustom delivery longitude. Must be sent with latitude.
citystringoptionalOptional custom city label.
locationstringoptionalOptional custom area or address label.
timeout_msnumberoptionalProvider timeout in milliseconds (3000-60000).

Response Fields

FieldTypeDescription
successbooleanWhether the Instamart request completed successfully.
runtimestringCurrent runtime path, usually warm_http_decoded_protocol.
querystringNormalized product query or collection:<id> marker for collection browse mode.
location_keystringFixed launch location key used for the request.
store_id / primary_store_id / secondary_store_idstringDecoded Instamart store identifiers used for the request when available.
pages_fetchednumberNumber of Instamart provider pages fetched.
productsarrayProduct rows with product_id, title, brand, image, price, MRP, discount, savings, quantity, category, sponsored flags, rating, rating_count, and availability.
search_urlstringProvider URL metadata when available.
time_takennumberAPI response time in seconds.
errorstringError message when the provider request fails.

cURL Example

curl -X POST "https://api.datablue.dev/v1/data/instamart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "searchQuery": "coffee",
  "location_key": "blr_koramangala",
  "maxResults": 5,
  "page": 1
}'

System Responses

200 OK

Request processed successfully.

401 UNAUTHORIZED

Missing or invalid API key.

429 RATE LIMIT

System capacity exceeded.

500 SYSTEM FAILURE

Internal core exception.

EXAMPLE RESPONSE
{
  "success": true,
  "source": "instamart",
  "runtime": "warm_http_decoded_protocol",
  "query": "coffee",
  "location_key": "blr_koramangala",
  "requested_location": "Koramangala, Bengaluru",
  "city": "Bengaluru",
  "store_id": "1396284",
  "primary_store_id": "1396284",
  "page": 1,
  "pages_fetched": 1,
  "time_taken": 1.21,
  "products": [
    {
      "position": 1,
      "product_id": "123456",
      "title": "Instant Coffee",
      "brand": "Example Brand",
      "image_url": "https://media-assets.swiggy.com/...",
      "price": 199,
      "mrp": 249,
      "currency": "INR",
      "discount": "20% OFF",
      "savings": 50,
      "quantity": "100 g",
      "category": "Coffee",
      "is_sponsored": false,
      "inStock": true,
      "availability": "in_stock"
    }
  ]
}