# Flipkart Reviews Scraper (`w3crawler/flipkart-reviews-scraper`) Actor

Scrape rich, null-safe Flipkart reviews with reviewed variants, verification, helpful votes, product aggregates, rating histograms, aspect names, and pagination.

- **URL**: https://apify.com/w3crawler/flipkart-reviews-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 7.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 reviews

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?

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

Collect publicly visible Flipkart product reviews from product URLs or a public search query. Each saved row keeps the review text, rating, title, visible date, verification labels, helpful votes, reviewed variant, product aggregates, rating histogram, media links, and the review's page position, with optional seller and variant context from the product page.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/flipkart-reviews-scraper) and select **Try for free**, or open the **Input** tab.
2. Choose `mode`: `productUrl` for product URLs or `search` for a public Flipkart search phrase.
3. For the first run, set `maxItems` and `maxReviewsPerProduct` to `1`, keep `maxProducts` at `3`, and leave review pagination off.
4. Start the Actor, open the dataset, and export rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the number of reviews pushed.

### Input

All fields are optional, and the defaults below are ready to use. `mode` is exclusive: product URLs are read in `productUrl` mode, and a query is read in `search` mode. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `mode` | string enum | Optional | `productUrl` | Source type: `productUrl` for product pages or `search` for a public search query. |
| `productUrls` | string array | Optional | `["https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"]` | Public HTTPS Flipkart product URLs used in `productUrl` mode, up to 100 entries. Only `flipkart.com` product pages are accepted. |
| `query` | string | Optional | `iphone 15` | Public Flipkart search text used in `search` mode, up to 200 characters. |
| `searchQuery` | string | Optional | Not supplied | Backward-compatible alias for `query`. `query` takes precedence when both are supplied. |
| `maxItems` | integer | Optional | `50` | Maximum review rows emitted across the whole run, 1–500. Diagnostic messages do not consume this limit. |
| `maxReviewsPerProduct` | integer | Optional | `50` | Maximum review rows accepted for each product before moving to the next product, 1–500. |
| `maxReviews` | integer | Optional | Not supplied | Backward-compatible alias used only when `maxItems` or `maxReviewsPerProduct` is omitted, 1–500. |
| `maxProducts` | integer | Optional | `3` | Maximum distinct product links resolved from a search query, 1–20. |
| `pagination` | object | Optional | Not supplied | Review-page traversal settings. The Actor also stops early when a page shows fewer than ten review blocks. See the nested keys below. |
| `ratingFilter` | object | Optional | Not supplied | Optional review-rating filter using a min/max range or an explicit values list. |
| `dateFilter` | object | Optional | Not supplied | Optional visible-date filter. Relative dates are converted to bounded ISO dates when possible; unparseable dates are excluded when the filter is on. |
| `verifiedPurchaseOnly` | boolean | Optional | `false` | Keep only reviews visibly marked Verified Purchase or Certified Buyer. |
| `includeDetails` | boolean | Optional | `true` | Open the product page to add seller, aggregate, variant, aspect, and other product-context fields. |
| `includeMedia` | boolean | Optional | `true` | Keep bounded public image URLs and review-media links observed in the product and review DOM. |
| `includeRaw` | boolean | Optional | `true` | Keep bounded visible-DOM excerpts and leaf-text objects for auditability. Raw content is never executed. |
| `maxRawTextLength` | integer | Optional | `2000` | Maximum characters retained in each bounded raw public text excerpt, 200–5,000. |
| `maxConcurrency` | integer | Optional | `2` | Maximum independent public product browser sessions, 1–5. |
| `pacing` | object | Optional | Not supplied | Randomized bounded delay between paginated review requests and retries. |
| `maxRetries` | integer | Optional | `2` | Retries after a transient navigation or extraction failure, 0–5. Access barriers fail closed immediately. |
| `timeouts` | object | Optional | Not supplied | Bounded navigation, selector, and render-wait limits. |
| `headless` | boolean | Optional | `true` | Run the browser without a visible window. Set `false` only in a runtime with a display. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Standard Apify Proxy settings, honored only when the runtime exposes a proxy configuration. Custom or private proxy endpoints are not accepted. |

