# Flipkart Scraper - $0.40 / 1000 Products (`scrapeunblocker/flipkart-scraper`) Actor

Scrape Flipkart (India) products as JSON: keyword search with sort and price filters, or product pages by FSN or link. Price, MRP, discount, rating, F-Assured, stock; product pages add specifications, variants, seller and bank offers. No login. $0.40 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/flipkart-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 products

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

## Flipkart Scraper

Scrape **Flipkart (India) products** as clean, structured JSON. Search by keyword - with Flipkart's sort orders and a price range - or paste product ids and links. Every product comes with its **FSN (product id)**, **title and brand**, **price in rupees**, **MRP and discount**, **rating** with rating and review counts, the **F-Assured** badge, **sponsored** flag, **stock** and key specs. Product pages add the **best price with bank offers**, the **1-5 star rating split**, **highlights**, grouped **specifications**, **variants** (colour, storage, size) with their own ids, the **seller** and its rating, **bank and exchange offers**, delivery days, cash on delivery and the top reviews. No Flipkart account, no cookies, no proxies to set up.

### Features

- **Keyword search** in Flipkart's own order (`position`), with **sort** (relevance, popularity, price up or down, newest) and a **price filter** in rupees; up to 240 products per search across pages.
- **Product pages** by FSN (e.g. `MOBHQV9YCUG4ZQZK`), `itm` id or link: specifications, highlights, variants, seller, offers and reviews.
- **Prices you can compute with** - `price`, `originalPrice` (MRP), `discountPercent` and `bestPrice` as numbers, `currency` INR.
- **Stable ids** - `productId` (FSN), `itemId` and `listingId` to deduplicate and track products across runs.
- **Deduplicated inputs** - the same search or product given twice is fetched and billed once.

### Use cases

