The Instamart search suggestions API for partial queries

Send a partial query and get Instamart search suggestions as JSON, each with a type and an image. Suggestions depend on the delivery location you send. Pass a prefix and a location to begin.

Instamart Autocomplete API at a glance

This API returns Instamart search suggestions for a partial query. Send a POST request with a prefix, then read each suggestion from the suggestions array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/instamart/autocomplete
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A suggestions array with position, keyword, type and image_url, plus a count
Prefix
1 to 100 characters of partial text, as typed into a search box
Suggestions per request
1 to 20 with limit. The default is 10.
Location
Pick a launch location, or send an area name, a pincode or exact coordinates
Suggestion types
Category and query values, as seen in our live response
Prices
None. This API returns suggestion text only.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request sends the prefix mil for Koramangala 560034. The response below shows three of the five suggestions returned. Copy the request to try it yourself.

POST /v1/data/instamart/autocomplete
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "prefix": "mil",
    "limit": 5,
    "location": "Koramangala 560034"
  }'
Response (trimmed to 3 of 5 suggestions)
{
  "success": true,
  "source": "instamart",
  "prefix": "mil",
  "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:30:04.435065Z",
  "count": 5,
  "suggestions": [
    {
      "position": 1,
      "keyword": "Milk",
      "type": "category",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/NI_CATALOG/IMAGES/ciw/2025/12/17/02bfb139-2185-4e4a-9419-29fd0af79fbb_J4ZRFJNQRO_MN_16122025.png"
    },
    {
      "position": 2,
      "keyword": "Arokya Milk",
      "type": "query",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/NI_CATALOG/IMAGES/ciw/2025/12/17/009b5e3c-e70f-4173-b397-aa78d963e24f_SY3KDF99TR_MN_16122025.png"
    },
    {
      "position": 3,
      "keyword": "Nandini Milk",
      "type": "query",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/NI_CATALOG/IMAGES/ciw/2025/12/17/02bfb139-2185-4e4a-9419-29fd0af79fbb_J4ZRFJNQRO_MN_16122025.png"
    }
  ]
}

What a suggestion returns.

Each suggestion arrives as one object with four fields.

Keyword

The keyword field holds the suggested search text. For mil, our sample returned Milk and Nandini Milk. Feed the keyword straight into Instamart Products as a query.

Type

The type field separates a category from a plain query. Milk came back as a category in our sample, while the brand phrases came back as queries. Branch on type when you build a search box.

Position

Each suggestion has a position that follows the order returned. Keep that order when you display the list.

Image

Each suggestion returns an image_url with a product picture. Two suggestions in our sample shared the same image, so cache pictures by URL to skip repeat downloads. Read image_url before you assume each row has its own.

Count and location

The count field gives the number of suggestions returned. The response also echoes the store_id and resolved coordinates. Read serviceable to confirm that spot is covered.

Options that shape your suggestions.

Only prefix is required for a request. Add a limit or a location to tune the results.

Prefix

Set prefix to the partial text a shopper has typed. The field accepts 1 to 100 characters of text. Each call covers one prefix, and every call uses credits.

Suggestion limit

Set limit from 1 to 20 to cap the list. The default is 10 suggestions per request. Ask for fewer when you only fill a short dropdown.

Delivery location

Suggestions depend on the delivery location you pick. Set location_key to pick a launch location. The values are blr_koramangala and blr_indiranagar, plus mum_bandra and del_connaught_place. The default is blr_koramangala when no other location is sent.

Area, pincode and coordinates

Put an area name or a pincode in location. Location wins over location_key when you send both. Send latitude and longitude together to pin an exact point. 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.

Timeout

Set timeout_ms between 3000 and 60000 for the provider deadline. Raise it when a call times out, or lower it to fail fast in a live search box. Pick a value that fits your own latency budget.

What teams build with it.

Suggestions show how Instamart completes a search.

Search box features

Call the API after a pause in typing, then show the results in a dropdown. Use type to group categories above plain queries.

Keyword discovery

Seed the API with a letter or a short stem. Collect the keywords returned for each stem, then store them with the location you used for that run.

Local assortment hints

Run the same prefix at two launch locations. Compare the keywords to see whether suggestions change by location.

Seeding product searches

Take each keyword from a suggestion and send it to Instamart Products as a query. Pull prices for the terms you find.

Why use an API instead of scraping Instamart yourself.

Instamart suggestions depend on the delivery location. DataBlue turns an area or pincode into a serving store before it asks for suggestions. The response then echoes the store_id and coordinates it used.

This API does something its siblings do not. Instamart Products returns priced rows for a query, while Instamart Product looks up one item by spin_id. This API returns suggestion text with a type and an image, and it carries no prices.

Every field above comes from a live Koramangala response. Build against those fields before you widen to more locations. Start with one prefix and a limit of 5.

Your first Instamart suggestion in a minute.

Get a key, then send a prefix.

  1. Create an account

    Sign up to get your API key.

  2. Send a prefix

    Send a POST request to /v1/data/instamart/autocomplete with a prefix. Add a location so suggestions match one delivery spot.

  3. Read the suggestions

    Loop over the suggestions array in the response. Read keyword and type straight off each object. Send a keyword to Instamart Products to fetch prices.

Instamart search suggestions API questions.

Short answers about data and billing before you start.

It returns suggestions for partial text at a delivery location. Each suggestion returns a keyword and a type. Every suggestion also carries an image URL.

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

Set limit between 1 and 20 to cap the list. The default is 10, and each response reports a count.

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

No, prices are not part of the response. Use Instamart Products to read prices for a suggested keyword.

Milk came back as a category in our sample, and the brand phrases came back as queries. Read type before you decide how to treat each row.

Choose from four launch locations with location_key. For other spots use location with an area name or a six digit pincode, such as 560034.

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.

Get Instamart suggestions in a minute.

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

Start free