# Bigbasket Product Details Scraper (`soft_alexist/bigbasket-product-details-scraper`) Actor

Scrape detailed product information from BigBasket.com including pricing, images, ratings, inventory, and 20+ data fields. Perfect for market research, price monitoring, and competitive analysis in the Indian e-commerce grocery sector.

- **URL**: https://apify.com/soft\_alexist/bigbasket-product-details-scraper.md
- **Developed by:** [Soft Alexist](https://apify.com/soft_alexist) (community)
- **Categories:** Developer tools, Automation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## BigBasket Product Details Scraper: Extract E-Commerce Data at Scale

***

### What Is BigBasket?

BigBasket is India's largest online grocery and retail marketplace, offering millions of SKUs across food, beverages, household essentials, and more. Each product listing contains rich structured data—images, pricing, ratings, inventory status, and detailed descriptions. Collecting this data manually is impractical; the **BigBasket Product Details Scraper** automates extraction, delivering clean, machine-readable records for analysis and integration.

***

### Overview

The **BigBasket Product Details Scraper** extracts comprehensive product information from individual BigBasket product pages, transforming unstructured web content into structured datasets. It is designed for:

- **E-commerce analysts** tracking product catalogs and pricing trends
- **Market researchers** studying consumer goods demand in India
- **Price monitoring services** building competitive intelligence tools
- **Business intelligence teams** aggregating multi-source product data
- **Developers** feeding product data into recommendation engines or comparison platforms

Key strengths include support for multiple URLs in a single run, robust error handling with `ignore_url_failures`, and extraction of 20+ essential product fields including images, pricing, ratings, and inventory status.

***

### Input Format

The scraper accepts a JSON configuration specifying target product URLs:

```json
{
    "urls": [
        "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak%2520Dust%2520Tea",
        "https://www.bigbasket.com/pd/40314899/tetley-black-tea-digest-chai-loose-leaf-flavoured-fennel-cardamom-black-pepper-200-g/",
        "https://www.bigbasket.com/pd/40131759/vahdam-imperial-himalayan-white-tea-bags-100-unblended-natural-30-g/"
    ],
    "max_items_per_url": 200,
    "ignore_url_failures": true
}
```

#### Configuration Parameters

| Parameter | Type | Description |
|---|---|---|
| `urls` | Array of strings | Direct links to BigBasket product detail pages. Each URL must lead to a specific product page (not search results or category pages). Copy URLs directly from the browser address bar. |
| `max_items_per_url` | Integer | Maximum records to extract per URL. Set to `200` for full product data extraction. |
| `ignore_url_failures` | Boolean | If `true`, the scraper continues running even if some URLs fail to load or time out. Useful for bulk runs where occasional failures are expected. |

> **Best practice:** Use exact product URLs from BigBasket. Search result links or filtered category pages may not work. If a product has multiple variants, each variant requires a separate URL.

***

### Output Format

**Sample output**

```json
{
  "base_img_url": "https://www.bbassets.com/media/uploads",
  "visibility": {
    "path_id": 10864,
    "fc_id": 1820,
    "sa_id": 19224,
    "supply_chain_ecs": null
  },
  "id": "40152364",
  "external_entity": null,
  "inv_info": {
    "skus": [
      {
        "id": 40152364,
        "qty": 1,
        "fc_id": 1820
      }
    ]
  },
  "desc": "Kadak Dust Tea",
  "pack_desc": "Box",
  "w": "250 g",
  "additional_info": {
    "key_highlights": [],
    "assurance_widget": [],
    "per_unit_pd_page": true,
    "per_unit_listing_page": true
  },
  "absolute_url": "/pd/40152364/vikram-kadak-dust-tea-250-g-box/",
  "usp": "",
  "cart_count": 0,
  "aplus_url": null,
  "images": [
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364_2-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364_2-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364_2-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364_2-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364_2-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-2_2-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-2_2-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-2_2-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-2_2-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-2_2-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-3_2-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-3_2-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-3_2-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-3_2-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-3_2-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-4_1-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-4_1-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-4_1-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-4_1-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-4_1-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-5_1-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-5_1-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-5_1-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-5_1-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-5_1-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-6_1-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-6_1-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-6_1-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-6_1-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-6_1-vikram-kadak-dust-tea.jpg"
    },
    {
      "s": "https://www.bbassets.com/media/uploads/p/s/40152364-7_1-vikram-kadak-dust-tea.jpg",
      "m": "https://www.bbassets.com/media/uploads/p/m/40152364-7_1-vikram-kadak-dust-tea.jpg",
      "l": "https://www.bbassets.com/media/uploads/p/l/40152364-7_1-vikram-kadak-dust-tea.jpg",
      "xl": "https://www.bbassets.com/media/uploads/p/xl/40152364-7_1-vikram-kadak-dust-tea.jpg",
      "xxl": "https://www.bbassets.com/media/uploads/p/xxl/40152364-7_1-vikram-kadak-dust-tea.jpg"
    }
  ],
  "variable_weight": null,
  "brand": {
    "name": "Vikram",
    "slug": "vikram",
    "url": "/pb/vikram/"
  },
  "category": {
    "tlc_name": "Beverages",
    "tlc_slug": "beverages",
    "llc_name": "Leaf & Dust Tea",
    "llc_slug": "type=pc&slug=leaf-dust-tea",
    "llc_id": 1672
  },
  "additional_attr": {
    "bby_lod": null,
    "info": [
      {
        "id": null,
        "type": "food_type",
        "sub_type": "veg",
        "position": null,
        "image_url": null,
        "label": "veg"
      }
    ]
  },
  "tabs": [
    {
      "content": "<style type=\"text/css\"> @import url(\"https://www.bbassets.com/static/froala_style_v2.min.css\"); </style>\n        <div style=\"font-family: 'ProximaNova-Regular';font-size:13px;line-height: 18px;color:8f8f8f;\">\n            Vikram Dust is the ideal tea for all those who prefer to jumpstart their day with a cup of kadak chai. Vikram Dust is a flavourful, effective tea, which brews a tempting shade of golden. It is the tea taste that resides in the heart of every true Indian. It is made from high-quality Assam Tea Leaves and is carefully manufactured to perfection.\n        </div>",
      "title": "About the Product"
    },
    {
      "content": "<style type=\"text/css\"> @import url(\"https://www.bbassets.com/static/froala_style_v2.min.css\"); </style>\n        <div style=\"font-family: 'ProximaNova-Regular';font-size:13px;line-height: 18px;color:8f8f8f;\">\n            Bring fresh water to boil and add the tea powder. Then, add milk and sugar as per taste.\n        </div>",
      "title": "How to Use",
      "hide": true
    },
    {
      "content": "<style type=\"text/css\"> @import url(\"https://www.bbassets.com/static/froala_style_v2.min.css\"); </style>\n        <div style=\"font-family: 'ProximaNova-Regular';font-size:13px;line-height: 18px;color:8f8f8f;\">\n            EAN Code: 40152364 <br> Country of origin: India <br> FSSAI Number: 10012022000982 <br> Manufactured & Marketed by: Vikram Tea Processor Private limited, Gut No. 11 & 12, At Post- Borkhedi, Near Malacha Ganapathy, SindhkhedRaja Road, Jalna, 431213, Maharashtra, India. <br> Best before 14-01-2027 <br> For Queries/Feedback/Complaints, Contact our Customer Care Executive at: Phone: 1860 123 1000 | Address: INNOVATIVE RETAIL CONCEPTS PRIVATE LIMITED No.18, 2nd & 3rd Floor, 80 Feet Main Road, Koramangala 4th Block, Bangalore - 560034. | Email: customerservice@bigbasket.com\n        </div>",
      "title": "Other Product Info",
      "hide": true
    }
  ],
  "tags": [
    {
      "header": "DIETARY PREFERENCE",
      "values": [
        {
          "display_name": "Normal",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=dietary-preference--normal",
          "url": "/ts/4621/dietary-preference/normal"
        }
      ]
    },
    {
      "header": "NON MILK",
      "values": [
        {
          "display_name": "Non Milk",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=non-milk--non-milk",
          "url": "/ts/19513/non-milk/non-milk"
        }
      ]
    },
    {
      "header": "COUNTRY OF ORIGIN",
      "values": [
        {
          "display_name": "India",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=country-of-origin--india",
          "url": "/ts/173/country-of-origin/india"
        }
      ]
    },
    {
      "header": "POWDER TYPE",
      "values": [
        {
          "display_name": "Dust",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=powder-type--dust",
          "url": "/ts/4600/powder-type/dust"
        }
      ]
    },
    {
      "header": "FOOD PREFERENCE",
      "values": [
        {
          "display_name": "Vegetarian",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=food-preference--vegetarian",
          "url": "/ts/787/food-preference/vegetarian"
        }
      ]
    },
    {
      "header": "INFUSION TYPE",
      "values": [
        {
          "display_name": "Tea Dust",
          "dest_type": "product_list",
          "dest_slug": "type=tag&slug=infusion-type--tea-dust",
          "url": "/ts/4628/infusion-type/tea-dust"
        }
      ]
    }
  ],
  "combo": null,
  "breadcrumb": [
    {
      "id": 351,
      "name": "beverages",
      "slug": "beverages",
      "type": "pc",
      "url": "/cl/beverages/"
    },
    {
      "id": 360,
      "name": "tea",
      "slug": "tea",
      "type": "pc",
      "url": "/pc/beverages/tea/"
    },
    {
      "id": 1672,
      "name": "leaf & dust tea",
      "slug": "leaf-dust-tea",
      "type": "pc",
      "url": "/pc/beverages/tea/leaf-dust-tea/"
    }
  ],
  "rating_info": {
    "avg_rating": "4.6",
    "rating_count": 12,
    "review_count": 1,
    "sku_id": 40152362
  },
  "availability": {
    "avail_status": "001",
    "short_eta": "10 mins",
    "medium_eta": null,
    "long_eta": null,
    "label": null,
    "display_mrp": true,
    "display_sp": true,
    "not_for_sale": false,
    "button": "Add",
    "show_express": false
  },
  "is_tobacco": false,
  "pricing": {
    "offer": {},
    "discount": {
      "mrp": "120",
      "d_text": null,
      "d_avail": null,
      "prim_price": {
        "sp": "120",
        "icon": null,
        "desc": null,
        "base_price": null,
        "base_unit": null
      },
      "sec_price": null,
      "offer_entry_text": null,
      "offer_available": null
    },
    "promo": null
  },
  "children": []
}
```

Each scraped product returns a rich record with 20+ fields covering all critical product information:

#### Core Identification

| Field | Meaning | Example |
|---|---|---|
| `ID` | Unique BigBasket product identifier (PD number) | `40152364` |
| `Absolute URL` | Full canonical product page URL | `https://www.bigbasket.com/pd/...` |
| `External Entity` | Marketplace seller or fulfillment partner | BigBasket Retail, Third-party seller name |
| `Visibility` | Product listing status (visible, hidden, delisted) | `active`, `archived` |

#### Product Information

| Field | Meaning |
|---|---|
| `Brand` | Manufacturer or brand name | Vikram, Tetley, Vahdam |
| `Description` | Full product description and features |
| `Pack Description` | Size, quantity, and packaging details | "250 g Box", "30 Tea Bags" |
| `Weight` | Standard packaging weight | "250 g", "200 g" |
| `Variable Weight` | Whether the product is sold by variable weight (e.g., loose produce) | Boolean |
| `USP` | Unique selling points highlighted | "100% Natural", "No Added Sugar" |
| `Additional Info` | Extra product details, certifications, ingredients | Allergens, organic status, country of origin |
| `Additional Attributes` | Custom attributes like flavor, type, dietary info | `{"Flavor": "Cardamom", "Type": "Dust Tea"}` |
| `Tags` | Search and categorization tags | "Organic", "Bestseller", "New", "Premium" |

#### Category & Navigation

| Field | Meaning |
|---|---|
| `Category` | Product category hierarchy | "Beverages > Tea > Black Tea" |
| `Breadcrumb` | Navigation path on BigBasket | Structured category breadcrumbs |

#### Pricing & Commerce

| Field | Meaning |
|---|---|
| `Pricing` | Current price, MRP, discounts, and offers | `{"price": 150, "mrp": 200, "discount": 25%}` |
| `Availability` | Stock status (in stock, out of stock, limited) | `in_stock`, `out_of_stock` |
| `Cart Count` | Number of units added to carts by users (popularity metric) | Approximate count or availability indicator |

#### Media & Visual Content

| Field | Meaning |
|---|---|
| `Base Image URL` | Primary product thumbnail or hero image | URL to the main product image |
| `Images` | Array of all product images | URLs to multiple angles, packaging shots |
| `A+ URL` | Enhanced product content or rich media URL | Link to detailed product page content |

#### Customer Feedback

| Field | Meaning |
|---|---|
| `Rating Info` | Customer ratings and review statistics | `{"avg_rating": 4.2, "review_count": 1250}` |

#### Inventory & Logistics

| Field | Meaning |
|---|---|
| `Inventory Info` | Stock levels, warehouse availability | Quantity on hand, delivery timeframes |

#### Relationships & Offers

| Field | Meaning |
|---|---|
| `Combo` | Bundle offers or combo deals | Linked products offered together |
| `Children` | Related variants or sub-products | Same product in different sizes/flavors |

#### Special Flags

| Field | Meaning |
|---|---|
| `Is Tobacco` | Whether the product is tobacco or restricted item | Boolean (affects delivery and age verification) |

***

### How to Use

1. **Gather product URLs** — Navigate to BigBasket.com, search for products of interest, and open individual product detail pages. Copy the full URL from your browser.

2. **Prepare the input** — Paste URLs into the `urls` array. You can add one URL or batch multiple products (e.g., all tea variants, all brands in a category).

3. **Configure settings** — Set `ignore_url_failures: true` to skip broken or unavailable links without stopping the run. Set `max_items_per_url: 200` for complete extraction.

4. **Start the scraper** — Execute the actor and monitor progress in the logs.

5. **Export results** — Download data as JSON, CSV, or Excel. Import into spreadsheets, databases, or BI tools.

**Troubleshooting:**

- **No data returned:** Verify the URL is a product detail page, not a search results or category page.
- **Partial data:** Some fields may be empty if BigBasket does not populate them for that product (e.g., ratings for new items).
- **Price changes:** BigBasket prices update frequently; re-scrape for latest pricing.

***

### Real-World Use Cases

- **Price monitoring:** Track competitor pricing on the same products over time
- **Market research:** Analyze product availability, ratings, and demand signals across categories
- **Inventory analysis:** Monitor stock levels and predict demand for supply chain optimization
- **Comparative analysis:** Build datasets comparing prices, ratings, and attributes across brands
- **Data enrichment:** Augment internal catalogs with BigBasket ratings and customer reviews
- **Recommendation engines:** Feed product metadata and ratings into ML models

The BigBasket Product Details Scraper eliminates manual data entry, enabling real-time insights into one of India's largest e-commerce marketplaces.

***

### Conclusion

The **BigBasket Product Details Scraper** is an essential tool for anyone analyzing India's e-commerce grocery market. With 20+ data fields covering pricing, inventory, ratings, and product attributes, it transforms product discovery into actionable data. Whether you're conducting market research, monitoring competitors, or building data-driven applications, this scraper delivers the detailed, structured information you need.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Specific product urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## Actor input object example

```json
{
  "urls": [
    "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak%2520Dust%2520Tea",
    "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak+Dust+Tea",
    "https://www.bigbasket.com/pd/40314899/tetley-black-tea-digest-chai-loose-leaf-flavoured-fennel-cardamom-black-pepper-200-g/?nc=l2category&t_pos_sec=1&t_pos_item=6&t_s=Digest+Chai+Flavoured+Black+Tea+-+With+Prebiotic+Fibre",
    "https://www.bigbasket.com/pd/40131759/vahdam-imperial-himalayan-white-tea-bags-100-unblended-natural-30-g/?nc=l2category&t_pos_sec=1&t_pos_item=8&t_s=Imperial+Himalayan+Long+Leaf+White+Tea",
    "https://www.bigbasket.com/pd/40219419/chaizup-instant-premix-karak-cardamon-tea-1-kg/?nc=l2category&t_pos_sec=1&t_pos_item=9&t_s=Instant+Premix+Karak+Cardamon+Tea"
  ],
  "ignore_url_failures": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak%2520Dust%2520Tea",
        "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak+Dust+Tea",
        "https://www.bigbasket.com/pd/40314899/tetley-black-tea-digest-chai-loose-leaf-flavoured-fennel-cardamom-black-pepper-200-g/?nc=l2category&t_pos_sec=1&t_pos_item=6&t_s=Digest+Chai+Flavoured+Black+Tea+-+With+Prebiotic+Fibre",
        "https://www.bigbasket.com/pd/40131759/vahdam-imperial-himalayan-white-tea-bags-100-unblended-natural-30-g/?nc=l2category&t_pos_sec=1&t_pos_item=8&t_s=Imperial+Himalayan+Long+Leaf+White+Tea",
        "https://www.bigbasket.com/pd/40219419/chaizup-instant-premix-karak-cardamon-tea-1-kg/?nc=l2category&t_pos_sec=1&t_pos_item=9&t_s=Instant+Premix+Karak+Cardamon+Tea"
    ],
    "ignore_url_failures": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("soft_alexist/bigbasket-product-details-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [
        "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak%2520Dust%2520Tea",
        "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak+Dust+Tea",
        "https://www.bigbasket.com/pd/40314899/tetley-black-tea-digest-chai-loose-leaf-flavoured-fennel-cardamom-black-pepper-200-g/?nc=l2category&t_pos_sec=1&t_pos_item=6&t_s=Digest+Chai+Flavoured+Black+Tea+-+With+Prebiotic+Fibre",
        "https://www.bigbasket.com/pd/40131759/vahdam-imperial-himalayan-white-tea-bags-100-unblended-natural-30-g/?nc=l2category&t_pos_sec=1&t_pos_item=8&t_s=Imperial+Himalayan+Long+Leaf+White+Tea",
        "https://www.bigbasket.com/pd/40219419/chaizup-instant-premix-karak-cardamon-tea-1-kg/?nc=l2category&t_pos_sec=1&t_pos_item=9&t_s=Instant+Premix+Karak+Cardamon+Tea",
    ],
    "ignore_url_failures": True,
}

# Run the Actor and wait for it to finish
run = client.actor("soft_alexist/bigbasket-product-details-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak%2520Dust%2520Tea",
    "https://www.bigbasket.com/pd/40152364/vikram-kadak-dust-tea-250-g-box/?nc=l2category&t_pos_sec=1&t_pos_item=5&t_s=Kadak+Dust+Tea",
    "https://www.bigbasket.com/pd/40314899/tetley-black-tea-digest-chai-loose-leaf-flavoured-fennel-cardamom-black-pepper-200-g/?nc=l2category&t_pos_sec=1&t_pos_item=6&t_s=Digest+Chai+Flavoured+Black+Tea+-+With+Prebiotic+Fibre",
    "https://www.bigbasket.com/pd/40131759/vahdam-imperial-himalayan-white-tea-bags-100-unblended-natural-30-g/?nc=l2category&t_pos_sec=1&t_pos_item=8&t_s=Imperial+Himalayan+Long+Leaf+White+Tea",
    "https://www.bigbasket.com/pd/40219419/chaizup-instant-premix-karak-cardamon-tea-1-kg/?nc=l2category&t_pos_sec=1&t_pos_item=9&t_s=Instant+Premix+Karak+Cardamon+Tea"
  ],
  "ignore_url_failures": true
}' |
apify call soft_alexist/bigbasket-product-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,soft_alexist/bigbasket-product-details-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lev7ckBwOnfL2SOYH/builds/BBQlx1lbdQRVxPisO/openapi.json
