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

Public-only Flipkart product and listing scraper with bounded pagination, detail enrichment, media and ratings controls, and fail-closed access diagnostics.

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

## Pricing

from $2.99 / 1,000 products

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

Collect public Flipkart product records from a search query, a search-results URL, a category URL, or one or more direct product URLs. Each saved row can include product identity, pricing and discounts, availability, ratings and review excerpts, images, highlights, specifications, seller and delivery details, offers, variants, and bounded public provenance when the selected mode and page expose them.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/flipkart-product-scraper) and select **Try for free**, or open the **Input** tab.
2. Choose a `mode`: `search` for a query, `searchUrl` for a public search-results URL, `categoryUrl` for a public category URL, or `productUrl` for direct product URLs.
3. Supply the matching target and keep `maxItems` at `1` and `maxPages` at `1` for the first run. Leave `deepSearch` off until you need seller, delivery, offer, variant, or specification fields.
4. Start the Actor, open the dataset, and export rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to see the saved count, pages processed, and detail results.

### Input

All fields are optional, and the defaults below are ready to use. Only the target that matches `mode` is read. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `mode` | string enum | Optional | `search` | Target type: a search query, a direct product URL, a public search-results URL, or a public category URL. Allowed values: `search`, `productUrl`, `searchUrl`, `categoryUrl`. |
| `searchQuery` | string | Optional | Not supplied | Public Flipkart search term used in `search` mode, 1–200 characters. |
| `productUrl` | string | Optional | Not supplied | Public HTTPS Flipkart product URL used in `productUrl` mode. It is merged with `productUrls` and deduplicated. |
| `productUrls` | string array | Optional | Not supplied | Additional public Flipkart product URLs used in `productUrl` mode, up to 100 entries. The single `productUrl` is placed first. |
| `startUrls` | object array | Optional | Not supplied | Public Flipkart URL aliases, up to 20 entries of `{ "url": "..." }`. When `mode` is omitted, a product, category, or search URL here can set the inferred mode. In `searchUrl` mode, supplied entries replace the single `searchUrl`. |
| `searchUrl` | string | Optional | Not supplied | Public HTTPS Flipkart search-results URL used in `searchUrl` mode when `startUrls` is empty. |
| `categoryUrl` | string | Optional | Not supplied | Public HTTPS Flipkart category URL used in `categoryUrl` mode. |
| `maxItems` | integer | Optional | `50` | Maximum product rows saved, from 1 to 500. In `productUrl` mode it also caps the direct URLs submitted. |
| `startPage` | integer | Optional | `1` | One-based listing page to start from in `search`, `searchUrl`, and `categoryUrl` modes, 1–100. |
| `maxPages` | integer | Optional | `5` | Maximum listing pages inspected, including the starting page, from 1 to 20. |
| `sortBy` | string enum | Optional | `relevance` | Listing order: `relevance`, `popularity`, `price_asc`, `price_desc`, or `recency_desc`. |
| `minPrice` | integer | Optional | Not supplied | Minimum public price in INR, zero or greater. Applied to search results. |
| `maxPrice` | integer | Optional | Not supplied | Maximum public price in INR, zero or greater. Applied to search results. |
| `minRating` | number | Optional | `0` | Minimum observed rating, 0–5. Use `0` to disable the filter. |
| `flipkartAssured` | boolean | Optional | `false` | Keep only listing results marked Flipkart Assured. |
| `deepSearch` | boolean | Optional | `true` | Open each product page for seller, delivery, offers, variants, specifications, and other rendered detail sections. |
| `includeMedia` | boolean | Optional | `true` | Keep public product image URLs and image counts. |
| `includeRatings` | boolean | Optional | `true` | Keep public aggregate ratings and bounded review excerpts. |
| `includeRawPublic` | boolean | Optional | `true` | Keep bounded public JSON-LD and listing objects in `rawPublic`. HTML, cookies, and private session data are never included. |
| `maxConcurrency` | integer | Optional | `3` | Maximum public browser pages processed in parallel, 1–10. |
| `requestDelayMs` | integer | Optional | `500` | Minimum pacing delay before each public page request, 0–10,000 ms. |
| `maxRequestRetries` | integer | Optional | `2` | Retries for navigation or extraction failures, 0–5. Access barriers are not bypassed. |
| `navigationTimeoutSecs` | integer | Optional | `45` | Maximum time for one public page navigation, 10–120 seconds. |
| `requestHandlerTimeoutSecs` | integer | Optional | `180` | Maximum time for extraction on one public page, 30–300 seconds. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional standard Apify Proxy settings. They are honored only when the runtime exposes proxy credentials and change the route only. |

