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

An advanced, high-speed e-commerce scraper designed for real-time price monitoring and competitor intelligence. Extracts product titles, current pricing, discounts, stock availability, specifications, images, and seller ratings from Flipkart Product. Perfect for inventory tracking, drop-shipping ...

- **URL**: https://apify.com/codingfrontend/flipkart-product-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

### What does Flipkart Product Scraper do?

This Actor collects **public Flipkart product data** from a search, category, search-results URL, or product URL. It is a **Flipkart API alternative** for bounded product research, catalog monitoring, price analysis, and marketplace data workflows. It does not log in, solve CAPTCHAs, evade access controls, use private APIs, or reuse protected sessions.

### Why use Flipkart Product Scraper?

Use it to build a product catalog, compare prices and discounts, monitor public availability, study ratings, or enrich listing results with public product-page details. Results include stable identifiers, titles, brands, categories, prices, discounts, seller and delivery signals, variants, offers, images, badges, review excerpts, specifications, dates, and source metadata.

The Actor supports bounded pagination, result limits, price and rating filters, Flipkart Assured filtering, optional detail enrichment, media and ratings toggles, request pacing, concurrency, retry and timeout controls, and optional Apify proxy configuration. A proxy is used only when the runtime provides the credentials needed to honor it. Apify provides scheduling, API access, integrations, monitoring, and local or cloud dataset storage.

### What data can it extract?

| Field | Type | Description |
| --- | --- | --- |
| `productId`, `fsn`, `pid`, `sku` | string | Public product identifiers and legacy aliases. |
| `productTitle`, `brand`, `category` | string | Public catalog identity. |
| `priceAmount`, `originalPriceAmount`, `discountPercent` | number/integer | Current and original public pricing signals. |
| `rating`, `ratingsCount`, `reviews` | number/integer/array | Public aggregate ratings and bounded review excerpts. |
| `seller`, `availability`, `delivery` | string | Public seller, stock, and delivery signals. |
| `images`, `highlights`, `variantOptions` | array | Bounded public media and product options. |
| `specifications`, `offers`, `returnPolicy` | array/object/string | Public product details when disclosed. |
| `sourceMetadata`, `rawPublic` | object | Extraction provenance and bounded public JSON-LD/listing objects. |
| `diagnostic`, `found`, `dataAvailable` | object/boolean | Fail-closed status when a public barrier or no-result condition is observed. |

### How to scrape Flipkart

1. Open the Actor's input tab and choose `search`, `productUrl`, `searchUrl`, or `categoryUrl`.
2. Set `maxItems` and `maxPages` to the smallest bounds that answer your question.
3. Keep `deepSearch` enabled for seller, delivery, specifications, offers, and other public detail sections.
4. Run the Actor and inspect the dataset. Product rows have `found: true` and `dataAvailable: true`.
5. If Flipkart presents a CAPTCHA, login gate, rate limit, device challenge, geofence, paywall, or WAF barrier, the Actor stops at that page and emits a diagnostic row with `found: false` and `dataAvailable: false`.

### How much does it cost?

The Actor has no separate per-result fee in this project. Cloud cost depends on browser compute time, page count, concurrency, retries, and detail enrichment. Use lower `maxItems`, `maxPages`, `maxConcurrency`, and `deepSearch: false` for economical listing-only runs. Apify plan limits and current compute-unit pricing apply.

### Input

See the input tab for full configuration options. URLs must be HTTPS URLs on `flipkart.com`. `requestDelayMs`, `maxRequestRetries`, `navigationTimeoutSecs`, and `requestHandlerTimeoutSecs` are wired directly to the crawler. `includeRawPublic` keeps only bounded public structured objects; it never stores HTML, cookies, credentials, or private session data.

#### Example input

