# Flipkart Scraper - India Products, Prices & Ratings (`haketa/flipkart-scraper`) Actor

Scrape products from Flipkart, India's #1 online marketplace: title, brand, price, MRP, discount %, rating, review count, key specifications, category and image. Search by keyword. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/haketa/flipkart-scraper.md
- **Developed by:** [Haketa](https://apify.com/haketa) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

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

## Flipkart Scraper 🛒🇮🇳

**Extract product data from Flipkart — India's #1 online marketplace — into clean, structured data.** Search by keyword and export thousands of products with **price, MRP, discount %, rating, review count, key specifications, brand, category and image**. Built for price monitoring, competitor analysis, catalog building and e-commerce market research.

[![Actor](https://img.shields.io/badge/Apify-Actor-00b04f?style=flat-square\&logo=apify)](https://apify.com)
[![Market](https://img.shields.io/badge/Market-India%20🇮🇳-ff9933?style=flat-square)](https://apify.com)
[![Discount](https://img.shields.io/badge/Price%20%26%20Discount-Tracked-e4002b?style=flat-square)](https://apify.com)
[![Specs](https://img.shields.io/badge/Key%20specs-Included-brightgreen?style=flat-square)](https://apify.com)
[![Ratings](https://img.shields.io/badge/Ratings%20%26%20Reviews-Included-success?style=flat-square)](https://apify.com)
[![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-2b7489?style=flat-square)](https://apify.com)
[![Pagination](https://img.shields.io/badge/Pagination-Automatic-blue?style=flat-square)](https://apify.com)
[![No code](https://img.shields.io/badge/No--code-Friendly-9cf?style=flat-square)](https://apify.com)
[![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen?style=flat-square)](https://apify.com)

***

### 🎯 What does Flipkart Scraper do?

Flipkart is India's largest online marketplace, with hundreds of millions of products across electronics, fashion, home and more. This actor turns any Flipkart search into a structured dataset you can download or feed into your own tools.

Give it a **search query** (or a **Flipkart search URL**) and it will:

- 🔎 Search Flipkart by keyword and **read every product**
- 📄 Automatically **paginate** through results until it reaches your limit
- 💰 Capture **price, MRP and discount %** for pricing intelligence
- ⭐ Include the **rating, number of ratings and reviews**
- 🧩 Return the **key specifications** for each product
- 🏷️ Add **brand, category and image**
- 🧹 Deliver **clean, deduplicated, structured records** — no HTML, no clutter
- ⬇️ Export to **JSON, CSV, Excel, HTML or via API** in one click

No login, no browser extensions, no manual copy-paste.

***

### ✨ Key features

| Feature | Description |
| --- | --- |
| **Keyword search** | Search `laptop`, `smartphone`, `shoes`, or any free-text query. |
| **Full pricing** | Selling price, MRP and computed discount %. |
| **Ratings & reviews** | Average rating, number of ratings and review count. |
| **Key specifications** | The headline specs Flipkart lists for each product. |
| **Rich attributes** | Brand, category, sub-category and image. |
| **URL input** | Paste any Flipkart search URL — filters and sorting are respected. |
| **Automatic pagination** | Walks through result pages up to your `maxItems`. |
| **Deduplicated output** | Each product appears once, identified by its unique ID. |
| **Clean exports** | JSON, CSV, Excel, HTML table, RSS or JSON API. |

***

### 📥 Input

The actor accepts a simple, no-code input form.

#### Option A — by query (easiest)

```json
{
    "searchQueries": ["laptop", "smartphone"],
    "maxItems": 300
}
```

#### Option B — by URL (with filters / sorting)

```json
{
    "startUrls": [
        { "url": "https://www.flipkart.com/search?q=headphones&sort=popularity" }
    ],
    "maxItems": 500
}
```

#### Input parameters

| Field | Type | Description |
| --- | --- | --- |
| `searchQueries` | array | Keywords to search on Flipkart. |
| `startUrls` | array | Flipkart search URLs (filters/sorting respected). |
| `maxItems` | integer | Maximum number of products to collect. Default `100`. |
| `proxyConfiguration` | object | Proxy settings. Apify Proxy is recommended and on by default. |

***

### 📤 Output

Each product is returned as a clean JSON object:

```json
{
    "id": "COMH8Z2QADYUVZN8",
    "title": "ASUS Expertbook P1 (i3 13th Gen) - (8 GB/512 GB SSD/Windows 11 Home)…",
    "subtitle": "15.6 inch, Silver, 1.75 kg",
    "url": "https://www.flipkart.com/asus-expertbook-p1…/p/itm5b59a30b4c016?pid=COMH8Z2QADYUVZN8",
    "brand": "ASUS",
    "price": 50990,
    "mrp": 69990,
    "discountPercent": 27,
    "discountAmount": 19000,
    "currency": "INR",
    "rating": 4.3,
    "ratingCount": 6817,
    "reviewCount": 666,
    "keySpecs": ["Intel Core i3", "8 GB RAM", "512 GB SSD", "Windows 11 Home", "15.6 inch Display"],
    "availability": "IN_STOCK",
    "category": "Laptops",
    "subCategory": "Laptop",
    "image": "https://rukmini1.flixcart.com/image/416/416/…/-original-image.jpeg?q=70"
}
```

#### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Unique Flipkart product ID. |
| `title` / `subtitle` | string | Product title and short descriptor. |
| `url` | string | Direct link to the product. |
| `brand` | string | Brand. |
| `price` | number | Selling price (INR). |
| `mrp` | number | Maximum retail price. |
| `discountPercent` / `discountAmount` | number | Discount percentage and amount. |
| `currency` | string | Currency (INR). |
| `rating` / `ratingCount` / `reviewCount` | number | Rating and volumes. |
| `keySpecs` | array | Key specifications. |
| `availability` | string | Stock status (e.g. IN\_STOCK). |
| `category` / `subCategory` | string | Category taxonomy. |
| `image` | string | Product image URL. |

You can download the dataset as **JSON, CSV, Excel, HTML, RSS or XML**, or fetch it programmatically through the Apify API.

***

### 🚀 How to use Flipkart Scraper (step by step)

1. Click **Try for free** / **Start**.
2. Type one or more **search queries** — or paste a **Flipkart search URL**.
3. Set **maxItems** to how many products you want.
4. Click **Save & Start**.
5. When the run finishes, open the **Dataset** tab and **Export** to your preferred format — or grab it via API.

That's it. No code required.

***

### 💡 Use cases

- **Price & discount monitoring** — Track prices, MRPs and discount % across brands and categories over time.
- **Competitor & assortment analysis** — See which brands, models and price points dominate a category.
- **Catalog building** — Power price-comparison sites, apps and dashboards with fresh Indian e-commerce data.
- **Specs & product research** — Use key specs to compare products at scale.
- **Rating & review insights** — Rank products by rating and review volume to find bestsellers.
- **Market research** — Study Indian e-commerce pricing and demand at scale.

***

### 🏷️ Why the pricing & specs data matter

Most feeds give you a name and a price. This actor returns the **full commercial picture**: selling price, MRP and **discount %**, the **rating and review counts**, plus the **key specifications** — everything you need for pricing intelligence and product comparison, not just a product list.

***

### ⏱️ How many products can I collect?

As many as the search returns — Flipkart categories contain vast numbers of products. Set `maxItems` to control the volume, and run multiple queries for broad coverage. Schedule regular runs to keep prices and discounts current.

***

### 🔌 Integrations & automation

Because this runs on Apify, you can:

- 📅 **Schedule** runs (daily, weekly) to keep a live price & discount feed.
- 🔗 Push results to **Google Sheets, Airtable, Slack, Zapier, Make, or any webhook**.
- 🧩 Call it from your backend with the **Apify API** and SDKs (JavaScript / Python).
- 🔔 Use **webhooks** to trigger downstream workflows the moment a run completes.

#### Call via API (example)

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
        "searchQueries": ["smartphone"],
        "maxItems": 300
      }'
```

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('YOUR_ACTOR_ID').call({
    searchQueries: ['laptop'],
    maxItems: 500,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

***

### ❓ FAQ

**Do I need a Flipkart account or API key?**
No. Just provide a search query or a Flipkart search URL.

**Does it include discounts?**
Yes — selling price, MRP and a discount % (plus the discount amount).

**Does it include ratings and reviews?**
Yes — average rating, number of ratings and review count.

**Does it include specifications?**
Yes — the key specs Flipkart lists for each product are included in `keySpecs`.

**Can I use filters or sorting?**
Yes. Apply them on Flipkart, then paste the resulting search URL into `startUrls`.

**Are results deduplicated?**
Yes. Each product is uniquely identified and appears once per run.

**What formats can I export?**
JSON, CSV, Excel, HTML, RSS and XML — via the dashboard or the API.

**How do I keep prices fresh?**
Schedule the actor to run on the interval you need; each run returns the current live prices and discounts.

***

### 📌 Tips for best results

- **Start narrow, then widen.** Test one query with a small `maxItems`, confirm the fields, then scale up.
- **Paste URLs for filtered pulls.** Apply category, brand or price filters on Flipkart and copy the URL.
- **Compare on discount %.** Segment by `discountPercent` to find the best deals in a category.
- **Schedule for freshness.** Prices and discounts change often — a scheduled run keeps your data current.

***

### ⚖️ Legal & responsible use

This actor is intended for lawful data collection such as price monitoring, market research and analytics. You are responsible for how you use the collected data. Only collect publicly available information, respect the target website's Terms of Service and `robots.txt`, and comply with all applicable laws and regulations. Do not use the data for any unlawful purpose. This actor is an independent tool and is **not affiliated with, endorsed by, or connected to Flipkart** or its parent companies. All trademarks belong to their respective owners.

***

### 🛟 Support

Questions, feature requests or an issue with the data? Open an issue on the actor's page — feedback is welcome and helps improve the tool.

***

⭐ **If this actor saves you time, please leave a review — it really helps!**

# Actor input Schema

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

Keywords to search on Flipkart (e.g. laptop, smartphone, shoes, headphones). The scraper paginates automatically.

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

Paste Flipkart search URLs with filters applied (e.g. https://www.flipkart.com/search?q=smartphone\&sort=popularity). Scraped in addition to the search queries.

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

Maximum number of products to collect across all queries and URLs.

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

Proxy settings. Apify Proxy is enabled by default and recommended for reliable, uninterrupted results.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Flipkart product ID

## `title` (type: `string`):

Product title

## `url` (type: `string`):

Product page URL

## `brand` (type: `string`):

Brand

## `price` (type: `string`):

Selling price (INR)

## `mrp` (type: `string`):

Maximum retail price

## `discountPercent` (type: `string`):

Discount percentage

## `rating` (type: `string`):

Average rating

## `ratingCount` (type: `string`):

Number of ratings

## `reviewCount` (type: `string`):

Number of reviews

## `category` (type: `string`):

Category

## `image` (type: `string`):

Product image URL

# 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": [
        "laptop"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/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": ["laptop"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/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": [
    "laptop"
  ],
  "maxItems": 100
}' |
apify call haketa/flipkart-scraper --silent --output-dataset

```

## MCP server setup

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