# Flipkart Scraper — Prices, MRP & Ratings (`crawloop/flipkart-scraper`) Actor

Flipkart search scraper for keyword and search-URL product cards. Get product ID, title, price, MRP, discount, rating, and Assured badge. Fast HTTP — no browser. Built for India price monitoring and catalog research.

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

## Pricing

from $1.10 / 1,000 product listings

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/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 — Prices, MRP & Ratings

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Flipkart or its affiliates. Data is read from publicly accessible search pages only. No login. You are responsible for complying with applicable law and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

Search Flipkart by **keyword** or **search URL** and extract **product cards** with **product ID**, **title**, **price**, **MRP**, **discount**, **rating**, **rating count**, and the **Assured** badge. This **Flipkart scraper** is an **API alternative** for **price monitoring** and **catalog research** in India. Run it from **Python**, **Node.js**, or **MCP**; export JSON / CSV / dataset. Fast **HTTP** — no headless browser.

> **Crawloop Marketplace & E-commerce Suite** — Flipkart search cards, then Amazon, AliExpress, or Walmart for the same product outside India.

| **Flipkart Scraper** ◄── *you are here* | [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper) | [AliExpress Search Scraper](https://apify.com/crawloop/aliexpress-search-scraper) | [Walmart Scraper](https://apify.com/crawloop/walmart-scraper) |
| :---: | :---: | :---: | :---: |
| Flipkart keyword / URL cards, INR price, MRP, Assured | Amazon keyword SERP, badges, sponsored | AliExpress prices, sold count, Choice | Walmart ZIP-local prices |

Also see: [Trendyol Scraper](https://apify.com/crawloop/trendyol-scraper) · [Newegg Product Scraper](https://apify.com/crawloop/newegg-product-scraper)

***

### When to use this Actor

- **India price checks** — selling price, MRP, and percent off on a keyword
- **Catalog pulls** — product id, title, rating, and image from search or browse URLs
- **Assured shortlists** — keep only cards flagged Assured
- **Scheduled refresh** — same query, compare `price` and `discountPercent` over time

### When not to use this Actor

- **Product page specs, gallery, or offers** — search cards only
- **Review text** — rating and rating count are on the card; review bodies are not
- **Seller lead lists** — no seller crawl
- **Amazon, AliExpress, or Walmart** — use the sibling Actors in the table above

***

### Key Features

- **Keyword search** — `query` or batch `queries` (up to 4 in parallel)
- **Paste search or browse URLs** — pagination updates `page`. Product page URLs are rejected
- **Pagination + caps** — up to **20 pages** per query, or stop at `maxItems`
- **Sort** — relevance, popularity, price, newest (keyword searches)
- **Price and rating filters** — `minPrice`, `maxPrice`, `minRating`, `assuredOnly`
- **Fast HTTP** — Chrome TLS impersonation, 256 MB. Datacenter in India first; one residential retry if the page is blocked

***

### How to scrape Flipkart search results

1. Set a keyword in `query`, or paste search/browse URLs in `searchUrls`.
2. Cap volume with `maxItems` and `maxPages`.
3. Run the Actor. Download the default dataset as JSON, CSV, or Excel — or call it from Python, Node.js, or MCP.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `query` | String | — | Primary search keyword |
| `queries` | Array | — | Extra keywords (same sort and filters) |
| `searchUrls` | Array | — | Search or browse URLs. Product pages are rejected |
| `maxPages` | Integer | `1` | Pages per query/URL (1–20) |
| `maxItems` | Integer | — | Product cap **per** query or URL |
| `startPage` | Integer | `1` | First page |
| `sortBy` | String | `relevance` | Keyword sort. Pasted URLs keep their own filters |
| `minPrice` / `maxPrice` | Number | — | Drop cards outside this INR range |
| `minRating` | Number | — | Minimum average rating (0–5) |
| `assuredOnly` | Boolean | `false` | Keep Assured cards only |
| `deduplicateIds` | Boolean | `true` | One row per `productId` in the run |
| `maxConcurrency` | Integer | `2` | Parallel queries (1–4) |
| `autoEscalateOnBlock` | Boolean | `true` | One India residential retry if datacenter is blocked |
| `proxyConfiguration` | Object | datacenter, India | Apify Proxy |

#### Input example

```json
{
  "query": "earphones",
  "maxPages": 1,
  "maxItems": 40,
  "sortBy": "popularity",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "IN"
  }
}
```

***

### Output

Each dataset item is one search card.

| Field | Description |
| :--- | :--- |
| `productId` | Flipkart product id |
| `listingId` | Listing id |
| `title`, `brand` | Card title and brand |
| `price`, `mrp` | Selling price and struck-through MRP, INR |
| `discountAmount`, `discountPercent` | Rupee and percent discount |
| `rating`, `ratingCount` | Average stars and rating count |
| `flipkartAssured` | Assured badge |
| `imageUrl`, `productUrl` | Image and product link |
| `category`, `keySpecs` | Category and short spec lines |
| `page`, `position`, `searchQuery` | Where the card was found |
| `scrapedAt` | UTC timestamp |

#### Output example

```json
{
  "source": "flipkart_search",
  "searchQuery": "earphones",
  "page": 1,
  "position": 1,
  "productId": "ACCHEYV9V6MQGFQQ",
  "listingId": "LSTACCHEYV9V6MQGFQQDG5RKC",
  "title": "Mivi DuoPods Blaze",
  "brand": "Mivi",
  "price": 699,
  "mrp": 3999,
  "discountAmount": 3300,
  "discountPercent": 82,
  "currency": "INR",
  "rating": 4.1,
  "ratingCount": 23888,
  "flipkartAssured": true,
  "productUrl": "https://www.flipkart.com/mivi-earbuds/p/itm349?pid=ACCHEYV9V6MQGFQQ",
  "scrapedAt": "2026-09-24T19:00:00Z"
}
```

***

### Use Cases

| Use case | What you get | Why it helps |
| :--- | :--- | :--- |
| **Price monitoring** | `price`, `mrp`, `discountPercent` | Track promo depth on a keyword |
| **Catalog build** | id, title, image, URL | Seed a sheet without opening each product page |
| **Assured filter** | `flipkartAssured` | Drop marketplace listings that are not badged |
| **Cross-market check** | Same keyword on Amazon or Walmart | Compare an India card with a US SERP |

***

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/flipkart-scraper').call({
  query: 'earphones',
  maxPages: 1,
  maxItems: 40
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 5));
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token)
run = client.actor("crawloop/flipkart-scraper").call(
    run_input={"query": "earphones", "maxPages": 1, "maxItems": 40}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("productId"), item.get("title"), item.get("price"), item.get("mrp"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~flipkart-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"earphones","maxPages":1,"maxItems":40}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call this Actor by Store ID `crawloop/flipkart-scraper`.

Example prompts:

- "Run Flipkart Scraper for earphones, 1 page, return productId, title, price, mrp, and discountPercent"
- "Scrape Flipkart for wireless mouse, keep Assured cards rated 4 and up, summarize the cheapest 20"
- "Chain Flipkart Scraper then Amazon Search Scraper for the same keyword and compare INR cards with the US SERP"

### Suite next step

After a Flipkart keyword pull, compare the same products on [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper). For cross-border wholesale cards, use [AliExpress Search Scraper](https://apify.com/crawloop/aliexpress-search-scraper). For US retail prices, use [Walmart Scraper](https://apify.com/crawloop/walmart-scraper).

***

### FAQ

**What input do I need?**\
A keyword in `query` (or `queries`), or Flipkart search/browse URLs in `searchUrls`.

**Does it open product pages?**\
No. Search cards only: price, MRP, discount, rating, Assured, image, and URL.

**Can I paste a product URL?**\
No. `/p/` links are rejected. Use a search or category browse URL.

**What if the dataset is empty?**\
The keyword may have no cards in range, or the datacenter IP was blocked. Leave `autoEscalateOnBlock` on, or set the proxy group to `RESIDENTIAL` with country `IN`.

**Is this a Flipkart API alternative?**\
Yes for search cards: keyword or URL in, structured JSON out. It does not replace a partner catalog API or a review export.

**Can I run it from Python, Node.js, or MCP?**\
Yes. See Integration examples and the MCP section.

***

### Limitations

- **Search cards only** — no specifications table, offer stack, or review text from the product page
- **India storefront** — prices are INR
- **Blocks** — one residential retry, then the run stops that page instead of launching a browser

# Actor input Schema

## `query` (type: `string`):

Flipkart keyword (for example earphones).

## `queries` (type: `array`):

Optional extra keywords. Each query uses the same sort, filters, and page cap.

## `searchUrls` (type: `array`):

Search or browse URLs. Pagination updates the page parameter. Product page URLs are rejected.

## `maxPages` (type: `integer`):

Search pages per query or URL (1–20). Stops earlier when maxItems is reached.

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

Optional cap on products saved per keyword or search URL.

## `startPage` (type: `integer`):

First results page (1-based).

## `sortBy` (type: `string`):

Sort for keyword searches. Pasted search URLs keep their own query string; only the page number is updated.

## `minPrice` (type: `number`):

Drop cards cheaper than this amount.

## `maxPrice` (type: `number`):

Drop cards more expensive than this amount.

## `minRating` (type: `number`):

Keep cards with at least this average rating (0–5). Cards without a rating are dropped when this is set.

## `assuredOnly` (type: `boolean`):

Keep only cards flagged Flipkart Assured.

## `deduplicateIds` (type: `boolean`):

Save each productId once across the whole run.

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

How many keywords or URLs to fetch in parallel (1–4).

## `autoEscalateOnBlock` (type: `boolean`):

If a datacenter response is blocked, retry that page once on India residential proxy.

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

Apify Proxy. Default is datacenter in India. Switch the group to RESIDENTIAL if pages come back empty.

## Actor input object example

```json
{
  "query": "earphones",
  "maxPages": 1,
  "maxItems": 40,
  "startPage": 1,
  "sortBy": "relevance",
  "assuredOnly": false,
  "deduplicateIds": true,
  "maxConcurrency": 2,
  "autoEscalateOnBlock": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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 = {
    "query": "earphones",
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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 = {
    "query": "earphones",
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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 '{
  "query": "earphones",
  "maxItems": 40
}' |
apify call crawloop/flipkart-scraper --silent --output-dataset

```

## MCP server setup

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