The Zepto scraper API for local product data

Search Zepto and get local product results as JSON, with a price and a stock flag for every item. Results depend on the delivery location you send. Pass a pincode or an area name to set it.

Zepto Products API at a glance

This API searches Zepto and returns products as JSON. Results come back for the delivery location you choose. Send a POST request with a query and a location, then read each item from the products array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/zepto/products
Authentication
API key as Authorization: Bearer wh_…
Stage
Beta
Output
A products array with name, brand, price, MRP, stock, rating and delivery ETA, plus store and serviceability fields
Location
A fixed location_key, a pincode or area name in location, or latitude and longitude
Results per request
1 to 100 with num_results, in pages of 20 with up to 5 pages
Batch searches
Up to 25 queries per request, always run as a queued job
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request searches for milk at pincode 560034 in Bengaluru. The response below shows two of the three products returned. Copy the request to try it yourself.

POST /v1/data/zepto/products
curl -X POST "https://api.datablue.dev/v1/data/zepto/products" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "milk",
    "location": "Koramangala 560034",
    "num_results": 3
  }'
Response (trimmed to 2 of 3 products)
{
  "success": true,
  "source": "zepto",
  "query": "milk",
  "requested_location": "Koramangala 560034",
  "latitude": 12.9357366,
  "longitude": 77.624081,
  "serviceable": true,
  "store_id": "796c71f3-568e-4d6d-8767-87285ad4f23a",
  "delivery_eta_minutes": 8,
  "page": 1,
  "pages_fetched": 1,
  "products": [
    {
      "position": 1,
      "product_variant_id": "9d447ba5-1d35-46e1-bc64-e932135d026f",
      "name": "Amul Taaza Toned Fresh Milk | Pouch",
      "brand": "Amul",
      "price": 30,
      "mrp": 30,
      "currency": "INR",
      "category": "Dairy, Bread & Eggs",
      "sub_category": "Milk",
      "inventory": 17,
      "max_allowed_quantity": 30,
      "in_stock": true,
      "availability": "in_stock",
      "rating": 4.7,
      "rating_count": 1259189,
      "delivery_eta_minutes": 8,
      "is_sponsored": true
    },
    {
      "position": 3,
      "product_variant_id": "ba77f9b3-0525-4ce8-bc4b-a2480419b780",
      "name": "Godrej Jersey Fresh Toned Milk",
      "brand": "Godrej Jersey",
      "price": 29,
      "mrp": 32,
      "currency": "INR",
      "category": "Dairy, Bread & Eggs",
      "sub_category": "Milk",
      "inventory": 13,
      "max_allowed_quantity": 30,
      "in_stock": true,
      "availability": "in_stock",
      "rating": 4.9,
      "rating_count": 75786,
      "delivery_eta_minutes": 8,
      "is_sponsored": true
    }
  ]
}

What a product returns.

Each product arrives as one object with named fields.

Identity

Every item has a name, a brand and a position. Variant IDs such as product_variant_id let you match each item to your own records later on.

Price and discount

The price field holds the selling price at that location. The mrp field holds the listed maximum retail price. The currency field reads INR in our sample. Compare price with mrp to spot a discount.

Stock and quantity

The in_stock flag and the availability text tell you if an item is in stock. The inventory field shows how many units are left. The max_allowed_quantity field holds the largest quantity Zepto allows.

Ratings

Each item carries a rating and a rating_count. Sort on both to find products with strong shopper feedback.

Category

Category and sub_category place each item in Zepto’s own tree. Our sample shows the category Dairy, Bread & Eggs.

Delivery time and sponsorship

Each item repeats delivery_eta_minutes, which was 8 in our sample. The is_sponsored flag marks sponsored placements in the results. Filter on it when you want organic ranking only.

Store and serviceability

The response reports a store_id and a serviceable flag. It also echoes the latitude and longitude it resolved. Check serviceable before you trust any result.

Options that shape your search.

Only a query is required to run a search. Add the rest when you need tighter results.

Search query

Set query to the product you want to find. The keyword alias works the same way. The startUrl alias takes a Zepto search URL that carries a query parameter in it.

Delivery location

Results depend on where the order would be delivered. Pass location with an area name or a 6-digit pincode. DataBlue geocodes it and resolves the serving store. Unknown areas return an error, never a default area. Write the area before the pincode when that pincode covers more than one area, as in Koramangala 560034.

Fixed launch locations

Set location_key to one of three fixed launch locations. The supported keys are blr_koramangala, mum_bandra and del_connaught_place. The default key is blr_koramangala when you pass nothing else.

Exact coordinates and city

Send latitude and longitude together to pin an exact point. Both values together skip the geocoding step. A city alone returns HTTP 422 with example areas, so add one of them to location.

Result count and pages

Ask for 1 to 100 products with num_results. The default is 20 products per request. Set max_pages between 1 and 5 to cap pages. It also caps results at max_pages times 20. Use page to begin on a later Zepto result page.

Batch queries

Send queries with up to 25 keywords instead of query. A batch always runs as a queued job.

Timeout

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

What teams build with it.

Local prices and stock power research and monitoring.

Price monitoring

Track price and mrp for one basket at one pincode. Run the same search each day to see changes.

Assortment checks

Search for milk and read which brands appear. Compare that brand mix between two pincodes.

Stock checks

Read in_stock and inventory for each item at a pincode. Count items that are out of stock in each area.

Delivery coverage

Run one query for each pincode you care about. Read serviceable and delivery_eta_minutes from each response. Plot the coverage on a map for your ops team.

Why use an API instead of scraping Zepto yourself.

Zepto results depend on where the order is delivered. That makes a location part of every request you send. DataBlue turns your area or pincode into coordinates. It then finds the serving store and echoes both values in every response you get.

A browser scraper of your own must set a location and parse each page into fields. One request here returns the products already parsed. Your code reads JSON and nothing else.

Every field on this page appears in a live response. This API is in beta today, so fields could still change as we improve it. Build against the documented fields, then check the changelog before each upgrade you ship to production.

Your first Zepto search in a minute.

Sign up, get a key and run one request.

  1. Create an account

    Sign up to get your API key.

  2. Send a search

    Send a POST request to /v1/data/zepto/products with your Bearer key. Include a query and a pincode in the JSON body.

  3. Read the products

    Loop over the products array and read every field straight off the object with no HTML parsing. Keep each price together with its pincode.

Zepto scraper API questions.

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

It turns a Zepto product search into structured JSON. Each product comes back as one object in the products array for the delivery location you send.

Send a POST request to /v1/data/zepto/products with a query and a Bearer token for your API key. Add a pincode or an area name in location to set the delivery area for the search.

Results depend on the delivery location, so a location belongs in every request you make. A request with no location falls back to blr_koramangala.

Three fixed keys cover the launch locations. The keys are blr_koramangala, mum_bandra and del_connaught_place. Send an area name or a pincode to choose another location, or send latitude and longitude. Unknown areas return an error instead of a default area.

The fields section above lists what each product returns. Compare it with the sample response above.

Set num_results between 1 and 100 to choose the count. The default is 20 products per request. Each page holds 20 results, so max_pages of 2 returns at most 40 products in total.

Pass queries with up to 25 keywords instead of query. A batch always runs as a queued job.

This API searches and returns a list of products. Zepto Product returns one item with its gallery and details, looked up by variant ID. Zepto Autocomplete returns search suggestions without prices.

This API is in beta today, and fields could still change as we improve it. Build against the documented fields, then read 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 search in a minute.

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

Start free