# Flipkart Scraper - Product Search and Prices in INR (`s-r/flipkart-scraper`) Actor

Search Flipkart India by keyword, product URL or FSN. Export product titles, brands, INR prices, MRP, discounts, ratings, availability, images and listing IDs, with pagination and sponsored-result controls.

- **URL**: https://apify.com/s-r/flipkart-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (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 $3.00 / 1,000 product from searches

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 Scraper

Flipkart Scraper collects product search results and product pages from Flipkart India. Use keywords, search URLs, product URLs or Flipkart FSNs to export structured product data with prices in INR, ratings, availability and images.

### What Flipkart Scraper collects

This Actor serves brands, sellers and price research teams following the Indian retail market. Search mode returns the product cards shown for your keywords. Product mode returns the public product page for each requested FSN or product URL. Both modes use the same product row format, so exports can be combined without renaming the core fields.

Each product is identified by its Flipkart FSN. The Actor removes repeated FSNs across pages, queries and product inputs, keeping the first occurrence. This reduces duplicate export rows when the same product appears in several places. If you need to compare a search card with that product's detail listing, collect them in separate runs so that each listing remains visible.

### Input

Provide at least one entry in `queries` or `products`. You can use both in the same run. Search inputs are processed before explicit product inputs.

For keyword searches, put your terms in `queries`. The API also accepts a single string separated by commas or line breaks. A Flipkart search URL is accepted when it contains a nonempty `q` parameter. A sort value in that URL overrides the general `sort` setting; its page parameter is ignored because collection starts at page one. You can provide up to twenty unique searches.

Use `products` for up to fifty public product URLs or sixteen-character FSNs. The mobile share URL form from `dl.flipkart.com` is accepted when it identifies a product page. Category URLs, other websites and malformed product identifiers are rejected.

`max_pages` sets the number of pages per keyword, from one to twenty-five, with a default of one. Collection stops early when Flipkart returns an empty page. `max_items` sets the maximum number of unique delivered search products per keyword, from one to one thousand, with a default of one hundred. Explicit product inputs are separate from that search limit.

`sort` supports `relevance`, `popularity`, `price_asc`, `price_desc` and `recency_desc`. Set `include_sponsored` to false to exclude sponsored cards before the search row limit is applied. Otherwise sponsored results are included and identified on each row.

For a product page lookup, this input was used in the recorded example:

```json
{"products": ["MOBHQV9YZGYG64U7"]}
```

### Output

The default dataset contains one row per unique delivered product. The core fields are `source`, `fetched_at`, `product_id`, `country`, `title`, `brand`, `url`, `image_url`, `currency` and `price`. `product_id` is the Flipkart FSN, `country` is `IN`, and `currency` is `INR`. Prices are numeric amounts rather than formatted currency strings.

Additional fields include `mode`, `listing_id`, `mrp`, `discount_percent`, `rating`, `ratings_count`, `reviews_count`, `availability`, `in_stock`, `sponsored`, `flipkart_assured`, `category`, `key_specs`, `query`, `page` and `position`. Product page rows can also contain `seller_id`, `seller_name`, `rating_breakdown` and `color`. A value that the source does not provide is null. The Actor does not invent a GTIN, seller name or offer count.

The recorded iPhone product page returned FSN `MOBHQV9YZGYG64U7`, title `Apple iPhone 15 (Blue, 128 GB)`, a selling price of 69999 INR and an MRP of 74900 INR. These are observations from that page, not a promise that the price will remain unchanged.

The run output also reports indicative totals per keyword, warnings and whether collection was partial. Source totals can differ between searches and should not be treated as guaranteed export counts. Missing products in an otherwise successful run produce warnings while the available rows remain in the dataset.

### Pricing

The Actor uses separate events for delivered search products and delivered product page records: `product` and `product_detail`. Check the current Apify pricing panel for the applicable amounts before running a collection. There is no Actor start event in this product's charge configuration. An empty dataset has no product row charges, and duplicate FSNs are not charged as additional rows.

Users subject to the introductory volume cap receive at most ten dataset rows in a run. Their searches use one page, and explicit product inputs are limited to ten. This is a volume limit; the current pricing panel explains the event charges that apply to delivered rows.

### Data interpretation and limits

A search card and a product page can show different listings for the same FSN. Compare `listing_id` when analysing a price difference. `mrp` is the maximum retail price, not the highest offer from all sellers. On a search card without a crossed-out price, MRP equals the displayed price. Conditional bank and payment offers are outside this version.

Flipkart can place unavailable products after available products when sorting by price. Price order can therefore restart at that boundary. Sponsored cards can also sit outside the organic order. The Actor preserves the source order and exposes the availability and sponsorship fields for your analysis.

Pagination can overlap, so more pages do not necessarily mean a fixed number of additional products. Flipkart may return fallback products for an unfamiliar or nonsensical keyword. Those products reflect the source response and are accompanied by a warning where the fallback can be identified.

This version does not collect review text, category pages, price filters, seller lead lists or every seller offer. Rating and review counts are product summary fields, not a complete review export. Collection can be partial when a source page remains unavailable; read the run warnings before interpreting a missing row.

### FAQ

#### Can I collect a product using only its FSN?

Yes. Put the sixteen-character FSN in `products`. You do not need to find or construct a product title slug first.

#### Why does a search price differ from a product page price?

Flipkart can select a different listing on the product page. Compare the FSN together with `listing_id`, and remember that conditional payment offers are excluded from the displayed selling price field.

#### Why did three pages return fewer than 120 products?

Page sizes vary, pages can overlap and duplicates are removed. Your limits and the sponsored-result setting can reduce the count further. The dataset contains only the unique rows actually delivered.

#### Does this Actor export customer reviews?

No. It exports the rating, rating count and review count exposed on product cards or product pages. Full review text is outside the current version.

# Actor input Schema

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

Up to 20 unique keywords or Flipkart /search?q= URLs. A string is split on commas and line breaks. URL sort overrides sort; URL page is ignored.

## `products` (type: `array`):

Up to 50 product page URLs or 16-character FSNs. Accepts Flipkart and dl.flipkart.com product URLs.

## `sort` (type: `string`):

Sort for keywords without their own URL sort. Sponsored cards can appear outside the organic sort order.

## `max_pages` (type: `integer`):

Maximum search pages per query. Collection stops at the first empty page.

## `max_items` (type: `integer`):

Maximum unique delivered search rows per query. Explicit product inputs are collected separately.

## `include_sponsored` (type: `boolean`):

Include sponsored search cards. False excludes them before applying max_items.

## Actor input object example

```json
{
  "queries": [
    "iphone 15"
  ],
  "sort": "relevance",
  "max_pages": 1,
  "max_items": 100,
  "include_sponsored": true
}
```

# Actor output Schema

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

Deduplicated product rows from Flipkart search cards and product pages.

## `output` (type: `string`):

OUTPUT record with the run's counts and status flags.

## `errors` (type: `string`):

Failures with a code and a redacted message. Absent when the run had none.

# 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 = {
    "queries": [
        "iphone 15"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/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 = { "queries": ["iphone 15"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/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 '{
  "queries": [
    "iphone 15"
  ]
}' |
apify call s-r/flipkart-scraper --silent --output-dataset

```

## MCP server setup

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