The Zepto search suggestions API for autocomplete data

Send a partial word and get Zepto search suggestions as JSON for one delivery location. Pass a prefix and a location to try it, and each suggestion comes back with a keyword and a type.

Zepto Autocomplete API at a glance

This API returns Zepto search suggestions for a partial query. Send a POST request with a prefix and a location, then read the suggestions array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/zepto/autocomplete
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A suggestions array with position, keyword, type and image_url, plus a count
Required input
prefix, from 1 to 100 characters
Suggestions per request
1 to 20 with limit. The default is 10.
Location
location, location_key, city, or latitude and longitude
Not included
No prices or stock. Use Zepto Products for those.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

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

POST /v1/data/zepto/autocomplete
curl -X POST "https://api.datablue.dev/v1/data/zepto/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": "zepto",
  "prefix": "mil",
  "requested_location": "Koramangala 560034",
  "latitude": 12.9357366,
  "longitude": 77.624081,
  "store_id": "796c71f3-568e-4d6d-8767-87285ad4f23a",
  "serviceable": true,
  "captured_at": "2026-11-21T08:29:18.936908Z",
  "count": 5,
  "suggestions": [
    {
      "position": 1,
      "keyword": "Milk",
      "type": "search_autosuggestion",
      "image_url": "https://cdn.zeptonow.com/production/inventory/banner/714b6953-fe94-4792-9f9a-934fad660fc5.png"
    },
    {
      "position": 2,
      "keyword": "Milkybar chocolates",
      "type": "search_autosuggestion",
      "image_url": "https://cdn.zeptonow.com/production/inventory/product/8230f481-b7f5-48cb-8406-d1498c88471d-1RGBdwMWq0uA70-T_oLiDaE3De6500KBf.jpeg"
    },
    {
      "position": 3,
      "keyword": "Milk curd",
      "type": "search_autosuggestion",
      "image_url": "https://cdn.zeptonow.com/production/cms/product_variant/3207e885-799f-4f66-bb0d-b9a5daf853eb.png"
    }
  ]
}

What a suggestion returns.

Each suggestion arrives as one object with named fields.

Keyword

The keyword field holds the suggested search text. Our sample returned Milk, Milkybar chocolates and Milk curd.

Position

The position field numbers suggestions in list order.

Type

The type field labels the kind of each suggestion. Every item in our sample had the type search_autosuggestion, so treat type as an open set and expect new values.

Image

The image_url field links to a picture on Zepto’s CDN.

Count and echo

The count field reports the number of suggestions returned, and the response also echoes your coordinates and store_id.

What it leaves out

Suggestions carry no price, stock or rating. Pass a keyword to Zepto Products when you need those.

Serviceability

The response includes a serviceable flag and a captured_at time. Check serviceable before you trust a suggestion list.

Options that shape your suggestions.

Only the prefix field is required to run a request. Add the rest to set a location or a limit.

Prefix

Set prefix to the partial text a shopper has typed. The prefix must hold 1 to 100 characters, so try a short prefix such as mil first.

Limit

Set limit from 1 to 20 to cap the count, and the default limit is 10 suggestions per request.

Delivery location

Suggestions are returned for a delivery location you choose. Pass location as an area name or a 6-digit pincode, and it wins over location_key when both are present. Unknown areas return an error instead of a default.

Coordinates and city

Send latitude and longitude together to pin an exact point, and the pair wins over location when both are sent. A city alone returns HTTP 422 with example areas. Pair a city with location to narrow an area down.

Launch keys

Set location_key to pick one of three fixed launch locations. The keys are blr_koramangala, mum_bandra and del_connaught_place. It applies only when no other location field is present.

Timeout

Set timeout_ms between 3000 and 60000 for the provider deadline, which defaults to 20000 milliseconds on every call. Keep the default until a call times out.

What teams build with it.

Suggestion text feeds search boxes and keyword research.

Demand research

Send a prefix for each term you track, then collect the keywords Zepto suggests at a pincode. Repeat it for each pincode you sell in.

Catalogue gap checks

Check which brands Zepto suggests for a category word. Our mil sample included Milkybar chocolates and Milky mist curd.

Location comparison

Send the same prefix at two pincodes. Compare the two lists and note any change.

Query seeding

Use suggestion keywords as the query for Zepto Products. Pull prices and stock for each keyword.

Why use an API instead of scraping Zepto search yourself.

Suggestions depend on the prefix and on the delivery location, so one request returns the list for that pair. You never drive a browser or parse a page yourself.

The response is a flat list of small objects. Suggestions carry a keyword, a type and an image link. Loop over a list of prefixes and read the keyword from every suggestion in the response.

Every field on this page appears in a live response. Our catalogue marks this API stable today. Run a few prefixes at your own pincode, then build on the documented fields before you ship.

Your first suggestion request in a minute.

Sign up, get a key and send one prefix.

  1. Create an account

    Sign up to get your API key.

  2. Send a prefix

    POST a prefix and a location to /v1/data/zepto/autocomplete. Authenticate with your Bearer key in the Authorization header.

  3. Read the suggestions

    Loop over the suggestions array and read each keyword. Feed the keywords into Zepto Products to get prices.

Zepto search suggestions API questions.

Short answers about data, location and billing before you begin.

It turns partial search text into Zepto suggestions as JSON. Each suggestion arrives as one object in the suggestions array.

Send a POST request to /v1/data/zepto/autocomplete with a prefix and a Bearer token for your API key. Add a location to set the delivery area.

The prefix holds 1 to 100 characters. The limit option accepts 1 to 20 suggestions per request, with a default of 10.

Suggestions are returned for the delivery location you send, so pass one with every request. The response echoes the coordinates and store it used.

Pass an area name or a 6-digit pincode in location. Send latitude and longitude together for an exact point, or use location_key for a fixed launch location.

It does not return prices or stock for any suggestion. Pass any suggested keyword to Zepto Products to get its prices and stock at the same pincode.

The type field labels the kind of each suggestion. Our sample returned search_autosuggestion for every item.

This API returns suggestion text for a partial query. Zepto Products returns priced items for a full query. Zepto Product returns one item by variant ID.

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.

Run a Zepto suggestion request in a minute.

Create an account and copy your key. Then run the example request with your own prefix.

Start free