Default input:

```json
{
  "mode": "search",
  "searchQuery": "smartphone",
  "maxItems": 1,
  "startPage": 1,
  "maxPages": 1,
  "deepSearch": false,
  "includeMedia": false,
  "includeRatings": false,
  "includeRawPublic": false,
  "maxConcurrency": 1,
  "requestDelayMs": 0,
  "maxRequestRetries": 0,
  "navigationTimeoutSecs": 45,
  "requestHandlerTimeoutSecs": 120,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

This is the stored example input, sized for a small first run. The schema defaults are larger: `maxItems` 50, `maxPages` 5, `deepSearch`, `includeMedia`, `includeRatings`, and `includeRawPublic` on, concurrency 3, a 500 ms delay, 2 retries, and timeouts of 45 and 180 seconds.

`search` builds a public search URL from `searchQuery`. `searchUrl` uses `startUrls` when supplied, otherwise the single `searchUrl`, and applies `startPage`. `categoryUrl` uses the supplied public category URL. `productUrl` merges the single `productUrl` with `productUrls`, deduplicates by URL, and submits up to `maxItems` direct pages. Filters are applied to the observed public values; price filters are intended for search listings. The Actor reads rendered public HTML and public JSON-LD only. It does not sign in, call private endpoints, reuse cookies, or solve CAPTCHA or other access controls. `proxyConfiguration` is a transport option, not a bypass.

### Output

The dataset contains one row per unique saved product. 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 `Flipkart product`. |
| `recordId` | string | Always | Stable row identifier built from the product PID. |
| `sourceWebsite` | string | Always | Public Flipkart host recorded for the run. |
| `searchPosition` | integer | When published | One-based position of the product in the search or listing result set. |
| `productId` | string | Always | Flipkart item path identifier from the `/p/` segment of the product URL. |
| `fsn` | string | Always | Item identifier exposed in the product URL; usually the same value as `productId`. |
| `pid` | string | Always | Product variant identifier from the `pid` query parameter. |
| `sku` | string | When published | SKU declared by Product JSON-LD. |
| `productSlug` | string | Always | Readable slug from the canonical product URL. |
| `productTitle` | string | Always | Product title as displayed by Flipkart. |
| `title` | string | Always | Compatibility alias for `productTitle`. |
| `url` | string | Always | Product URL retaining the observed PID. |
| `canonicalUrl` | string | Always | Product URL without tracking or session parameters. |
| `brand` | string | When published | Brand shown on the page or declared in structured data. |
| `color` | string | When published | Product color disclosed by the page. |
| `selectedColor` | string | When published | Color currently selected in the variant selector. |
| `selectedVariant` | string | When published | Variant label currently selected. |
| `variantOptions` | string array | When published | Bounded variant labels or option values visible on the page. |
| `category` | string | When published | Product category observed on the page. |
| `listingCategory` | string | When published | Category context of the listing that produced the row. |
| `categoryPath` | string | When published | Breadcrumb labels joined in source order. |
| `breadcrumb` | string array | When published | Breadcrumb labels exactly as displayed. |
| `productDescription` | string | When published | Public product description text. |
| `description` | string | When published | Compatibility alias for `productDescription`. |
| `priceAmount` | number | When published | Current selling price as a number. |
| `price` | string | When published | Current selling price formatted for display. |
| `originalPriceAmount` | number | When published | Original or MRP price as a number. |
| `originalPrice` | string | When published | Original or MRP price formatted for display. |
| `savingsAmount` | number | When published | Difference between the observed original and current price. |
| `discountPercent` | integer | When published | Explicit discount percentage, 0–100. |
| `discount` | string | When published | Discount label as displayed. |
| `currency` | string | When published | Currency of the observed prices. |
| `buyAtPrice` | number | When published | Price shown in the buy area when it differs from the listing price. |
| `protectPromiseFee` | number | When published | Flipkart Protect Promise fee when the page displays one. |
| `emiText` | string | When published | EMI starting text shown on the page. |
| `availability` | string | When published | Availability label from visible text. |
| `availabilityUrl` | string | When published | Schema.org availability URL when present. |
| `availabilitySource` | string | When published | Evidence source used for the availability label. |
| `availabilityConflict` | boolean | When published | True when visible availability and structured availability disagree. |
| `inStock` | boolean | When published | Explicit stock boolean; omitted when the evidence is inconclusive. |
| `condition` | string | When published | Item condition label, such as `NewCondition`. |
| `itemConditionUrl` | string | When published | Schema.org item-condition URL when present. |
| `isPreOrder` | boolean | When published | True only when Flipkart explicitly marks the product pre-order or coming soon. |
| `isFlipkartAssured` | boolean | When published | Whether the product displays the Flipkart Assured mark. |
| `isSponsored` | boolean | When published | Whether the listing card is marked sponsored. |
| `codAvailable` | boolean | When published | Whether cash on delivery is offered for the page context. |
| `noCostEmiAvailable` | boolean | When published | Whether a no-cost EMI option is displayed. |
| `badges` | string array | When published | Bounded listing or product badges. |
| `rating` | number | When published | Aggregate product rating, 0–5. |
| `ratingCount` | integer | When published | Rating count as parsed from the page label. |
| `ratingsCount` | integer | When published | Aggregate rating count; may repeat `ratingCount`. |
| `reviewCount` | integer | When published | Review count as parsed from the page label. |
| `reviewsCount` | integer | When published | Aggregate written-review count; may repeat `reviewCount`. |
| `ratingSummary` | string | When published | Short text summary derived from the observed rating and counts. |
| `reviews` | object array | When published | Bounded public review excerpts from Product JSON-LD. |
| `extractedReviewCount` | integer | When published | Number of review excerpts retained. |
| `imageUrl` | string | When published | Image URL parsed from the listing or gallery. |
| `primaryImage` | string | When published | First public product image URL. |
| `thumbnail` | string | When published | Listing thumbnail URL. |
| `images` | string array | When published | Bounded public product image URLs. |
| `imageCount` | integer | When published | Number of image URLs retained. |
| `mediaIncluded` | boolean | When requested | Whether media extraction was requested for the run. |
| `highlights` | string array | When published | Bounded product highlight bullets. |
| `highlightCount` | integer | When published | Number of highlight bullets retained. |
| `specifications` | object array | When published | Specification entries observed on the product page. |
| `specificationMap` | object | When published | Flat label/value map of specifications. |
| `specificationGroups` | object | When published | Specifications grouped by source section. |
| `specificationCount` | integer | When published | Number of specification entries retained. |
| `modelNumber` | string | When published | Model-number specification. |
| `modelName` | string | When published | Model-name specification. |
| `warranty` | string | When published | Warranty specification. |
| `seller` | string | When published | Seller name shown on the product page. |
| `sellerRating` | number | When published | Public seller rating, 0–5. |
| `delivery` | string | When published | Primary delivery message. |
| `deliveryInfo` | string | When published | Additional delivery text observed on the page. |
| `shippingCost` | number | When published | Shipping cost from the primary offer. |
| `shippingCurrency` | string | When published | Currency of the shipping cost. |
| `shippingCountry` | string | When published | Destination country in the shipping details. |
| `returnPolicy` | string | When published | Return-policy text from the primary offer. |
| `returnPolicyUrl` | string | When published | Public return-policy URL. |
| `bankOffers` | string array | When published | Bank-offer messages displayed on the page. |
| `bankOffer` | string | When published | Single featured bank-offer message, when one is isolated. |
| `exchangeOffers` | string array | When published | Exchange-offer messages displayed on the page. |
| `exchangeOffer` | string | When published | Single featured exchange-offer message. |
| `offers` | object array | When published | Structured offer objects from Product JSON-LD or the page. |
| `offerCount` | integer | When published | Number of offers retained. |
| `source` | string | Always | Normalized source name, normally `Flipkart`. |
| `scrapeMode` | string | Always | Input mode used for the row. |
| `searchQuery` | string | When search mode | Search phrase used in `search` mode. |
| `sortBy` | string | Always | Requested or applied listing order. |
| `detailsRequested` | boolean | Always | Whether product-detail enrichment was requested. |
| `detailsIncluded` | boolean | Always | Whether detail enrichment succeeded for this row. |
| `detailEnriched` | boolean | Always | Explicit detail-enrichment success flag. |
| `detailStatus` | string | Always | Detail outcome: `success`, `not_requested`, or `fallback`. |
| `detailErrorCode` | string | Fallback rows | Machine-readable reason detail enrichment failed, for example `RATE_LIMITED` after an HTTP 429. |
| `detailError` | string | Fallback rows | Short human-readable detail failure reason; the base listing row is kept and no detail data is fabricated. |
| `listingPageUrl` | string | When published | Listing or search page that produced the product, when applicable. |
| `sourcePageUrl` | string | Always | Product page used for the record. |
| `provenance` | object | Always | Bounded extraction context: page type, requested URLs, mode, toggles, and observation time. |
| `rawPublic` | object | When requested | Bounded public JSON-LD or listing objects when `includeRawPublic` is on. Never contains HTML or private session data. |
| `ratingsIncluded` | boolean | Always | Whether rating extraction was requested for the run. |
| `extractionMethod` | string | Always | Extraction path used, such as `listing-card` or a detail-page path. |
| `requestedUrl` | string | Always | Input or source URL that selected this product. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `pageNumber` | integer | When published | Listing page number that produced the row. |
| `mode` | string | When published | Input mode recorded in the product row, when the extractor writes it. |

The example below is the first saved row from the 2026-10-25 run, limited to core and provenance fields. Every value is unchanged.

```json
{
  "recordType": "Flipkart product",
  "recordId": "flipkart-product:MOBHPP598ENKRGBY",
  "sourceWebsite": "https://www.flipkart.com/",
  "searchPosition": 19,
  "productId": "itmf046d663a1fd7",
  "fsn": "itmf046d663a1fd7",
  "pid": "MOBHPP598ENKRGBY",
  "productSlug": "boltt-evo-berry-red-64-gb",
  "productTitle": "BOLTT EVO (Berry Red, 64 GB)",
  "title": "BOLTT EVO (Berry Red, 64 GB)",
  "url": "https://www.flipkart.com/boltt-evo-berry-red-64-gb/p/itmf046d663a1fd7?pid=MOBHPP598ENKRGBY",
  "canonicalUrl": "https://www.flipkart.com/boltt-evo-berry-red-64-gb/p/itmf046d663a1fd7",
  "listingCategory": "Flipkart search results",
  "priceAmount": 9999,
  "price": "₹9,999",
  "originalPriceAmount": 17999,
  "originalPrice": "₹17,999",
  "savingsAmount": 8000,
  "discountPercent": 44,
  "discount": "44% off",
  "availabilityConflict": false,
  "isPreOrder": false,
  "source": "Flipkart",
  "scrapeMode": "search",
  "searchQuery": "smartphone",
  "sortBy": "relevance",
  "detailsRequested": false,
  "detailsIncluded": false,
  "detailEnriched": false,
  "detailStatus": "not_requested",
  "listingPageUrl": "https://www.flipkart.com/search?q=smartphone",
  "sourcePageUrl": "https://www.flipkart.com/boltt-evo-berry-red-64-gb/p/itmf046d663a1fd7?pid=MOBHPP598ENKRGBY",
  "provenance": {
    "site": "Flipkart",
    "publicOnly": true,
    "pageType": "listing",
    "extraction": "rendered listing card plus ItemList JSON-LD",
    "requestedUrl": "https://www.flipkart.com/search?q=smartphone",
    "sourcePageUrl": "https://www.flipkart.com/boltt-evo-berry-red-64-gb/p/itmf046d663a1fd7?pid=MOBHPP598ENKRGBY",
    "listingPageUrl": "https://www.flipkart.com/search?q=smartphone",
    "inputMode": "search",
    "searchQuery": "smartphone",
    "sortBy": "relevance",
    "includeDetails": false,
    "includeMedia": false,
    "includeRatings": false,
    "observedAt": "2026-10-25T20:48:37.588Z"
  },
  "ratingsIncluded": false,
  "extractionMethod": "listing-card",
  "requestedUrl": "https://www.flipkart.com/search?q=smartphone",
  "scrapedAt": "2026-10-25T20:48:37.588Z"
}
```

Nested values and aliases:

- `provenance` records the extraction context, including `site`, `publicOnly`, `pageType`, `extraction`, the requested and listing URLs, the input mode, the search phrase and sort, the include flags, and `observedAt`.
- `rawPublic` holds bounded public JSON-LD or listing objects. Its shape follows the page and is not a fixed contract.
- `specifications` is an array of specification entries; `specificationMap` flattens them to label/value pairs, and `specificationGroups` keeps them grouped by section.
- `reviews` entries are bounded excerpts; reviewer names are not collected. `offers` entries follow the offer shape exposed by the page or JSON-LD.
- `title`, `description`, `fsn`, `ratingCount`/`ratingsCount`, and `reviewCount`/`reviewsCount` are compatibility aliases or duplicate views of the same observation. They are not independent measurements.

### Run summary

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

| Field | Meaning |
| --- | --- |
| `recordType` | Summary discriminator, `Flipkart run summary`. |
| `recordId` | Stable summary identifier, `flipkart-run-summary`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `found` | True when at least one normal product row was saved. |
| `dataAvailable` | Whether source-backed product data was saved. |
| `sourceWebsite` | Public source website used for the run. |
| `source` | Normalized source name, normally `Flipkart`. |
| `generatedBy` | Tool and model recorded in the summary. |
| `scrapedAt` | Time the summary was written, in ISO UTC. |
| `itemCount` | Number of product rows saved. |
| `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. |
| `startUrlCount` | Number of listing or direct product inputs. |
| `pagesProcessed` | Listing pages successfully inspected. |
| `listingRecordsObserved` | Raw listing records seen before filtering or detail visits. |
| `duplicateCount` | Duplicate products skipped. |
| `detailRequested` | Product-detail requests scheduled. |
| `detailSucceeded` | Detail requests that enriched a row. |
| `detailFailed` | Detail requests that failed or were blocked. |
| `fallbackCount` | Base listing rows retained after a detail failure. |
| `mode` | Input mode used for the run. |
| `sortBy` | Requested or applied listing order. |
| `maxItems` | Product-row limit used for the run. |
| `maxPages` | Listing-page limit used for the run. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Products were saved without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some products were saved, but a later request or detail failure prevented a complete run. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The source completed cleanly and returned no matching products. |
| `FAILED` | `FAILED` | A fatal error occurred before any product row was saved. |

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

