---
title: "BigBasket API: grocery categories, listings as JSON"
description: "BigBasket API for grocery categories, listings and products by Indian pincode: prices, discounts, pack sizes and stock as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/bigbasket
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / BigBasket

1 credit per call 3 endpoints 15 datapoints 

# 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.

[Get a free API key](https://perceptlayer.com/signup) Run it below

BigBasket

GET /v1/bigbasket/search?path=fruits-vegetables&pincode=110001 

```
{
  "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
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | position integer | id string | product\_id string | name string | brand string | pack string | url url | image url | availability string | ean\_code string | pincode string | price number | regular\_price number | discount number | currency string |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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 |

Recorded from our API · 3 items shown · 15 datapoints per item GET /v1/bigbasket/search?path=fruits-vegetables&pincode=110001

15 datapoints

### Identity

-   id string
-   product\_id string
-   name string
-   brand string

### Contact

-   url url

### Reputation

-   image url

### Price

-   price number
-   regular\_price number
-   discount number
-   currency string

### Other

-   position integer
-   pack string
-   availability string
-   ean\_code string
-   pincode string

Playground

## Run this API

cURL shell 

```
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`](https://perceptlayer.com/apis/bigbasket/categories) | `pincode` | `pincode` `location` `categories` | 1 credit |
| [GET `/v1/bigbasket/product`](https://perceptlayer.com/apis/bigbasket/product) | `id` `pincode` | `product` `pincode` | 1 credit |
| [GET `/v1/bigbasket/search`](https://perceptlayer.com/apis/bigbasket/search) | `path` `pincode` +1 optional | `path` `pincode` `location` `page_count` `items` | 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:** `categories` takes a `pincode`.
-   **Listings:** `search` takes a category `path` and a `pincode`, with `page`.
-   **Products:** `product` takes an `id` and a `pincode`.

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.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

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 pincode` 

### Compare the same product's price across pincodes

`Use the BigBasket API to compare the same product's price across pincodes` 

### List 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 prices `` 

### Watch 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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
