# Flipkart Listings Scraper (`piotrv1001/flipkart-listings-scraper`) Actor

The Flipkart Listings Scraper extracts product data from Flipkart by search query, category URL, or product URL — capturing prices, MRPs, discounts, ratings histograms, key specs, images, availability, and warranty — ideal for price monitoring, catalog tracking, and market research.

- **URL**: https://apify.com/piotrv1001/flipkart-listings-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 3 total users, 1 monthly users, 62.5% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Listings Scraper

Easily extract product data from [Flipkart](https://www.flipkart.com), India's largest e-commerce marketplace. The **Flipkart Listings Scraper** turns search queries, category pages, or direct product URLs into clean structured JSON — prices, ratings, key specs, images, availability, warranty, and more.

### ✨ Features

-   🏷️ **Rich Product Data**: title, current price, MRP, discount %, ratings, rating count, full 1★–5★ histogram, key specs, category, availability, warranty, and Flipkart Assured tag.
-   🔍 **Three Input Modes**: search queries, category/browse URLs, or direct product URLs — mix and match in a single run.
-   📄 **Optional Detail Enrichment**: toggle `includeDetails` to visit each product page and add brand, full description, sample reviews, full image gallery, and the complete spec table.
-   🖼️ **Resolved Image URLs**: Flipkart's templated CDN URLs (`{@width}/{@height}/{@quality}`) are auto-resolved to ready-to-use 832×832 JPEGs.
-   ⚡ **Fast & Cheap**: pure HTTP scraping (no headless browser) — ~24 products per request, ~3 minutes for 2,000 products.
-   🔁 **Pagination Built In**: follows `<link rel="next">` automatically until `maxItemsPerInput` is reached.
-   🧹 **Auto-Dedup**: sponsored placements that duplicate organic results are removed by `productId` before they hit the dataset.

### 🛠️ How It Works

1.  **Provide your inputs** — any combination of search terms, category URLs, or product URLs.
2.  **Pick your detail level** — leave `includeDetails` off for fast, listing-grade data, or turn it on for the full product page payload.
3.  **Run the Actor** — pagination, deduplication, and image-URL resolution are handled automatically.
4.  **Download the dataset** in JSON, CSV, Excel, HTML, XML, or RSS.

### ⚙️ Input

The Actor accepts the following input fields. At least one of `searchQueries`, `categoryUrls`, or `productUrls` must be set.

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | string[] | `[]` | Plain-text search terms. Each becomes `https://www.flipkart.com/search?q=...`. Example: `["laptop", "iphone 15"]`. |
| `categoryUrls` | string[] | `[]` | Flipkart category or browse URLs (e.g., `https://www.flipkart.com/mobiles/pr?sid=tyy,4io`). |
| `productUrls` | string[] | `[]` | Direct product URLs (`https://www.flipkart.com/.../p/itm...`) — extract single products without crawling listings. Always returns full details. |
| `maxItemsPerInput` | integer | `50` | Cap per query / category URL. Set `0` for unlimited. |
| `includeDetails` | boolean | `false` | Visit each product page to add brand, full description, sample reviews, full image gallery, and detailed specifications. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings. Datacenter is sufficient for moderate volume; residential recommended above ~5k products per run. |

Example input:

```json
{
    "searchQueries": ["laptop", "iphone 15"],
    "categoryUrls": ["https://www.flipkart.com/mobiles/pr?sid=tyy,4io"],
    "productUrls": [],
    "maxItemsPerInput": 100,
    "includeDetails": false,
    "proxyConfiguration": { "useApifyProxy": true }
}
````

### 📊 Sample Output Data

Each scraped product is saved as a JSON object in the dataset. Example (listing-only, `includeDetails: false`):

```json
[
    {
        "productId": "COMHDMJYDGBTMJXG",
        "listingId": "LSTCOMHDMJYDGBTMJXG112MJM",
        "title": "Lenovo IdeaPad Slim 3 Next Gen AI PC Snapdragon X",
        "subtitle": "15.3 Inch, Luna Grey, 1.55 Kg, With MS Office",
        "url": "https://www.flipkart.com/lenovo-ideapad-slim-3/p/itmd6d920cf123c3?pid=COMHDMJYDGBTMJXG",
        "price": 59999,
        "mrp": 88390,
        "discountPercent": 32,
        "currency": "INR",
        "rating": 4.3,
        "ratingCount": 891,
        "reviewCount": 85,
        "ratingHistogram": { "1": 51, "2": 27, "3": 44, "4": 233, "5": 536 },
        "keySpecs": [
            "Snapdragon X Processor",
            "16 GB LPDDR5X RAM",
            "Windows 11 Home Operating System",
            "512 GB SSD",
            "38.86 cm (15.3 Inch) Display",
            "Office Home 2024"
        ],
        "images": [
            "https://rukmini1.flixcart.com/image/832/832/xif0q/computer/d/z/z/-original-imahgfdfx3hhguyc.jpeg?q=70"
        ],
        "category": "Laptops",
        "subCategory": "Laptop",
        "availability": "IN_STOCK",
        "isFlipkartAssured": true,
        "isSponsored": false,
        "warranty": "1 Year Onsite Warranty",
        "sourceQuery": "laptop",
        "scrapedAt": "2026-05-10T12:00:00.000Z"
    }
]
```

When `includeDetails: true`, each record additionally includes `sku`, `brand`, `color`, `description`, `fullImages` (high-resolution gallery), `sampleReviews` (top 3), `specifications` (grouped by section, e.g., "General", "Display Features"), and `highlights`.

### 💰 Pricing

This Actor uses Apify's **Pay-Per-Event** model. You only pay for products that actually land in your dataset — failed pages and retries are free.

| Event | When it's charged | Price per event | Price per 1,000 products |
|---|---|---|---|
| `product-listing` | Each product extracted from a listing page (`includeDetails: false`) | **$0.001** | **$1.00** |
| `item-detail` | Each product enriched with full PDP details (`includeDetails: true` or any direct `productUrls` input) | **$0.004** | **$4.00** |

**How to estimate your run cost:**

- 1,000 listing-only products → **$1.00**
- 1,000 enriched products → **$4.00**
- 500 listings + 500 enriched (mixed run) → **$0.50 + $2.00 = $2.50**

`item-detail` is priced higher because it requires one extra HTTP request per product to fetch the full product page, plus the richer payload (description, sample reviews, full spec table, full image gallery). For most price-monitoring and catalog use cases, `product-listing` already returns 16+ fields per product and is the better value.

Optimize your e-commerce monitoring, price tracking, and competitive research with **Flipkart Listings Scraper** today! 🚀

# Actor input Schema

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

Plain-text search terms. Each will be issued as https://www.flipkart.com/search?q=...

## `categoryUrls` (type: `array`):

Flipkart category or browse URLs (e.g., https://www.flipkart.com/mobiles/pr?sid=tyy,4io)

## `productUrls` (type: `array`):

Direct product URLs (https://www.flipkart.com/.../p/itm...) — extract single products without crawling listings

## `maxItemsPerInput` (type: `integer`):

Stop after N products per query/URL. Set 0 for unlimited (capped by Flipkart's pagination).

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

Visit each product page to add full description, brand, sample reviews, full image gallery, and detailed specifications. Charged per item-detail event when enabled, per product-listing event when disabled.

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

Residential proxy is strongly recommended — Apify's datacenter (auto) IPs are heavily rate-limited by Flipkart, leading to many 403 retries and wasted compute. Country=IN is optional but tends to give the most consistent prices/availability.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "categoryUrls": [],
  "productUrls": [],
  "maxItemsPerInput": 50,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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": [
        "laptop"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/flipkart-listings-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call piotrv1001/flipkart-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=piotrv1001/flipkart-listings-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Flipkart Listings Scraper",
        "description": "The Flipkart Listings Scraper extracts product data from Flipkart by search query, category URL, or product URL — capturing prices, MRPs, discounts, ratings histograms, key specs, images, availability, and warranty — ideal for price monitoring, catalog tracking, and market research.",
        "version": "0.0",
        "x-build-id": "MvEkAPfHaB6PZYX5A"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/piotrv1001~flipkart-listings-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-piotrv1001-flipkart-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/piotrv1001~flipkart-listings-scraper/runs": {
            "post": {
                "operationId": "runs-sync-piotrv1001-flipkart-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/piotrv1001~flipkart-listings-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-piotrv1001-flipkart-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQueries": {
                        "title": "Search queries",
                        "type": "array",
                        "description": "Plain-text search terms. Each will be issued as https://www.flipkart.com/search?q=...",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "categoryUrls": {
                        "title": "Category / browse URLs",
                        "type": "array",
                        "description": "Flipkart category or browse URLs (e.g., https://www.flipkart.com/mobiles/pr?sid=tyy,4io)",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "productUrls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "Direct product URLs (https://www.flipkart.com/.../p/itm...) — extract single products without crawling listings",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItemsPerInput": {
                        "title": "Max items per search/category",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Stop after N products per query/URL. Set 0 for unlimited (capped by Flipkart's pagination).",
                        "default": 50
                    },
                    "includeDetails": {
                        "title": "Include full product details",
                        "type": "boolean",
                        "description": "Visit each product page to add full description, brand, sample reviews, full image gallery, and detailed specifications. Charged per item-detail event when enabled, per product-listing event when disabled.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Residential proxy is strongly recommended — Apify's datacenter (auto) IPs are heavily rate-limited by Flipkart, leading to many 403 retries and wasted compute. Country=IN is optional but tends to give the most consistent prices/availability.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
