# Flipkart Scraper: Products, Prices, Stock & Reviews (`smart_albatross/flipkart-scraper`) Actor

Flipkart scraper & API: every product from any search, category or brand, not just the first 1,000. Price, MRP, discount, 1–5★ ratings, "Only N left" stock, badges; add specs, variants, seller, offers, delivery by pincode and reviews. Track Flipkart prices daily.

- **URL**: https://apify.com/smart_albatross/flipkart-scraper.md
- **Developed by:** [Dev](https://apify.com/smart_albatross) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 93.8% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Flipkart Scraper do?

**Flipkart Scraper** extracts product data from [Flipkart.com](https://www.flipkart.com), India's largest online marketplace. Give it a search keyword, a brand, any Flipkart category or filtered URL, or a list of product IDs. You get clean, spreadsheet-ready rows: **price, MRP, discount, rating with the 1–5★ breakdown, stock signals, badges, specifications, seller, delivery by pincode, offers and reviews**.

It works like an unofficial **Flipkart API**: no login, no browser, no cookies to manage. Export to JSON, CSV or Excel, or straight into your app.

**Why it's different:** Flipkart shows at most ~1,000 results per search, and its own paging repeats and skips products after the first 120. This actor works around both, so you can collect the **whole catalogue**: we measured **8,092 products for Flipkart's 8,007-product Mobiles category** in 9 minutes. It also reads product pages for full specs, seller, offers and **delivery days per pincode**. Reviews are collected from all of Flipkart's review lists, not just the first one.

### Why scrape Flipkart?

- 📉 **Flipkart price tracker:** follow prices, MRP, discounts and "Lowest Price Live" / sale badges for your products or a whole category, every day.
- 📦 **Stock monitoring:** in-stock / out-of-stock / coming-soon status, **"Only N left" stock counts** and max order quantity.
- 🏷️ **Catalogue & assortment analysis:** every product of a brand or category, with full specifications, variants and ratings.
- 🏪 **Seller & fulfilment intelligence:** seller name, rating and tenure, F-Assured, Flipkart-fulfilled, COD, no-cost EMI, return policy.
- 🚚 **Delivery coverage:** delivery days, date and serviceability for up to 3 pincodes per product.
- 💬 **Reviews & sentiment:** customer reviews with photos, variant bought, certified-buyer flag and per-aspect ratings (Camera, Battery, Display…).
- 🤖 **AI & data science:** clean, typed e-commerce data for models, dashboards and agents.

### What data can you extract from Flipkart?

| Group | Fields |
|---|---|
| Product | product ID, URL, title, brand, category path (super → category → sub → vertical), key specs, images |
| Price | price, MRP, discount ₹ and %, **exchange price**, selling vs final price, **offers** (bank / card cashback, no-cost EMI, coupons) |
| Ratings | average rating, rating count, review count, **1–5★ histogram**, **aspect ratings** (e.g. Camera 3.7, Battery 4.2) |
| Stock | in stock, availability (in stock / out of stock / coming soon / unavailable), **"Only N left" count**, max order quantity |
| Merchandising | badges ("Top Discount of the Sale", "Lowest Price Live", "Bank Offer"…), sponsored flag, search position |
| Product page (add-on) | description, highlights, **full specifications by section**, breadcrumbs, warranty, **variants with their own IDs**, selected variant |
| Seller (add-on) | seller name, seller rating, years on Flipkart, F-Assured, Flipkart-fulfilled, GST invoice, return policy, cash on delivery, no-cost EMI |
| Delivery (add-on) | per pincode: serviceable, delivery days, delivery date |
| Reviews (add-on) | rating, title, text, certified buyer, helpful / not-helpful votes, photos, variant bought, city/state, date |

### How to scrape Flipkart

1. Click **Try for free**.
2. Enter what you want: **Search keywords** (`mobiles`), **Brands** (`Samsung`), **Flipkart URLs** (any category, search, brand or product link) or **Product IDs** (`MOBHPP59BYSJ98M8`).
3. Set **Max products per search**: `100` for a quick look, or `0` for **everything**.
4. Optional: add filters (price, rating, discount, F-Assured, in-stock only, sort), turn on **Add product page details**, **Delivery pincodes**, **Add all variants** or **Attach reviews**.
5. Click **Start** and download your data as JSON, CSV, Excel or HTML, or fetch it through the API.

### How many products can I scrape from Flipkart?

**All of them.** Flipkart serves at most ~1,000 rows per search, repeats and skips products in its own ordering, and its price filter assigns products to price ranges inconsistently. So a single way of splitting a listing still misses a few percent. This actor:

- reads listings of up to 120 products in one pass (complete), and up to ~1,000 as the union of all of Flipkart's sort orders;
- splits bigger listings **by brand and by price at the same time** and merges the results, so products missed by one split are caught by the other;
- de-duplicates everything and reports **products collected vs Flipkart's total** for every input in the run summary.

| Measured run (Apify cloud, default proxy) | Result |
|---|---|
| **Mobiles** category (`/mobiles/pr?sid=tyy,4io`) | **8,092 products** (Flipkart total 8,007) in 9.2 min, 0 failed requests |
| **Samsung** mobiles brand page | 943 products in 2.2 min (Flipkart shows 951 from India) |

When you pick **Price: low to high** or **high to low** with a limit, you get the N cheapest (or dearest) products in price order. We measured the 150 cheapest mobiles, ₹1 to ₹720.

### How much does it cost to scrape Flipkart?

You pay only for results ("pay per event"):

| What | Price |
|---|---|
| Product (listing data) | **$1.00 per 1,000 products** |
| Product page details add-on (specs, seller, offers, delivery by pincode, variants, aspect ratings) | **+$1.50 per 1,000 products** |
| Reviews add-on | **$1.00 per 1,000 reviews** |

Examples: 1,000 products from a search cost **$1.00**. The same 1,000 products with full product-page details cost **$2.50**. With 20 reviews each, add $20. Set **Maximum cost per run** and the actor stops cleanly at your limit, charging only for what it delivers. Apify's free plan includes monthly credits to try it.

### Input example

```json
{
    "searchQueries": ["laptop"],
    "brands": ["Samsung"],
    "startUrls": [{ "url": "https://www.flipkart.com/mobiles/pr?sid=tyy,4io" }],
    "productIds": ["MOBHPP59BYSJ98M8"],
    "maxItemsPerSource": 500,
    "sort": "price_asc",
    "minRating": "4",
    "includeDetails": true,
    "pincodes": ["110001", "560034"],
    "includeReviews": false
}
```

### Output example

A real record (trimmed) with the product page add-on on:

```json
{
    "productId": "COMHQ6ZJ2CUUHN3D",
    "url": "https://www.flipkart.com/motorola-motobook-60-…/p/itm2928b4d532ca8?pid=COMHQ6ZJ2CUUHN3D",
    "title": "MOTOROLA Motobook 60 Full Metal WUXGA OLED (i5 14th Gen) Intel Core 5 210H - (16 GB/512 GB SSD/Windows 11 Home) 14IRH10R Thin and Light Laptop",
    "brand": "MOTOROLA",
    "category": { "superCategory": "LaptopAndDesktop", "category": "Laptops", "subCategory": "Laptop", "vertical": "Laptop" },
    "price": 61990,
    "mrp": 135000,
    "discountPercent": 54,
    "rating": 4.4,
    "ratingCount": 4673,
    "reviewCount": 578,
    "ratingHistogram": { "1": 266, "2": 64, "3": 245, "4": 1214, "5": 2884 },
    "inStock": true,
    "availability": "in_stock",
    "keySpecs": ["Intel Core 5 Processor", "16 GB DDR5 RAM", "64 bit Windows 11 Operating System"],
    "warranty": "1 Year Onsite Service",
    "badges": ["Upto ₹42,100 Off on Exchange", "Bank Offer"],
    "searchPosition": 5,
    "sellerName": "SVPeripherals",
    "sellerRating": 4.7,
    "sellerSince": "3 years",
    "fAssured": true,
    "fulfilledByFlipkart": true,
    "returnPolicy": "7 day replacement service centre action",
    "cashOnDelivery": true,
    "noCostEmi": true,
    "exchangePrice": 57940,
    "offers": ["Credit Card • No Cost EMI + ₹2,250 off", "₹3,050 cashback + ₹1,000 instant discount", "Unlock Storage Devices coupon • 10% off"],
    "delivery": [{ "pincode": 110001, "serviceable": true, "days": 6, "date": "2026-11-16" }],
    "aspectRatings": { "Performance": 4.3, "Battery": 3.7, "Design": 4.6, "Display": 4.7, "Value for Money": 4.3 },
    "specifications": {
        "Processor and Memory Features": { "Processor Brand": "Intel", "Processor Name": "Core 5", "RAM": "16 GB", "RAM Type": "DDR5", "SSD Capacity": "512 GB" }
    },
    "variants": [
        { "attribute": "variant", "value": "512 GB, 14 inch", "productId": "COMHQ6ZJ2CUUHN3D", "selected": true }
    ]
}
```

In the Console, the **Products** and **Product page details** tabs show ready-made table views, and the **Run summary** shows collected vs Flipkart's total for each input.

### Track Flipkart prices and stock automatically

1. Save your input as a **Task** (your product IDs, a brand, or a category).
2. Add a **Schedule** (daily, hourly…).
3. Compare runs by `productId`: price and MRP changes, new or removed products, `inStock` / `availability` changes, and `stockLeft` going down.

### Use Flipkart Scraper through the API

Run it from your code with the [Apify API](https://docs.apify.com/api/v2) or the official clients.

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("smart_albatross/flipkart-scraper").call(run_input={
    "searchQueries": ["bluetooth speaker"],
    "maxItemsPerSource": 200,
    "includeDetails": True,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"], item.get("sellerName"))
```

**Node.js**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('smart_albatross/flipkart-scraper').call({ brands: ['Samsung'], maxItemsPerSource: 0 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also plugs into **Make, Zapier, n8n, Google Sheets, Slack, Airbyte and webhooks**, and AI agents can call it through the **Apify MCP server**.

### FAQ

#### Is there an official Flipkart API?

Flipkart's APIs are for registered sellers (to manage their own listings and orders) and approved affiliates. There is no open API for product and price data, so this actor gives you that data in a stable, documented format instead.

#### Can I scrape Flipkart without logging in?

Yes. It reads only public pages and needs no Flipkart account.

#### Do I need proxies?

No setup needed. It uses Apify Proxy by default and automatically switches a request to Indian residential IPs if Flipkart blocks it.

#### Can I get stock levels from Flipkart?

Every product carries `inStock` and `availability`. When Flipkart shows "Only N left", you get the number in `stockLeft`, plus `maxOrderQuantity`. Flipkart doesn't publish exact stock beyond that.

#### Can I check delivery to a pincode?

Yes. Turn on **Add product page details** and add up to 3 **Delivery pincodes**. You get serviceability, delivery days and the delivery date for each.

#### Can I scrape Flipkart reviews?

Yes. Turn on **Attach reviews** for up to 1,000 per product. For bigger review pulls, star filters and date-based runs, use **[Flipkart Reviews Scraper](https://apify.com/smart_albatross/flipkart-reviews-scraper)**.

#### Why is `searchPosition` empty for some products?

For small requests, or when you choose a sort, results follow Flipkart's ranking and carry a position. Full-catalogue pulls are collected in parallel slices, so there is no single ranking to report.

#### Why does the product count differ from Flipkart's total?

Flipkart's total counts promoted products twice and can differ by visitor location. The run summary shows both numbers so you can judge coverage.

#### Why are some colour variants' `value` empty?

Flipkart's colour swatches carry no label, only a link to the other colour. You still get each variant's product ID and URL, and the selected variant's colour is in `selectedVariant`.

#### Is it legal to scrape Flipkart?

This actor collects only publicly available product information and no personal data. You are responsible for using the data in line with Flipkart's terms and the laws that apply to you, such as India's DPDP Act and copyright rules. Ask a lawyer if you're unsure.

### Related actors

- **[Flipkart Reviews Scraper](https://apify.com/smart_albatross/flipkart-reviews-scraper)**: far more reviews per product than single-list scrapers, with star filters, photos and product context.
- **[Myntra Scraper](https://apify.com/smart_albatross/myntra-scraper)** and **[Myntra Reviews Scraper](https://apify.com/smart_albatross/myntra-reviews-scraper)**: the same for India's largest fashion marketplace.

Questions or a field you need? Open an issue on the **Issues** tab and we'll respond.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords exactly as you would type them in Flipkart's search bar, e.g. "mobiles", "men tshirt" or "pressure cooker". Each keyword is scraped separately.

## `startUrls` (type: `array`):

Any Flipkart search, category, brand or filtered listing URL (filters and sort in the URL are kept), or product page URLs. Example: https://www.flipkart.com/mobiles/pr?sid=tyy,4io

## `brands` (type: `array`):

Brand names, e.g. "Samsung" or "Roadster". Searches the brand name and applies Flipkart's brand filter, so you get that brand's products only.

## `productIds` (type: `array`):

Flipkart product IDs (the pid in a product URL, e.g. MOBHPP59BYSJ98M8). Useful for tracking a fixed list of products.

## `maxItemsPerSource` (type: `integer`):

How many products to collect for each keyword, listing URL or brand. Set 0 for ALL products: big listings are split automatically so you get the whole catalogue, not just the first ~1,000 results Flipkart shows.

## `maxItems` (type: `integer`):

Optional overall cap across all inputs. 0 = no overall cap.

## `sort` (type: `string`):

Flipkart sort order. With price sorting the first N results are exactly the N cheapest (or dearest). Leave empty to use the URL's sort or Flipkart's relevance. Note: Flipkart's own popularity/newest order repeats and skips some products after the first 120.

## `minPrice` (type: `integer`):

Only products priced at or above this amount (in rupees).

## `maxPrice` (type: `integer`):

Only products priced at or below this amount (in rupees).

## `minRating` (type: `string`):

Only products rated at least this many stars (Flipkart's rating filter).

## `minDiscount` (type: `string`):

Only products discounted by at least this much (Flipkart's discount filter).

## `fAssuredOnly` (type: `boolean`):

Only products with Flipkart's F-Assured badge.

## `inStockOnly` (type: `boolean`):

Exclude out-of-stock products.

## `includeDetails` (type: `boolean`):

Open each product page and add description, highlights, full specifications, variants, seller name/rating/tenure, F-Assured, Flipkart-fulfilled, return policy, cash on delivery, no-cost EMI, exchange price, offer labels, aspect ratings (e.g. Camera 3.7) and delivery by pincode. Charged as an extra product-details event per product.

## `pincodes` (type: `array`):

Up to 3 Indian pincodes (6 digits) to check delivery days, delivery date and serviceability for. Used only with product page details.

## `includeVariants` (type: `boolean`):

Also scrape every colour/size/storage variant listed on each product page as its own product (each is a normal product result).

## `includeReviews` (type: `boolean`):

Attach customer reviews to each product (charged per review). Reviews are collected from all of Flipkart's review lists (sort orders and topics like Camera or Battery), so you get far more than the first pages.

## `maxReviewsPerProduct` (type: `integer`):

How many reviews to attach to each product (1–1,000).

## `proxyConfiguration` (type: `object`):

Apify Proxy is used by default (datacenter, with automatic fallback to Indian residential IPs if a request is blocked). Supply your own proxies to override.

## `maxConcurrency` (type: `integer`):

Maximum parallel requests. Higher is faster; lower is gentler.

## Actor input object example

```json
{
  "searchQueries": [
    "pressure cooker"
  ],
  "maxItemsPerSource": 100,
  "maxItems": 0,
  "fAssuredOnly": false,
  "inStockOnly": false,
  "includeDetails": false,
  "includeVariants": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "pressure cooker"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("smart_albatross/flipkart-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 = {
    "searchQueries": ["pressure cooker"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("smart_albatross/flipkart-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 '{
  "searchQueries": [
    "pressure cooker"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call smart_albatross/flipkart-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smart_albatross/flipkart-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/ZKJ8exTS99sdP4RBJ/builds/Z7PktNBxOgpoVH0R8/openapi.json
