# Flipkart Product Scraper (`nanodata/flipkart-product-scraper`) Actor

Search Flipkart (India) and get product rows with price, list price, discount, rating, availability, images and key specs. Optional product page details with seller. Pay per result.

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

## Pricing

from $1.00 / 1,000 flipkart product scrapeds

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 Product Scraper

Search Flipkart India by keyword and get one row per product: title, brand, price, list price, discount, rating, availability, images and key specs. You can also open every product page to add the seller, description, colour, shipping, return policy and the reviews shown on the page.

Use it for price tracking, catalog research, competitor checks and market sizing on the Indian online market.

### What you get

For every search result the actor returns:

- Product id, listing id, item id, title, subtitle (size, colour, weight) and product link
- Brand
- Price, list price (MRP), currency, discount percent and discount amount
- Star rating, number of ratings, number of written reviews
- Availability and an in-stock flag
- Offer notes shown on the card, for example "Only 3 left" or "Bank Offer"
- Main image and all card images
- Key specs, category, warranty line and the Flipkart Assured flag
- Position in the search results, result page, the search query and the total number of results Flipkart reports

With product page details turned on, each row also has seller name, seller id, description, colour, free shipping flag, return policy, large images and the top reviews shown on the page (title, rating, date, text).

### Pricing

You pay per event. No monthly fee.

| Event name | When it is charged | Price |
|---|---|---|
| `actor-start` | Once per run, together with the first delivered rows | $0.001 per run |
| `flipkart-product-result` | Once per product row delivered | $0.001 per product ($1.00 per 1,000) |
| `flipkart-product-detail` | Once per product whose page was read, only when product page details are on | $0.003 per product page read ($3.00 per 1,000) |

A run with a max total charge stops cleanly when the limit is reached. Rows are never delivered past the limit.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | list of text | none | Words to search for, for example `laptop` or `running shoes`. An empty input runs a small demo: the query `laptop`, 5 results. |
| `maxResultsPerQuery` | number | 50 | Products per query, from 1 to 1000. One result page holds about 24 to 40 products. |
| `includeDetails` | true or false | false | Read the product page of every result and add seller and page details. Adds one request and one paid event per product. |

Network settings are optional and prefilled. The default works for most runs.

Numbers and true or false values may be given as text (`"50"`, `"true"`). A list may be given as one text with commas or line breaks. A value that cannot be read stops the run at the start with a short message, before anything is charged.

#### Example: two searches

```json
{
  "searchQueries": ["laptop", "running shoes"],
  "maxResultsPerQuery": 50
}
```

#### Example: one search with product page details

```json
{
  "searchQueries": ["wireless earbuds"],
  "maxResultsPerQuery": 20,
  "includeDetails": true
}
```

### Output sample

```json
{
  "product_id": "COMHDZVEH5XGAYBF",
  "listing_id": "LSTCOMHDZVEH5XGAYBF1RFKFE",
  "item_id": "ITM135E9FA4A5AA3",
  "title": "HP 15 (i5 14th Gen) Intel Core 5 120U - (16 GB/512 GB SSD/Windows 11 Home) Thin and Light Laptop",
  "subtitle": "15.6 Inch, Natural Silver, 1.59 Kg, With MS Office",
  "brand": "HP",
  "url": "https://www.flipkart.com/hp-15-i5-14th-gen-intel-core-5-120u-16-gb-512-gb-ssd-windows-11-home-thin-light-laptop/p/itm135e9fa4a5aa3?pid=COMHDZVEH5XGAYBF",
  "price": 81500,
  "mrp": 89900,
  "currency": "INR",
  "discount_percent": 9,
  "discount_amount": 8400,
  "rating": 4.1,
  "rating_count": 951,
  "review_count": 71,
  "availability": "IN_STOCK",
  "in_stock": true,
  "offer_tags": ["Only 3 left", "Bank Offer"],
  "key_specs": ["Intel Core 5 Processor", "16 GB DDR4 RAM", "512 GB SSD"],
  "flipkart_assured": true,
  "position": 28,
  "page": 2,
  "search_query": "laptop",
  "search_total_results": 1431,
  "seller_name": null,
  "details_fetched": false,
  "scraped_at": "2026-11-05T10:00:00Z"
}
```

Fields that Flipkart does not show for a product are returned as `null`.

### FAQ

**Which country and currency does it cover?**
Flipkart India. Prices are in Indian rupees (INR).

**Why are some ratings, availability values or key specs empty?**
Flipkart sometimes returns a shorter version of a result page that has no ratings, availability or specs. The actor asks once more when it sees that, but not every page improves. Prices, list prices, discounts, titles, brands, images and links are in both versions. Turn on product page details to fill rating and availability from the product page.

**Why does a nonsense search still return products?**
Flipkart matches loosely and shows the closest products it has. The actor returns what the site shows. A search the site cannot match at all returns no rows, and nothing is charged.

**Why are there fewer rows than I asked for?**
Flipkart repeats some products between pages and some searches have fewer results than the limit. Repeated products are removed, so each product appears once per run.

**Does it read the seller for every product?**
Only with product page details on. Search results do not show the seller.

**What happens if the run is restarted?**
Progress is saved after every page. A restarted run continues where it stopped. It does not add the same rows twice and does not charge the same batch twice.

**What if Flipkart blocks or slows down?**
The actor keeps a low request rate, retries a refused page once with a fresh connection and stops after three server errors in a row. If every request was refused, the run ends with an error and a clear message. Nothing is charged for pages that were not delivered.

**Can I search by category or filter?**
Not in this version. Use search words, for example `men running shoes size 9`.

**Is it legal to use?**
The actor reads public product pages only. You are responsible for using the data in line with the site terms and local law.

# Actor input Schema

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

Words to search on Flipkart, for example 'laptop' or 'running shoes'. Leave the whole input empty for a tiny demo run (search 'laptop', 5 results).

## `maxResultsPerQuery` (type: `integer`):

Maximum products returned per search query. Each result page holds about 24 to 40 products.

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

Open the product page of every result and add seller, description, colour, shipping, return policy and top reviews. One extra page per product and one extra paid event (flipkart-product-detail).

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

Network settings. The default works for most runs.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop",
    "running shoes"
  ],
  "maxResultsPerQuery": 50,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Product rows from Flipkart search results

# 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",
        "running shoes"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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