- **Price and discount tracking** in India - selling price, MRP and best offer price on a schedule.
- **Share of shelf** - which brands rank for a keyword, sponsored or organic.
- **Catalogue enrichment** - full specifications, highlights and variants for a list of FSNs.
- **Seller and offer monitoring** - who holds the listing and which bank offers apply.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searches` | array | - | Keywords to search (one search each). |
| `products` | array | - | FSNs, `itm` ids or flipkart.com product links. |
| `sort` | string | `relevance` | `relevance`, `popularity`, `price_asc`, `price_desc`, `newest`. |
| `minPrice` | integer | - | Searches: minimum price in rupees. |
| `maxPrice` | integer | - | Searches: maximum price in rupees. |
| `maxResultsPerSearch` | integer | `24` | Products to keep per search (1-240; 24 per Flipkart page). |
| `concurrency` | integer | `3` | Searches / products fetched at the same time (1-5). |

With no searches or products, the actor runs one example search ("iphone 15").

#### Example input

```json
{
  "searches": ["iphone 15", "running shoes"],
  "products": ["MOBHQV9YCUG4ZQZK", "https://www.flipkart.com/samsung-crystal-4k-neo-series-108-cm-43-inch-ultra-hd-4k-led-smart-tizen-tv-voice-search/p/itm24aed13a83b25?pid=TVSGEAGP9GXWCHCX"],
  "sort": "popularity",
  "maxResultsPerSearch": 48
}
```

### Output

One dataset item per product. From a search (`source: "search"`):

```json
{
  "productId": "MOBHQV9YZGYG64U7",
  "itemId": "itm387c20f1f5347",
  "listingId": "LSTMOBHQV9YZGYG64U7WLKZD8",
  "title": "Apple iPhone 15 (Blue, 128 GB)",
  "brand": "Apple",
  "subtitle": null,
  "price": 69999,
  "originalPrice": 74900,
  "discountPercent": 6,
  "currency": "INR",
  "rating": 4.6,
  "ratingCount": 250026,
  "reviewCount": 9892,
  "assured": true,
  "sponsored": false,
  "badge": "Bestseller",
  "availability": "IN_STOCK",
  "inStock": true,
  "keySpecs": [
    "128 GB ROM",
    "15.49 cm (6.1 inch) Super Retina XDR Display",
    "48MP + 12MP | 12MP Front Camera",
    "A16 Bionic Chip, 6 Core Processor Processor"
  ],
  "category": "Mobile",
  "image": "https://rukmini1.flixcart.com/image/832/832/xif0q/mobile/z/h/l/-original-imahqvadwhgxgx2n.jpeg?q=70",
  "url": "https://www.flipkart.com/apple-iphone-15-blue-128-gb/p/itm387c20f1f5347?pid=MOBHQV9YZGYG64U7&lid=LSTMOBHQV9YZGYG64U7WLKZD8",
  "position": 1,
  "source": "search",
  "query": "iphone 15"
}
```

From a product id or link (`source: "product"`), shortened:

```json
{
  "productId": "MOBH9JVHAKWSEHH6",
  "itemId": "itm20137f3cfd0e6",
  "title": "Apple iPhone 16e (White, 256 GB)",
  "brand": "APPLE",
  "price": 69900,
  "originalPrice": null,
  "bestPrice": 66405,
  "currency": "INR",
  "availability": "IN_STOCK",
  "inStock": true,
  "rating": 4.5,
  "ratingCount": 1452,
  "reviewCount": 110,
  "ratingBreakdown": {
    "1": 90,
    "2": 19,
    "3": 47,
    "4": 221,
    "5": 1075
  },
  "assured": true,
  "highlights": [
    "256 GB ROM",
    "A18 Chip, 6 Core | Hexa Core Processor"
  ],
  "specifications": [
    {
      "group": "Battery & Power Features",
      "name": "Dual Battery",
      "value": "No"
    },
    {
      "group": "Dimensions",
      "name": "Width",
      "value": "71.5 mm (7.15 cm)"
    }
  ],
  "images": [
    "https://rukmini1.flixcart.com/image/1500/1500/xif0q/mobile/u/r/r/-resized-original-imah9khh8wgzdafb.jpeg?q=70",
    "https://rukmini1.flixcart.com/image/1500/1500/xif0q/mobile/z/o/s/-original-imah9khhjhyhqxph.jpeg?q=70"
  ],
  "variants": [
    {
      "dimension": "Color",
      "value": "Black",
      "productId": "MOBH9JVHVW84WHJB",
      "price": null,
      "available": true,
      "stockNote": null,
      "image": "https://rukminim1.flixcart.com/image/832/832/xif0q/mobile/1/p/c/-original-imah9khhnfvstqka.jpeg?q=70",
      "url": "https://www.flipkart.com/apple-iphone-16e-black-256-gb/p/itm24bcdb43505bd?pid=MOBH9JVHVW84WHJB&lid=LSTMOBH9JVHVW84WHJBWAP270"
    },
    {
      "dimension": "Color",
      "value": "White",
      "productId": "MOBH9JVHAKWSEHH6",
      "price": null,
      "available": true,
      "stockNote": null,
      "image": "https://rukminim1.flixcart.com/image/832/832/xif0q/mobile/u/r/r/-resized-original-imah9khh8wgzdafb.jpeg?q=70",
      "url": "https://www.flipkart.com/apple-iphone-16e-white-256-gb/p/itm20137f3cfd0e6?pid=MOBH9JVHAKWSEHH6&lid=LSTMOBH9JVHAKWSEHH6TBRKYM"
    }
  ],
  "seller": {
    "name": "TrueComRetail",
    "rating": 4.6,
    "yearsOnPlatform": "10 years with Flipkart",
    "id": "f6d15b4a4f304426"
  },
  "offers": [
    {
      "type": "exchange",
      "provider": "Exchange offer",
      "instrument": "Change pincode to exchange item",
      "text": "Up to ₹46,750"
    },
    {
      "type": "bank",
      "provider": "Flipkart Axis",
      "instrument": "Credit Card • Cashback",
      "text": "₹3,495 off"
    }
  ],
  "deliveryDays": 3,
  "cashOnDelivery": true,
  "returnPolicy": "7_day_replacement_service_centre_action",
  "url": "https://www.flipkart.com/x/p/itm20137f3cfd0e6?pid=MOBH9JVHAKWSEHH6",
  "source": "product",
  "input": "MOBH9JVHAKWSEHH6"
}
```

Searches or products that return nothing or cannot be read go to the `ERRORS` record in the run's key-value store, with the reason. They are not billed.

### Pricing

**$0.40 per 1000 products** (pay per result) - one dataset item is one product, from a search or a product page. Products read from their own page also charge the `product-details` event, **$0.80 per 1000** (so a full product costs $1.20 per 1000 in total), as each one is a separate page read. Failed inputs are free.

### Notes

- Prices are what Flipkart shows a visitor without a delivery pincode; `bestPrice` is the price Flipkart quotes with its best bank offer.
- Not available: the full review list (the top reviews only), the list of other sellers, pincode-specific delivery dates.
- Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `searches` (type: `array`):

Keywords to search on Flipkart (one search each), e.g. 'iphone 15' or 'running shoes'. Each search returns up to 'Max products per search' products.

## `products` (type: `array`):

Flipkart products to read in full: an FSN (e.g. MOBHQV9YCUG4ZQZK), an itm id, or a flipkart.com product link. Each returns price, MRP, best offer price, stock, rating split, highlights, specifications, variants, seller, offers and top reviews.

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

Result order for the keyword searches.

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

Searches: only products at or above this price in rupees.

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

Searches: only products at or below this price in rupees.

## `maxResultsPerSearch` (type: `integer`):

How many products to keep from each search (1-240). Flipkart shows 24 products a page (40 in fashion grids); more products read more pages.

## `concurrency` (type: `integer`):

How many searches or products to fetch at the same time (1-5).

## Actor input object example

```json
{
  "searches": [
    "iphone 15"
  ],
  "sort": "relevance",
  "maxResultsPerSearch": 24,
  "concurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

One item per product with price, MRP, discount, rating and images (plus specifications, variants, seller and offers for product pages)

## `errors` (type: `string`):

Searches or products that returned nothing or could not be read, with the reason (not billed)

# 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 = {
    "searches": [
        "iphone 15"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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 = { "searches": ["iphone 15"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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 '{
  "searches": [
    "iphone 15"
  ]
}' |
apify call scrapeunblocker/flipkart-scraper --silent --output-dataset

```

## MCP server setup

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