```
{
  "mode": "productUrl",
  "productUrl": "https://www.flipkart.com/example-smartphone/p/itm1234567890abcd",
  "maxItems": 1,
  "deepSearch": true,
  "includeRatings": true
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. A simplified product row looks like:

```json
{
  "recordType": "Flipkart product",
  "found": true,
  "dataAvailable": true,
  "productId": "itm1234567890abcd",
  "productTitle": "Example Smartphone (Blue, 128 GB)",
  "priceAmount": 19999,
  "rating": 4.3,
  "url": "https://www.flipkart.com/example-smartphone/p/itm1234567890abcd"
}
```

A fail-closed row looks like:

```json
{
  "recordType": "Flipkart diagnostic",
  "found": false,
  "dataAvailable": false,
  "diagnostic": { "code": "CAPTCHA", "barrierType": "captcha", "publicOnly": true }
}
```

### Key-value store

The Actor does not write custom key-value records. Product and diagnostic records are stored in the dataset; the declared key-value store is intentionally empty.

### Tips and advanced options

Use `includeMedia: false` for text-only analysis and `includeRatings: false` when ratings are not needed. Use `includeRawPublic: false` for a smaller dataset. Genuinely unavailable optional fields are omitted; the Actor does not insert placeholder strings or fabricated zero values. Keep concurrency moderate and increase pacing when public pages become unstable. The Actor treats page content as untrusted data and emits only bounded, normalized values.

### FAQ, disclaimers, and support

#### Does this Actor bypass Flipkart protections?

No. It fails closed at public access barriers and does not use evasive browser behavior, mirrors, private APIs, CAPTCHA solving, login reuse, or protected session reuse.

#### Can I scrape private customer data?

No. The Actor only reads public product and listing pages. Our Actors are ethical and do not extract private user data, such as email addresses, gender, or location. You should not scrape personal data unless you have a legitimate reason to do so. If unsure, consult your lawyers.

#### Where can I report an issue?

Use the Issues tab for feedback and the API tab for programmatic access. Follow Flipkart's terms, applicable laws, robots guidance, and your own legal review when using the output.

# Actor input Schema

## `mode` (type: `string`):

Choose a public search query, product URL, search results URL, or category URL.

## `searchQuery` (type: `string`):

Public product search term. Required in search mode.

## `productUrl` (type: `string`):

HTTPS Flipkart product page URL. Required in productUrl mode.

## `searchUrl` (type: `string`):

HTTPS Flipkart search results URL. Required in searchUrl mode.

## `categoryUrl` (type: `string`):

HTTPS Flipkart category URL. Required in categoryUrl mode.

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

Maximum number of product records to emit.

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

Listing page to start from. Applies to search and listing URL modes.

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

Maximum public listing pages to inspect, including the starting page.

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

Public listing sort order.

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

Minimum public price filter in INR. Applied in search mode.

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

Maximum public price filter in INR. Applied in search mode.

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

Keep public listing results whose observed rating meets this threshold. Use 0 to disable.

## `flipkartAssured` (type: `boolean`):

Keep public listing results marked Flipkart Assured.

## `deepSearch` (type: `boolean`):

Open each product page for public seller, delivery, offers, variants, specifications, and other rendered detail sections.

## `includeMedia` (type: `boolean`):

Collect public product image URLs and media counts.

## `includeRatings` (type: `boolean`):

Collect public aggregate ratings and bounded review excerpts.

## `includeRawPublic` (type: `boolean`):

Keep bounded public JSON-LD and listing objects. HTML and private session data are excluded.

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

Number of public browser pages processed in parallel.

## `requestDelayMs` (type: `integer`):

Minimum pacing delay before each public page request.

## `maxRequestRetries` (type: `integer`):

Maximum retries for public navigation or extraction failures. Barriers are never bypassed.

## `navigationTimeoutSecs` (type: `integer`):

Maximum time allowed for one public page navigation.

## `requestHandlerTimeoutSecs` (type: `integer`):

Maximum time allowed for extraction on one public page.

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

Optional Apify proxy settings. They are honored only when the runtime exposes Apify proxy credentials.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "smartphone 5G",
  "productUrl": "https://www.flipkart.com/example-smartphone/p/itm1234567890abcd",
  "searchUrl": "https://www.flipkart.com/search?q=smartphone",
  "categoryUrl": "https://www.flipkart.com/mobiles/pr?sid=tyy,4io",
  "maxItems": 3,
  "startPage": 1,
  "maxPages": 5,
  "sortBy": "relevance",
  "minPrice": 1000,
  "maxPrice": 20000,
  "minRating": 4,
  "flipkartAssured": false,
  "deepSearch": true,
  "includeMedia": true,
  "includeRatings": true,
  "includeRawPublic": true,
  "maxConcurrency": 3,
  "requestDelayMs": 500,
  "maxRequestRetries": 2,
  "navigationTimeoutSecs": 45,
  "requestHandlerTimeoutSecs": 180,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing public Flipkart product records and diagnostics.

# 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 = {
    "mode": "search",
    "maxItems": 50,
    "startPage": 1,
    "maxPages": 5,
    "sortBy": "relevance",
    "minRating": 0,
    "flipkartAssured": false,
    "deepSearch": true,
    "includeMedia": true,
    "includeRatings": true,
    "includeRawPublic": true,
    "maxConcurrency": 3,
    "requestDelayMs": 500,
    "maxRequestRetries": 2,
    "navigationTimeoutSecs": 45,
    "requestHandlerTimeoutSecs": 180
};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/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 = {
    "mode": "search",
    "maxItems": 50,
    "startPage": 1,
    "maxPages": 5,
    "sortBy": "relevance",
    "minRating": 0,
    "flipkartAssured": False,
    "deepSearch": True,
    "includeMedia": True,
    "includeRatings": True,
    "includeRawPublic": True,
    "maxConcurrency": 3,
    "requestDelayMs": 500,
    "maxRequestRetries": 2,
    "navigationTimeoutSecs": 45,
    "requestHandlerTimeoutSecs": 180,
}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/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 '{
  "mode": "search",
  "maxItems": 50,
  "startPage": 1,
  "maxPages": 5,
  "sortBy": "relevance",
  "minRating": 0,
  "flipkartAssured": false,
  "deepSearch": true,
  "includeMedia": true,
  "includeRatings": true,
  "includeRawPublic": true,
  "maxConcurrency": 3,
  "requestDelayMs": 500,
  "maxRequestRetries": 2,
  "navigationTimeoutSecs": 45,
  "requestHandlerTimeoutSecs": 180
}' |
apify call codingfrontend/flipkart-product-scraper --silent --output-dataset

```

## MCP server setup

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