`pagination` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `enabled` | boolean | `true` | Request subsequent public review pages. |
| `startPage` | integer | `1` | One-based review page to start from, 1–500. |
| `maxPages` | integer | `50` | Maximum public review pages requested per product, 1–50. |

`ratingFilter` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `enabled` | boolean | `false` | Apply the rating filter to extracted reviews. |
| `min` | integer | `1` | Inclusive minimum review rating, 1–5. |
| `max` | integer | `5` | Inclusive maximum review rating, 1–5. |
| `values` | integer array | `[]` | Optional explicit list of allowed ratings from 1 to 5. |

`dateFilter` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `enabled` | boolean | `false` | Apply the date filter to extracted reviews. |
| `from` | string | Not supplied | Inclusive start date in `YYYY-MM-DD` format. |
| `to` | string | Not supplied | Inclusive end date in `YYYY-MM-DD` format. |

`pacing` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `minDelayMs` | integer | `1000` | Minimum delay before a paginated review request, 0–15,000 ms. |
| `maxDelayMs` | integer | `2500` | Maximum delay before a paginated review request, 0–30,000 ms. |

`timeouts` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `navigationMs` | integer | `45000` | Maximum wait for a public page navigation, 5,000–120,000 ms. |
| `selectorMs` | integer | `10000` | Default selector wait, 1,000–60,000 ms. |
| `renderMs` | integer | `1500` | Short post-load wait for visible review content, 0–10,000 ms. |

Default input:

