# Flipkart Search Scraper (products, prices, ratings) (`tamnt67/flipkart-scraper`) Actor

Scrape Flipkart search results and category pages: product name, price, MRP, discount, rating, review count, brand, highlights, warranty, images and URL as clean JSON or CSV. No login.

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

## Pricing

from $2.00 / 1,000 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.
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 Search Scraper (products, prices, ratings)

Extract products from **Flipkart search results and category pages**, India's largest marketplace. Enter keywords or paste Flipkart listing URLs (filters included) and get every product with price, MRP, discount, rating, number of ratings and reviews, brand, key highlights, warranty, stock status, images and URL.

Use it for price monitoring, competitor and brand research, finding best-selling products in a category, dropshipping research or feeding product data into your own tools.

### What you get for each product

| Field | Example |
|-------|---------|
| `productId` / `itemId` / `listingId` | ACCHPJJBTZGA8VP9 / ITM541AF26E27F25 / LSTACC... |
| `title` / `subtitle` / `brand` | TRIGGR Wukong 35dB ANC Bluetooth Gaming Headset / Desert Storm, True Wireless / TRIGGR |
| `price` / `mrp` / `currency` | 899 / 4999 / INR |
| `discountAmount` / `discountPercent` | 4100 / 82 |
| `ratingAverage` / `ratingCount` / `reviewCount` | 4 / 9508 / 1184 |
| `ratingBreakup` | \[1283, 442, 714, 1581, 5488] (1 to 5 stars) |
| `inStock` / `availability` | true / IN_STOCK |
| `keySpecs` | \["With Mic:Yes", "Bluetooth version: 6.0", ...] |
| `warranty` / `category` / `flipkartAssured` | 1 Year Warranty / headphone / true |
| `image` / `images` / `url` | main image, all images, product URL |
| `page` / `query` / `scrapedAt` | 1 / keyword "wireless earphones" / ISO timestamp |

Download as JSON, CSV, Excel or XML, or read through the API.

### How to use

1. Enter **keywords**, or paste **Flipkart URLs**: a search page such as `https://www.flipkart.com/search?q=laptop` or a category page such as `https://www.flipkart.com/audio-video/headphones/pr?sid=0pm,fcn`. Filters you applied on the website (brand, price range, rating) stay in the URL and are respected.
2. Choose a **sort order**: relevance, popularity, price or newest.
3. Set **max products per keyword or URL**. Flipkart returns about 40 products per page.
4. Run. Results appear in the dataset as pages are scraped.

#### Example input

```json
{
  "keywords": ["wireless earphones", "smart watch"],
  "startUrls": [{ "url": "https://www.flipkart.com/audio-video/headphones/pr?sid=0pm,fcn&p[]=facets.price_range.from%3D500" }],
  "sortBy": "popularity",
  "maxItemsPerQuery": 200
}
```

### Pricing

You pay per product record. Platform usage and residential proxy traffic are included in the price. Set a maximum total charge per run in the run options for a hard cap.

### Tips

- **Popularity** sort is the fastest way to see what sells in a niche.
- Apply filters on flipkart.com first, then paste the resulting URL here to scrape exactly that view.
- Schedule daily runs on a few keywords and connect to Google Sheets to build a price tracker.
- Keep the default **residential proxy in India**. Flipkart blocks most datacenter and foreign IPs.

### Limitations

- Listing data only. Product detail pages (full specifications, all reviews, seller list) are not scraped.
- Flipkart can change its site at any time. If the Actor stops returning data, report an issue and it will be fixed quickly.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

# Actor input Schema

## `keywords` (type: `array`):

Search terms, e.g. "wireless earphones". Each keyword is searched separately.

## `startUrls` (type: `array`):

Optional. Paste Flipkart listing URLs: a search page (https://www.flipkart.com/search?q=laptop) or a category page (https://www.flipkart.com/audio-video/headphones/pr?sid=0pm,fcn). Filters in the URL are kept.

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

Order of results, same options as the Flipkart website.

## `maxItemsPerQuery` (type: `integer`):

Flipkart returns about 40 products per page.

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

Keep the default: Apify residential proxy located in India. Flipkart blocks most datacenter and foreign IPs.

## Actor input object example

```json
{
  "keywords": [
    "wireless earphones"
  ],
  "startUrls": [],
  "sortBy": "relevance",
  "maxItemsPerQuery": 120,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset with one record per product: title, brand, price, MRP, discount, rating, review count, highlights, warranty, images, URL.

## `productsCsv` (type: `string`):

The same dataset exported as CSV.

# 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 = {
    "keywords": [
        "wireless earphones"
    ],
    "maxItemsPerQuery": 120,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "IN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/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 = {
    "keywords": ["wireless earphones"],
    "maxItemsPerQuery": 120,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "IN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/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 '{
  "keywords": [
    "wireless earphones"
  ],
  "maxItemsPerQuery": 120,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}' |
apify call tamnt67/flipkart-scraper --silent --output-dataset

```

## MCP server setup

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