APIs / Marketplaces / BigBasket
1 credit per call3 endpoints15 datapointsChecked working 6 Dec 2026
BigBasket API
BigBasket API for grocery categories, listings and products by Indian pincode: prices, discounts, pack sizes and stock as JSON. 1 credit per successful call.
{
"success": true,
"data": {
"path": "fruits-vegetables",
"pincode": "110001",
"location": {
"lat": "28.6139",
"lng": "77.2090",
"area": "Connaught Place",
"city": "New Delhi",
"pincode": "110001"
},
"page": 1,
"page_count": 33,
"count": 48,
"has_next_page": true,
"items": [
{
"position": 1,
"id": "/pd/10000149/fresho-onion-2-kg/",
"product_id": "10000149",
"name": "Onion",
"brand": "fresho!",
"pack": "2 kg",
"url": "https://www.bigbasket.com/pd/10000149/fresho-onion-2-kg/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000149_15-fresho-onion.jpg",
"availability": "in_stock",
"ean_code": "10000149",
"pincode": "110001",
"price": 144,
"regular_price": 191.25,
"discount": 47.25,
"currency": "INR"
},
{
"position": 2,
"id": "/pd/10000203/fresho-tomato-local-1-kg/",
"product_id": "10000203",
"name": "Local Tomato",
"brand": "fresho!",
"pack": "1 kg",
"url": "https://www.bigbasket.com/pd/10000203/fresho-tomato-local-1-kg/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000203_19-fresho-tomato-local.jpg",
"availability": "in_stock",
"ean_code": "10000203",
"pincode": "110001",
"price": 29.6,
"regular_price": 37,
"discount": 7.4,
"currency": "INR"
},
{
"position": 3,
"id": "/pd/10000099/fresho-coriander-leaves-500-g/",
"product_id": "10000099",
"name": "Coriander Leaves Without Roots",
"brand": "fresho!",
"pack": "500 g",
"url": "https://www.bigbasket.com/pd/10000099/fresho-coriander-leaves-500-g/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000099_11-fresho-coriander-leaves.jpg",
"availability": "in_stock",
"ean_code": "10000099",
"pincode": "110001",
"price": 114,
"regular_price": 232.5,
"discount": 118.5,
"currency": "INR"
}
]
},
"meta": {
"endpoint_family": "search",
"request_id": "req_507881c7c92b4fa087d817787e168674",
"credits_charged": 1,
"credits_remaining": 4971
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | idstring | product_idstring | namestring | brandstring | packstring | urlurl | imageurl | availabilitystring | ean_codestring | pincodestring | pricenumber | regular_pricenumber | discountnumber | currencystring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | /pd/10000149/fresho-onion-2-kg/ | 10000149 | Onion | fresho! | 2 kg | https://www.bigbasket.com/pd/10000149/fresho-onion-2-kg/ | https://www.bbassets.com/media/uploads/p/l/10000149_15-fresho-onion.jpg | in_stock | 10000149 | 110001 | 144 | 191.25 | 47.25 | INR |
| 2 | 2 | /pd/10000203/fresho-tomato-local-1-kg/ | 10000203 | Local Tomato | fresho! | 1 kg | https://www.bigbasket.com/pd/10000203/fresho-tomato-local-1-kg/ | https://www.bbassets.com/media/uploads/p/l/10000203_19-fresho-tomato-local.jpg | in_stock | 10000203 | 110001 | 29.6 | 37 | 7.4 | INR |
| 3 | 3 | /pd/10000099/fresho-coriander-leaves-500-g/ | 10000099 | Coriander Leaves Without Roots | fresho! | 500 g | https://www.bigbasket.com/pd/10000099/fresho-coriander-leaves-500-g/ | https://www.bbassets.com/media/uploads/p/l/10000099_11-fresho-coriander-leaves.jpg | in_stock | 10000099 | 110001 | 114 | 232.5 | 118.5 | INR |
[
{
"position": 1,
"id": "/pd/10000149/fresho-onion-2-kg/",
"product_id": "10000149",
"name": "Onion",
"brand": "fresho!",
"pack": "2 kg",
"url": "https://www.bigbasket.com/pd/10000149/fresho-onion-2-kg/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000149_15-fresho-onion.jpg",
"availability": "in_stock",
"ean_code": "10000149",
"pincode": "110001",
"price": 144,
"regular_price": 191.25,
"discount": 47.25,
"currency": "INR"
},
{
"position": 2,
"id": "/pd/10000203/fresho-tomato-local-1-kg/",
"product_id": "10000203",
"name": "Local Tomato",
"brand": "fresho!",
"pack": "1 kg",
"url": "https://www.bigbasket.com/pd/10000203/fresho-tomato-local-1-kg/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000203_19-fresho-tomato-local.jpg",
"availability": "in_stock",
"ean_code": "10000203",
"pincode": "110001",
"price": 29.6,
"regular_price": 37,
"discount": 7.4,
"currency": "INR"
},
{
"position": 3,
"id": "/pd/10000099/fresho-coriander-leaves-500-g/",
"product_id": "10000099",
"name": "Coriander Leaves Without Roots",
"brand": "fresho!",
"pack": "500 g",
"url": "https://www.bigbasket.com/pd/10000099/fresho-coriander-leaves-500-g/",
"image": "https://www.bbassets.com/media/uploads/p/l/10000099_11-fresho-coriander-leaves.jpg",
"availability": "in_stock",
"ean_code": "10000099",
"pincode": "110001",
"price": 114,
"regular_price": 232.5,
"discount": 118.5,
"currency": "INR"
}
]position,id,product_id,name,brand,pack,url,image,availability,ean_code,pincode,price,regular_price,discount,currency 1,/pd/10000149/fresho-onion-2-kg/,10000149,Onion,fresho!,2 kg,https://www.bigbasket.com/pd/10000149/fresho-onion-2-kg/,https://www.bbassets.com/media/uploads/p/l/10000149_15-fresho-onion.jpg,in_stock,10000149,110001,144,191.25,47.25,INR 2,/pd/10000203/fresho-tomato-local-1-kg/,10000203,Local Tomato,fresho!,1 kg,https://www.bigbasket.com/pd/10000203/fresho-tomato-local-1-kg/,https://www.bbassets.com/media/uploads/p/l/10000203_19-fresho-tomato-local.jpg,in_stock,10000203,110001,29.6,37,7.4,INR 3,/pd/10000099/fresho-coriander-leaves-500-g/,10000099,Coriander Leaves Without Roots,fresho!,500 g,https://www.bigbasket.com/pd/10000099/fresho-coriander-leaves-500-g/,https://www.bbassets.com/media/uploads/p/l/10000099_11-fresho-coriander-leaves.jpg,in_stock,10000099,110001,114,232.5,118.5,INR
Recorded from our API · 3 items shown · 15 datapoints per itemGET /v1/bigbasket/search?path=fruits-vegetables&pincode=110001
15 datapoints
Identity
- idstring
- product_idstring
- namestring
- brandstring
Contact
- urlurl
Reputation
- imageurl
Price
- pricenumber
- regular_pricenumber
- discountnumber
- currencystring
Other
- positioninteger
- packstring
- availabilitystring
- ean_codestring
- pincodestring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/bigbasket/search?path=fruits-vegetables&pincode=110001" \
-H "X-API-Key: $API_KEY"BigBasket · 3 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/bigbasket/categories | pincode | pincodelocationcategories | 1 credit |
GET/v1/bigbasket/product | idpincode | productpincode | 1 credit |
GET/v1/bigbasket/search | pathpincode+1 optional | pathpincodelocationpage_countitems | 1 credit |
Overview
About the BigBasket API
What you can get
The BigBasket API returns BigBasket grocery data for a delivery pincode in India as JSON through 3 endpoints. Every endpoint takes a pincode, because prices and stock depend on it.
- Categories:
categoriestakes apincode. - Listings:
searchtakes a categorypathand apincode, withpage. - Products:
producttakes anidand apincode.
The recorded search for the fruits-vegetables path at pincode 110001 returns the resolved location (Connaught Place, New Delhi), page, page_count (33 in that recording), count, has_next_page and 48 items. Each item has position, id, product_id, name, brand, pack, url, image, availability, ean_code, price, regular_price, discount and currency (INR). The first item was a 2 kg pack of fresho! onions at 144 INR, down from 191.25.
How a call works
Start from the categories: GET /v1/bigbasket/categories?pincode=110001 with your key in the X-API-Key header returns each category's path (756 categories in that recording). Pass a path to search, for example GET /v1/bigbasket/search?path=fruits-vegetables&pincode=110001, and page with page while has_next_page is true. Each item's id (for example /pd/10000149/fresho-onion-2-kg/) goes to product, which adds the pack-size variants with their prices and inventory. Every successful call costs 1 credit; failed calls cost nothing.
More marketplaces APIs
Use cases
Track grocery prices and discounts in one Indian city by pincode
Use the BigBasket API to track grocery prices and discounts in one Indian city by pincodeCompare the same product's price across pincodes
Use the BigBasket API to compare the same product's price across pincodesList every pack size of a product with `variants` and their prices
Use the BigBasket API to list every pack size of a product with `variants` and their pricesWatch stock for a list of products with `availability`
Use the BigBasket API to watch stock for a list of products with `availability`FAQ
Questions
How much does the BigBasket API cost?
Each successful call costs one credit, whichever endpoint you call, and each listing page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.
Why does every call need a pincode?
BigBasket prices, stock and even the category list depend on the delivery area. Each response echoes the `pincode`, and listings return the resolved `location` with area, city and coordinates.
Is there a keyword search?
No. `search` lists a category by its `path`. Get the paths from `categories`.
Do I need a BigBasket account?
No. You call this BigBasket API with your Perceptlayer key in the `X-API-Key` header, with no BigBasket login.
Is this the official BigBasket API?
No. Perceptlayer is an independent service and is not affiliated with BigBasket. It returns BigBasket data as JSON with a Perceptlayer key, so there is no BigBasket developer account, app review or partner approval to get first. It only reads data: if BigBasket has an official API and you need to act on your own BigBasket account, such as posting, managing orders or reading private data, use that one.
Should I build a BigBasket scraper instead?
You can, but a BigBasket scraper is code you maintain: page changes break it, requests get blocked, and BigBasket's terms govern how you collect data. The BigBasket API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the BigBasket API with 100 free credits
No credit card. Failed calls are never billed.