```json
{
  "mode": "search",
  "query": "smartphone",
  "maxItems": 1,
  "maxReviewsPerProduct": 1,
  "maxProducts": 3,
  "includeDetails": false,
  "includeMedia": true,
  "includeRaw": true,
  "maxConcurrency": 1,
  "maxRetries": 0,
  "pagination": {
    "enabled": false,
    "startPage": 1,
    "maxPages": 1
  },
  "pacing": {
    "minDelayMs": 0,
    "maxDelayMs": 0
  },
  "timeouts": {
    "navigationMs": 30000,
    "selectorMs": 2000,
    "renderMs": 0
  },
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

This is the stored example input, sized for a one-review first run. The schema defaults are larger: `mode` is `productUrl`, `maxItems` and `maxReviewsPerProduct` are 50, pagination is enabled with up to 50 pages, delays are 1,000–2,500 ms, 2 retries, and timeouts are 45,000 / 10,000 / 1,500 ms.

`productUrl` mode reads the supplied product pages directly. `search` mode resolves up to `maxProducts` distinct public product links from the query, then reads their review pages. `query` wins over `searchQuery`. `maxItems` caps the whole run, while `maxReviewsPerProduct` caps each product. Review pagination follows the configured page range and stops early when a page has fewer than ten review blocks. Rating, date, and verified-purchase filters are applied to the extracted review rows. `includeDetails` adds product-page aggregates and context but does not overwrite review-specific variant text.

The Actor reads public review and product pages only. It does not sign in, call private endpoints, reuse protected sessions, or bypass CAPTCHA, login, paywall, geofence, WAF, or other access controls. `proxyConfiguration` changes the request route only.

### Output

The dataset contains one row per accepted public review. Optional information appears only when Flipkart publishes it; missing values are omitted rather than inferred. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always | Row discriminator; always `review`. |
| `recordId` | string | Always | Stable review identifier built from the product ID and review position. |
| `productId` | string | Always | Product identifier associated with the review. |
| `productUrl` | string | Always | Public product URL that produced the review, including any observed tracking parameters. |
| `productTitle` | string | Always | Product title shown on the review page. |
| `productPageUrl` | string | When details requested | Public product page URL used for detail context. |
| `reviewsPageUrl` | string | Always | Public review-list URL requested for the row. |
| `reviewId` | string | Always | Review reference derived from the product ID and page/position, or a bounded fallback ID. |
| `reviewerName` | string | When published | Reviewer display name when visible. |
| `reviewerLocation` | string | When published | Reviewer location text when visible. |
| `rating` | integer | When published | Individual review rating, 1–5, when parsed separately from the scale. |
| `ratingOutOf` | integer | Always | Rating scale maximum shown for the review, normally `5`. |
| `reviewTitle` | string | Always | Review headline as displayed. |
| `reviewText` | string | Always | Review body text as displayed; Flipkart may itself truncate long reviews. |
| `reviewDate` | string | Always | Review date parsed to an ISO date when possible. |
| `relativeDate` | string | Always | Original relative date text, such as `1 month ago`. |
| `verifiedPurchase` | boolean | Always | Whether the review is visibly marked Verified Purchase. |
| `certifiedBuyer` | boolean | Always | Whether the review is visibly marked Certified Buyer. |
| `helpfulText` | string | When published | Helpful-vote label or text when displayed. |
| `helpfulVotes` | integer | When published | Helpful vote count when exposed separately. |
| `unhelpfulVotes` | integer | When published | Unhelpful vote count when exposed separately. |
| `helpfulVotesTotal` | integer | When published | Combined helpful-vote total when the page exposes it. |
| `variantSummary` | string | When published | Reviewed variant summary, such as color, RAM, and storage. |
| `variantColor` | string | When published | Reviewed color parsed from the review block. |
| `variantRam` | string | When published | Reviewed RAM parsed from the review block. |
| `variantStorage` | string | When published | Reviewed storage parsed from the review block. |
| `reviewedVariant` | object | When published | Structured reviewed variant with summary, color, RAM, storage, and source. |
| `requestedVariant` | object | When details requested | Variant selected on the requested product page, kept separate from the reviewed variant. |
| `sellerContext` | object | When details requested | Seller name and rating observed on the product page. |
| `selectedVariant` | object | When details requested | Alias of the product page's selected variant object. |
| `overallRating` | number | When published | Product aggregate rating shown on the review page, 0–5. |
| `totalRatings` | integer | When published | Product total rating count. |
| `totalReviews` | integer | When published | Product total review count. |
| `ratingHistogram` | object | When published | Rating distribution keyed by star level. |
| `aspectRatings` | object | When published | Aspect-level rating summary when the page exposes one; empty otherwise. |
| `imageUrls` | string array | When media requested | Bounded product or review image URLs; empty when none are found. |
| `mediaLinks` | string array | When media requested | Bounded review-media links; empty when none are found. |
| `pageNumber` | integer | Always | One-based review page that produced the row. |
| `reviewPosition` | integer | Always | One-based position of the review on that page. |
| `scrapeMode` | string | Always | Input mode used for the row. |
| `searchQuery` | string | When search mode | Search phrase used in `search` mode. |
| `source` | string | Always | Source label, `Flipkart public product reviews page`. |
| `sourcePageUrl` | string | Always | Review page URL used as the row's source page. |
| `sourceUrl` | string | Always | Exact public URL requested for the row. |
| `sourceWebsite` | string | Always | Public Flipkart host recorded for the run. |
| `sourceDetailUrl` | string | When details requested | Public product page URL used for detail context. |
| `sourceMetadata` | object | Always | Page type, transport, extraction method, and variant-source evidence. |
| `rawPublic` | object | When raw requested | Bounded visible review text, leaf texts, media links, and reviewed-variant evidence. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `url` | string | When published | URL associated with the row, normally the review page URL. |

The example below is the saved row from the 2026-10-25 run, limited to core review, aggregate, and trace fields. Every value is unchanged. In this row `reviewsPageUrl`, `sourcePageUrl`, and `sourceUrl` carry the same review-list URL.

```json
{
  "recordType": "review",
  "recordId": "review:MOBHPP597GB8ZHTY:MOBHPP597GB8ZHTY-p1-r1",
  "productId": "MOBHPP597GB8ZHTY",
  "productUrl": "https://www.flipkart.com/boltt-evo-midnight-black-64-gb/p/itmf046d663a1fd7?pid=MOBHPP597GB8ZHTY&lid=LSTMOBHPP597GB8ZHTYGYX70A&marketplace=FLIPKART&q=smartphone&store=tyy%2F4io&srno=s_1_1&otracker=search&fm=organic&iid=en_IMqByZQkozT-2QU1Qjk9X-TJn6HHxGDH___T2PbN1l0q4NYCdJk6sJqO_p9XSK52mufLsD40cfOytTrT-2ACNhWJDjhmCx0zB4BxxV8ceX6rvDWdCZvozKWqgC30K5F_&ppt=None&ppn=None&ssid=z4mgl9auts0000001792962979487&qH=1036ba3c4ed2c021&ov_redirect=true",
  "productTitle": "BOLTT EVO (Midnight Black, 64 GB)",
  "reviewsPageUrl": "https://www.flipkart.com/boltt-evo-midnight-black-64-gb/product-reviews/itmf046d663a1fd7?pid=MOBHPP597GB8ZHTY&lid=LSTMOBHPP597GB8ZHTYGYX70A&marketplace=FLIPKART&q=smartphone&store=tyy%2F4io&srno=s_1_1&otracker=search&fm=organic&iid=en_IMqByZQkozT-2QU1Qjk9X-TJn6HHxGDH___T2PbN1l0q4NYCdJk6sJqO_p9XSK52mufLsD40cfOytTrT-2ACNhWJDjhmCx0zB4BxxV8ceX6rvDWdCZvozKWqgC30K5F_&ppt=None&ppn=None&ssid=z4mgl9auts0000001792962979487&qH=1036ba3c4ed2c021&ov_redirect=true",
  "reviewId": "MOBHPP597GB8ZHTY-p1-r1",
  "reviewerName": "abhishek Yadav",
  "reviewerLocation": "New Delhi",
  "ratingOutOf": 5,
  "reviewTitle": "Brilliant",
  "reviewText": "Excellent build quality with a modern, stylish design that offers a comfortable grip. The large 6.79 inch display with 120Hz refresh rate makes scrolling super fluid. Daily performance is very snappy,...",
  "reviewDate": "2026-09-25",
  "relativeDate": "1 month ago",
  "verifiedPurchase": true,
  "certifiedBuyer": true,
  "variantSummary": "Color Midnight Black • RAM 4 GB • Storage 64 GB",
  "variantColor": "Black",
  "variantRam": "4 GB",
  "variantStorage": "64 GB",
  "reviewedVariant": {
    "summary": "Color Midnight Black • RAM 4 GB • Storage 64 GB",
    "color": "Black",
    "ram": "4 GB",
    "storage": "64 GB",
    "source": "review block"
  },
  "overallRating": 4.1,
  "totalRatings": 4923,
  "totalReviews": 1612,
  "ratingHistogram": {
    "1": 521,
    "2": 197,
    "3": 416,
    "4": 1036,
    "5": 2753
  },
  "aspectRatings": {},
  "imageUrls": [],
  "mediaLinks": [],
  "pageNumber": 1,
  "reviewPosition": 1,
  "scrapeMode": "search",
  "searchQuery": "smartphone",
  "source": "Flipkart public product reviews page",
  "sourcePageUrl": "https://www.flipkart.com/boltt-evo-midnight-black-64-gb/product-reviews/itmf046d663a1fd7?pid=MOBHPP597GB8ZHTY&lid=LSTMOBHPP597GB8ZHTYGYX70A&marketplace=FLIPKART&q=smartphone&store=tyy%2F4io&srno=s_1_1&otracker=search&fm=organic&iid=en_IMqByZQkozT-2QU1Qjk9X-TJn6HHxGDH___T2PbN1l0q4NYCdJk6sJqO_p9XSK52mufLsD40cfOytTrT-2ACNhWJDjhmCx0zB4BxxV8ceX6rvDWdCZvozKWqgC30K5F_&ppt=None&ppn=None&ssid=z4mgl9auts0000001792962979487&qH=1036ba3c4ed2c021&ov_redirect=true",
  "sourceUrl": "https://www.flipkart.com/boltt-evo-midnight-black-64-gb/product-reviews/itmf046d663a1fd7?pid=MOBHPP597GB8ZHTY&lid=LSTMOBHPP597GB8ZHTYGYX70A&marketplace=FLIPKART&q=smartphone&store=tyy%2F4io&srno=s_1_1&otracker=search&fm=organic&iid=en_IMqByZQkozT-2QU1Qjk9X-TJn6HHxGDH___T2PbN1l0q4NYCdJk6sJqO_p9XSK52mufLsD40cfOytTrT-2ACNhWJDjhmCx0zB4BxxV8ceX6rvDWdCZvozKWqgC30K5F_&ppt=None&ppn=None&ssid=z4mgl9auts0000001792962979487&qH=1036ba3c4ed2c021&ov_redirect=true",
  "sourceWebsite": "https://www.flipkart.com/",
  "sourceMetadata": {
    "site": "flipkart.com",
    "pageType": "product-review-list",
    "publicOnly": true,
    "transport": "public-html-fetch",
    "extraction": "public-html-dom",
    "variantSources": {
      "reviewedVariant": "review block"
    }
  },
  "scrapedAt": "2026-10-25T21:16:22.101Z"
}
```

Nested values:

- `reviewedVariant` contains `summary`, `color`, `ram`, `storage`, and `source`. The review block is authoritative for reviewed-variant fields.
- `requestedVariant` and `selectedVariant` describe the product page's selected variant. They are kept separate so a product-page default does not overwrite the reviewed variant.
- `sellerContext` contains the product page's seller name and rating when available.
- `ratingHistogram` uses star levels `1` through `5` as keys and rating counts as values.
- `aspectRatings` maps aspect names to their observed rating values when the page exposes them; it can be empty.
- `sourceMetadata` contains `site`, `pageType`, `publicOnly`, `transport`, `extraction`, and `variantSources`.
- `rawPublic` contains the bounded visible review text, leaf-text lines, review media links, and reviewed-variant evidence. It is present only when `includeRaw` is on.
- `rating` is the individual review rating when available; `ratingOutOf` is the scale maximum. `helpfulVotes` and `unhelpfulVotes` are separate counts when exposed, while `helpfulVotesTotal` is the combined total.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved reviews: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `dataAvailable` | Whether source-backed review data was saved. |
| `recordsPushed` | Number of review rows pushed to the dataset. |
| `sourceWebsite` | Public source website used for the run. |
| `itemCount` | Number of review rows saved; matches `recordsPushed`. |
| `diagnosticCount` | Number of operational issues recorded for the run. |
| `failureCount` | Number of extraction failures recorded for the run. |
| `barrierDetected` | Whether an access barrier was observed. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Reviews were saved without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some reviews were saved, but a later product or review page failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The source completed cleanly and returned no matching reviews. |
| `FAILED` | `FAILED` | A fatal error occurred before any review row was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "dataAvailable": true,
  "recordsPushed": 1,
  "sourceWebsite": "https://www.flipkart.com/",
  "itemCount": 1,
  "diagnosticCount": 0,
  "failureCount": 0,
  "barrierDetected": false,
  "completedAt": "2026-10-25T21:16:22.254Z"
}
```