```json
{
  "recordType": "Flipkart run summary",
  "recordId": "flipkart-run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "found": true,
  "dataAvailable": true,
  "sourceWebsite": "https://www.flipkart.com/",
  "source": "Flipkart",
  "generatedBy": "OpenAI Codex (GPT-5)",
  "scrapedAt": "2026-10-25T20:48:38.094Z",
  "itemCount": 3,
  "diagnosticCount": 0,
  "failureCount": 0,
  "barrierDetected": false,
  "startUrlCount": 1,
  "pagesProcessed": 1,
  "listingRecordsObserved": 3,
  "duplicateCount": 0,
  "detailRequested": 0,
  "detailSucceeded": 0,
  "detailFailed": 0,
  "fallbackCount": 0,
  "mode": "search",
  "sortBy": "relevance",
  "maxItems": 3,
  "maxPages": 1
}
```

The saved run used a three-item search input with details, media, ratings, and raw-public objects disabled; the default input above is a one-item example with the same toggles off.

### Coverage and limitations

The Actor reads public Flipkart search, category, listing, and product pages. It does not sign in, use private endpoints, reuse protected sessions, or bypass CAPTCHA, WAF, geofence, paywall, or other access controls. Search and category pagination are bounded by `startPage` and `maxPages`; `searchUrl` aliases are limited to the first ten URLs. Direct product mode visits up to `maxItems` URLs and does not follow a listing.

