The BigBasket scraper API for grocery search at any pincode

Search BigBasket and get priced products as JSON. Pass a pincode to see what your delivery area stocks.

BigBasket Products API at a glance

This API returns BigBasket products as JSON for a pincode. Send a POST request with a query, then read each item from the products array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/bigbasket/products
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A products array with position, title, brand, price, mrp, discount, pack size, stock, rating and delivery_time
Search controls
query, queries, search_url, category, sort, num_results, max_pages and page
Batch search
Up to 25 queries in one request with queries
Category browse
Pass a category slug or a bigbasket.com/pc URL instead of a query
Location
location (area or 6-digit pincode), latitude with longitude, or location_key. The default is blr_koramangala.
Results per request
1 to 500 per query with num_results. The default is 20.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request searches milk at pincode 560001, cheapest first. The response below shows two of the three products returned. Copy the request to try it yourself.

POST /v1/data/bigbasket/products
curl -X POST "https://api.datablue.dev/v1/data/bigbasket/products" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "milk",
    "location": "560001",
    "num_results": 3,
    "sort": "pricelth"
  }'
Response (trimmed to 2 of 3 returned products)
{
  "success": true,
  "source": "bigbasket",
  "query": "milk",
  "pincode": "560001",
  "store_id": "27069",
  "serviceable": true,
  "total_results": 171,
  "products": [
    {
      "position": 1,
      "product_id": "40181676",
      "title": "Amul Tru Litchi",
      "brand": "Amul",
      "url": "https://www.bigbasket.com/pd/40181676/amul-tru-litchi-180-ml-tetra-pak/",
      "price": 8.5,
      "mrp": 10,
      "currency": "INR",
      "discount": "15% OFF",
      "discount_percentage": 15,
      "quantity": "150 ml",
      "pack_description": "Tetra Pak",
      "unit_price": "5.66 per 100ml",
      "category": "Dairy",
      "sub_category": "Flavoured, Soya Milk",
      "in_stock": true,
      "delivery_time": "5 mins",
      "rating": 4.1,
      "rating_count": 1396,
      "review_count": 34
    },
    {
      "position": 2,
      "product_id": "40343323",
      "title": "Mother Dairy UHT Milk",
      "brand": "Mother Dairy",
      "price": 16,
      "mrp": 16,
      "currency": "INR",
      "quantity": "180 ml",
      "unit_price": "8.88 per 100ml",
      "category": "Dairy",
      "sub_category": "Milk",
      "in_stock": true,
      "delivery_time": "5 mins"
    }
  ],
  "has_more": true,
  "stop_reason": "max_pages_reached"
}

What a product returns.

Each product arrives as one object with named fields.

Identity

Every product has a product_id, a title and a brand. Use product_id as the join key in your own records.

Price and discount

Each item carries price, mrp and currency. The currency was INR in our sample. Discount comes as a label and as a plain number. Items with no markdown leave the discount fields out.

Pack size and unit price

The quantity field holds the pack size, like 180 ml. The pack_description field names the pack, such as Tetra Pak. The unit_price field reads like 8.88 per 100ml. Compare pack sizes on it when prices alone mislead.

Stock and delivery

The in_stock flag and the availability value say whether the item is available at that location. The delivery_time field showed 5 mins in our sample. Read both fields before you trust a price.

Ratings

Items carry a rating, a rating_count and a review_count. Check that each field exists before you read it.

Links and images

Each product has a url to its BigBasket page, an image_url and an images array. The captured_at timestamp tells you when each row was read.

Category labels

Each item has a category and a sub_category label. Filter on sub_category to focus on one shelf.

Options that shape your search.

Pick a search or a category to start. Add the rest to tighten your results.

Search query

Set query to the product name you would search for. You could also pass a search_url from bigbasket.com, and the query is read from it.

Batch queries

Send up to 25 strings in queries for one batch. Each query is searched at the same location. Match rows back to queries with the search_query field.

Category browse

Set category to a slug such as fresh-milk to list a shelf instead of searching. A bigbasket.com/pc category URL works as well. Get slugs from the BigBasket Categories API.

Sort order

Without sort, results follow BigBasket relevance order. Set sort to pricelth for the cheapest items first. Use pricehtl for the reverse and dphtl for deepest discounts. The schema also lists dahtl and dalth without a description.

Result count and pages

Ask for 1 to 500 products per query with num_results. The default is 20 products for each query. Each page holds 20 products, so max_pages 25 reaches 500. Use page to start from a later result page. Read has_more to learn whether more pages exist.

Delivery location

Results depend on the delivery location, so set one. Pass location as an area name or a 6-digit pincode. Send latitude and longitude together for an exact delivery point. Coordinates win over location, and location wins over location_key. The location_key option offers three launch points. The default point is blr_koramangala in Bengaluru. The other two are mum_andheri_west and del_lajpat_nagar. The response echoes the resolved coordinates and pincode.

Timeout

Set timeout_ms from 3000 to 60000 milliseconds. The provider deadline defaults to 20000 milliseconds. Keep the default while you test a new query.

What teams build with it.

Grocery pricing data feeds trackers and catalogues.

Price tracking

Search your staples on a schedule at one pincode, then store price and mrp with captured_at for every row.

Discount monitoring

Sort by dphtl to see the biggest markdowns first, then alert your team when discount_percentage crosses a threshold.

Catalogue and brand audits

Browse a category by slug and group items by brand, then compare shelves between pincodes to see where assortment differs.

Pincode comparison

Run one query for each launch point. Compare price and stock between the cities.

Why use an API instead of scraping BigBasket yourself.

BigBasket results depend on the delivery location you pick. This API makes the location an input on every request. A pincode goes in and the resolved coordinates come back.

You also skip the work of paging through results. Each result page holds 20 products, and you choose how many pages a request reads. The response reports total_results, has_more and stop_reason. Your job reads them to decide when to stop.

Each row carries a captured_at timestamp, so store it next to every price you keep. Start with num_results at 3 to learn the shape. Then check the fields before you scale the job.

Your first BigBasket search in a minute.

Sign up, get a key and run one search.

  1. Create an account

    Sign up to get your API key.

  2. Send a search

    POST your query and location to /v1/data/bigbasket/products with a Bearer key, then add sort to rank the items.

  3. Read the products

    Loop over the products array and read price and stock from each object in turn.

BigBasket scraper API questions.

Short answers about data and billing before you start.

It turns BigBasket searches and category pages into structured JSON. Each product arrives as one object in the products array.

Send a POST request to /v1/data/bigbasket/products with a query, a location and your Bearer key.

Results depend on the delivery location you set, so pass a pincode or an area name in location. Send latitude and longitude together for an exact point. The default point is blr_koramangala in Bengaluru.

Each product carries price and mrp with stock and rating. It also carries a delivery time and a pack size. Compare it with the sample response above.

Pass up to 25 strings in queries. Each query is searched at the same location, and each product row names the search_query that found it.

Set category to a slug such as fresh-milk. A bigbasket.com/pc category URL also works as a value. Get slugs from the BigBasket Categories API.

Set num_results from 1 to 500 per query. Without num_results you get 20 products per query. Each page holds 20 products, so use max_pages to read deeper into a long list.

Search rows carry the core fields for each product. Call the BigBasket Product API with one product ID to get the description and variants.

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 BigBasket search in a minute.

Create an account to get your key. Then paste the example request into your terminal.

Start free