The saved run used a one-review search input with product details off and review pagination disabled, which is why the row has no `requestedVariant`, `sellerContext`, or `productPageUrl`. The default input above matches that small-run shape.

### Coverage and limitations

The Actor reads public Flipkart review lists and optional product pages. It does not sign in, use private APIs, reuse protected sessions, or bypass CAPTCHA, login, paywall, geofence, WAF, or other access controls. In `search` mode it resolves at most `maxProducts` product links from the query; in `productUrl` mode it reads the supplied product URLs. Review pagination is bounded by `startPage` and `maxPages`, and traversal also stops when a page has fewer than ten review blocks.

Review text, dates, votes, verification labels, variants, ratings, histograms, and media are point-in-time values and can change after the run. Flipkart can truncate review text in the visible page, so the saved text can end with an ellipsis exactly as displayed. Relative dates are converted when possible; unparseable dates are excluded only when `dateFilter` is enabled. Some reviews are anonymous or omit location, variant, or helpful-vote data, so those fields may be absent. Product-page context is omitted when `includeDetails` is off. Raw public excerpts are bounded by `maxRawTextLength` and are never executed. A blocked, empty, or partial response is reported in `OUTPUT_SUMMARY` rather than written as a fabricated row. Review data is public but can contain personal information; use it lawfully.