Prices, discounts, availability, sellers, delivery estimates, offers, ratings, and page modules are point-in-time values and can change after the run. Some fields depend on the category and page variant: a successful parse does not guarantee reviews, specifications, variants, or seller modules. Optional fields are omitted when Flipkart does not publish them. A blocked, empty, or partial response is recorded in `OUTPUT` rather than written as a fabricated row. A detail failure after a listing row is saved keeps the base row and reports `detailStatus: "fallback"`. `includeRawPublic` keeps only bounded public objects; HTML, cookies, and private session data are never stored. Proxy routing changes the request route only and does not bypass access controls.

### Usage and support

Cost grows with browser pages, listing pagination, direct product URLs, detail visits, retries, concurrency, and the size of media, review, and specification arrays. Start with one item and one page, inspect the dataset and `OUTPUT`, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/flipkart-product-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 pages can contain personal information; use the output only for lawful purposes.

# Changelog

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

# 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.

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

Optional list of public Flipkart product URLs. Used in productUrl mode.

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

Compatibility alias for public Flipkart search, category, or product URLs. The mode is inferred when omitted.

## `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
  }
}
```

# Actor output Schema

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

Source-backed public Flipkart product 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": "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("w3crawler/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("w3crawler/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 w3crawler/flipkart-product-scraper --silent --output-dataset

```

## MCP server setup

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