### Usage and support

Cost grows with search pages, resolved products, review pages, `maxItems`, concurrency, pacing, retries, and browser time. Start with one review and pagination off, inspect the dataset and `OUTPUT_SUMMARY`, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/flipkart-reviews-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by Flipkart. Use it only for public data and in accordance with Flipkart's terms, robots guidance, and applicable law. Public reviews can contain personal information; do not use the output for unauthorized profiling or contact.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/flipkart-reviews-scraper/changelog.md

# Actor input Schema

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

Use productUrl for one or more public product URLs, or search for a public Flipkart search query.

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

HTTPS Flipkart product URLs. Only public pages on flipkart.com are accepted.

## `query` (type: `string`):

Public Flipkart search text used when mode is search.

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

Backward-compatible alias for query. query takes precedence when both are supplied.

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

Maximum number of review records emitted across the whole run. Diagnostics do not consume this review-item limit.

## `maxReviewsPerProduct` (type: `integer`):

Maximum accepted review records collected for each product before moving to the next product.

## `maxReviews` (type: `integer`):

Backward-compatible alias used when maxItems or maxReviewsPerProduct is omitted.

## `maxProducts` (type: `integer`):

Maximum distinct public product links resolved from a search query.

## `pagination` (type: `object`):

Controls review-page traversal. The Actor stops early when a page contains fewer than ten public review blocks.

## `ratingFilter` (type: `object`):

Optional rating filter. Use enabled with min/max or an explicit values list.

## `dateFilter` (type: `object`):

Optional date filter. Relative public dates are converted to bounded ISO dates when possible; unparseable dates are excluded when enabled.

## `verifiedPurchaseOnly` (type: `boolean`):

Only emit reviews visibly marked Verified Purchase or Certified Buyer.

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

Open the public product detail page to collect seller, aggregate, variant, aspect, and product-context fields.

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

Collect bounded public image URLs and review-media links observed in the product and review DOM.

## `includeRaw` (type: `boolean`):

Include bounded visible-DOM excerpts and leaf text objects for auditability. Raw content is never executed.

## `includeReviewerIdentity` (type: `boolean`):

Reviewer names and cities are public but personal data. Keep disabled to pseudonymize them in the dataset; enable only when identity is required and permitted.

## `maxRawTextLength` (type: `integer`):

Maximum characters retained in each bounded raw public text excerpt.

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

Maximum number of independent public product browser sessions.

## `pacing` (type: `object`):

Randomized bounded delay between paginated public review requests and retries.

## `maxRetries` (type: `integer`):

Number of retries after a transient navigation or extraction failure. Access barriers fail closed immediately.

## `timeouts` (type: `object`):

Bounded public navigation, selector, and render wait limits.

## `headless` (type: `boolean`):

Run Puppeteer without a visible browser window. Set false only in a runtime with a display.

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

Apify Proxy settings honored only when the runtime exposes Actor.createProxyConfiguration. No custom or private proxy endpoints are accepted.

## Actor input object example

```json
{
  "mode": "productUrl",
  "productUrls": [
    "https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"
  ],
  "query": "iphone 15",
  "maxItems": 50,
  "maxReviewsPerProduct": 50,
  "maxProducts": 3,
  "verifiedPurchaseOnly": false,
  "includeDetails": true,
  "includeMedia": true,
  "includeRaw": true,
  "includeReviewerIdentity": false,
  "maxRawTextLength": 2000,
  "maxConcurrency": 2,
  "maxRetries": 2,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Source-backed public Flipkart review rows.

## `runSummary` (type: `string`):

Canonical run status, data status, and numeric summary counts.

# 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": "productUrl",
    "productUrls": [
        "https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"
    ],
    "query": "iphone 15",
    "maxItems": 50,
    "maxReviewsPerProduct": 50,
    "maxProducts": 3,
    "maxConcurrency": 2,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/flipkart-reviews-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": "productUrl",
    "productUrls": ["https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"],
    "query": "iphone 15",
    "maxItems": 50,
    "maxReviewsPerProduct": 50,
    "maxProducts": 3,
    "maxConcurrency": 2,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/flipkart-reviews-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": "productUrl",
  "productUrls": [
    "https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"
  ],
  "query": "iphone 15",
  "maxItems": 50,
  "maxReviewsPerProduct": 50,
  "maxProducts": 3,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call w3crawler/flipkart-reviews-scraper --silent --output-dataset

```

## MCP server setup

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