# Flipkart Best Sellers Scraper (`w3crawler/flipkart-bestsellers-scraper`) Actor

Scrape rich Flipkart bestseller and product data including prices, ratings, reviews, images, fulfillment, returns, highlights, and grouped specifications.

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

## Pricing

from $2.99 / 1,000 best sellers

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 Best Sellers Scraper

Collect public bestseller and listing records from Flipkart category pages, category URLs, search results, or direct product URLs. Each saved row keeps the product's public identity and URL, displayed price and MRP, discount, rating and review counts, badges, highlights, availability evidence, and — when detail enrichment is enabled — seller, delivery, offers, specifications, variants, images, and return-policy fields.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/flipkart-bestsellers-scraper) and select **Try for free**, or open the **Input** tab.
2. Choose a `mode` and fill its matching target: `category` for a built-in category slug, `categoryUrl` for one public listing URL, `search` for a query, `startUrls` for mixed public listing/product URLs, or `productUrl` for a list of product URLs.
3. Keep `maxItems` at `1` and `maxPages` at `1` for the first run, and leave `includeDetails` off until you need seller, delivery, or specification fields.
4. Start the Actor, open the dataset, and export rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to see how many products were saved and whether the result is complete or partial.

### Input

All fields are optional, and the defaults below are ready to use. `mode` is exclusive: only the target that matches the selected 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 | `category` | Target type: built-in category slug, one public category or bestseller URL, a search query, a list of start URLs, or a list of product URLs. Allowed values: `category`, `categoryUrl`, `search`, `startUrls`, `productUrl`. |
| `category` | string | Optional | `mobiles` | Category slug used only in `category` mode, for example `mobiles`, `laptops`, `books`, or `fashion`. Unknown slugs are tried as `<slug>/pr`. |
| `query` | string | Optional | `""` | Public Flipkart search text used only in `search` mode, up to 200 characters. Leave empty unless you select `search`. |
| `categoryUrl` | string | Optional | `""` | One public HTTPS Flipkart category or bestseller URL used only in `categoryUrl` mode. |
| `productUrls` | string array | Optional | `[]` | Public HTTPS Flipkart product-page URLs used only in `productUrl` mode, up to 100 entries. Each entry becomes a direct product input. |
| `startUrls` | object array | Optional | `[]` | Public HTTPS Flipkart listing, search, or product URLs used only in `startUrls` mode, up to 100 entries. Each entry is `{ "url": "..." }`. Product URLs are direct inputs; other URLs become paginated listing sources. |
| `maxItems` | integer | Optional | `48` | Maximum product rows saved across all pages, from 1 to 500. |
| `pageStart` | integer | Optional | `1` | One-based listing page to start from, from 1 to 100. Applies to listing modes, not direct product URLs. |
| `maxPages` | integer | Optional | `3` | Maximum public listing pages followed per listing source, from 1 to 20. Pagination stops on a repeated URL, a missing next link, or a page that yields no new products. |
| `sortBy` | string enum | Optional | `popularity` | Requested listing order: `popularity`, `rating`, `price_asc`, `price_desc`, or `newest`. Rating order is applied locally from observed ratings. |
| `filters` | object | Optional | `{}` | Optional post-extraction filters applied to listing records before detail visits. See the nested keys below. |
| `includeDetails` | boolean | Optional | `true` | Open each matching product page to add JSON-LD, seller, delivery, offers, variants, specifications, and return-policy fields. |
| `deepSearch` | boolean | Optional | `true` | Backward-compatible alias for `includeDetails`. When both are supplied, `includeDetails` wins. |
| `includeMedia` | boolean | Optional | `true` | Keep public image URLs and the listing thumbnail. |
| `includeRatings` | boolean | Optional | `true` | Keep public aggregate ratings, counts, and anonymized review excerpts from Product JSON-LD. |
| `maxConcurrency` | integer | Optional | `3` | Maximum parallel browser pages, from 1 to 10. Keep this low for public-site courtesy. |
| `minDelayMs` | integer | Optional | `800` | Minimum randomized delay before each navigation, 0–10,000 ms. |
| `maxDelayMs` | integer | Optional | `1600` | Maximum randomized delay before each navigation, 0–15,000 ms. |
| `maxRequestRetries` | integer | Optional | `3` | Retries for a failed public request before the failure is counted, 0–5. Access barriers are not bypassed. |
| `navigationTimeoutSecs` | integer | Optional | `45` | Maximum time for one public page navigation, 15–120 seconds. |
| `requestHandlerTimeoutSecs` | integer | Optional | `180` | Maximum time for one request handler, including extraction, 30–600 seconds. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional standard Apify Proxy routing. It is used only when the runtime exposes proxy credentials and changes the route only; no stealth or access-control bypass is applied. |

`filters` accepts these nested keys:

| Nested key | Type | Meaning |
| --- | --- | --- |
| `brand` | string | Case-insensitive contains match on the observed brand. |
| `minPrice` | number | Minimum observed current price in INR, zero or greater. |
| `maxPrice` | number | Maximum observed current price in INR, zero or greater. |
| `minRating` | number | Minimum observed rating, 0–5. |
| `inStockOnly` | boolean | Keep only rows with an explicit public in-stock signal. Missing availability does not pass the filter. |
| `excludePreOrder` | boolean | Drop listing records explicitly marked pre-order or coming soon. |
| `badge` | string | Case-insensitive contains match on listing badge text. |

`proxyConfiguration` accepts:

| Nested key | Type | Default | Meaning |
| --- | --- | --- | --- |
| `useApifyProxy` | boolean | `false` | Route public requests through Apify Proxy when the runtime provides credentials. |
| `apifyProxyGroups` | string array | Not supplied | Optional Apify Proxy groups. |
| `apifyProxyCountry` | string | Not supplied | Optional two-letter proxy country code. |

Default input:

```json
{
  "mode": "category",
  "category": "mobiles",
  "maxItems": 1,
  "pageStart": 1,
  "maxPages": 1,
  "sortBy": "popularity",
  "includeDetails": false,
  "includeMedia": true,
  "includeRatings": true,
  "maxConcurrency": 1,
  "minDelayMs": 0,
  "maxDelayMs": 0,
  "maxRequestRetries": 0,
  "navigationTimeoutSecs": 30,
  "requestHandlerTimeoutSecs": 60,
  "filters": {},
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

This is the stored example input, tuned for a small first run. The schema defaults are larger: `maxItems` 48, `maxPages` 3, `includeDetails` on, delays 800–1,600 ms, 3 retries, and timeouts of 45 and 180 seconds.

`category` mode builds the public category listing from the slug. `categoryUrl` accepts one public listing URL as supplied. `search` builds `https://www.flipkart.com/search?q=<query>`. In `startUrls`, product URLs are handled as direct products and other URLs as listing sources; `productUrls` is direct-only. Direct product URLs are numbered by their input position rather than by a listing page. The Actor reads rendered public pages and public JSON-LD only: it does not sign in, call private endpoints, reuse cookies, or bypass CAPTCHA, WAF, or other access controls. Optional `proxyConfiguration` uses standard Apify Proxy settings when supplied.

### Output

The dataset contains one row per unique public product, in the order the listing or input supplied them. 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 bestseller product`. |
| `recordId` | string | Always | Stable row identifier built from the product PID. |
| `sourceWebsite` | string | Always | Public Flipkart host recorded for the run. |
| `pageNumber` | integer | Always | One-based listing page that produced the record; `1` for direct product inputs. |
| `rank` | integer | Always | One-based position on the listing page or in the direct input list. |
| `productId` | string | Always | Flipkart item path identifier from the `/p/` segment of the product URL. |
| `fsn` | string | Always | Flipkart item path identifier as 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 the page's Product JSON-LD. |
| `productSlug` | string | Always | Readable product slug from the canonical product URL. |
| `productTitle` | string | Always | Product title as displayed on the listing or product page. |
| `title` | string | Always | Compatibility alias for `productTitle`. |
| `url` | string | Always | Clean public product URL that keeps the observed `pid` when available. |
| `canonicalUrl` | string | Always | Product URL without tracking or session parameters. |
| `brand` | string | When published | Brand declared by Product JSON-LD or visible on the page. |
| `color` | string | When published | Product color when the page discloses it. |
| `category` | string | When published | Product category observed from the page or inferred from the configured listing category. |
| `listingCategory` | string | When published | Category context of the listing source, such as `mobiles` or `custom`. |
| `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, including the currency symbol. |
| `originalPriceAmount` | number | When published | Original or MRP price as a number, only when the source shows one. |
| `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 shown by Flipkart, 0–100. |
| `discount` | string | When published | Discount label as displayed, for example `38% off`. |
| `currency` | string | When published | Currency of the observed prices, normally `INR`. |
| `availability` | string | When published | Availability label taken from visible text or Product JSON-LD. |
| `availabilityUrl` | string | When published | Schema.org availability URL when the page publishes one. |
| `availabilitySource` | string | When published | Evidence source used for the availability label, such as visible page text. |
| `availabilityConflict` | boolean | When published | True when visible availability and JSON-LD 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. |
| `badges` | string array | When published | Bounded listing badges such as `Bank Offer`. |
| `rating` | number | When published | Aggregate product rating, 0–5. |
| `ratingsCount` | integer | When published | Number of public ratings behind the aggregate rating. |
| `reviewsCount` | integer | When published | Number of public written reviews. |
| `ratingSummary` | string | When published | Short text summary derived from the observed rating and counts. |
| `reviews` | object array | When published | Bounded review excerpts from Product JSON-LD; reviewer names are not collected. |
| `extractedReviewCount` | integer | When published | Number of review excerpts retained in `reviews`. |
| `primaryImage` | string | When published | First public product image URL. |
| `thumbnail` | string | When published | Listing-card thumbnail URL. |
| `images` | string array | When published | Bounded public product image URLs. |
| `imageCount` | integer | When published | Number of image URLs retained. |
| `highlights` | string array | When published | Bounded product highlight bullets. |
| `highlightCount` | integer | When published | Number of highlight bullets retained. |
| `specifications` | object | When published | Flat specification key/value pairs. |
| `specificationGroups` | object | When published | Specifications grouped by their source section. |
| `specificationCount` | integer | When published | Number of specification keys retained. |
| `modelNumber` | string | When published | Model-number specification when present. |
| `modelName` | string | When published | Model-name specification when present. |
| `warranty` | string | When published | Warranty specification when present. |
| `variants` | string array | When published | Bounded variant labels observed on the page. |
| `selectedVariant` | string | When published | Variant label shown as selected. |
| `offers` | object array | When published | Product JSON-LD offer objects. |
| `seller` | string | When published | Seller label shown on the product page. |
| `sellerRating` | number | When published | Public seller rating, 0–5. |
| `delivery` | string | When published | Delivery message shown on the page. |
| `shippingCost` | number | When published | Shipping cost from the primary offer. |
| `shippingCurrency` | string | When published | Currency of the primary offer's shipping cost. |
| `shippingCountry` | string | When published | Destination country of the primary offer's shipping details. |
| `returnPolicy` | string | When published | Return-policy text from the primary offer. |
| `returnPolicyUrl` | string | When published | Public return-policy URL from the primary offer. |
| `source` | string | Always | Normalized source name, normally `Flipkart`. |
| `scrapeMode` | string | Always | Input mode used for the row. |
| `sortBy` | string | Always | Requested or applied sort order. |
| `detailsRequested` | boolean | Always | Whether detail enrichment was requested for the run. |
| `detailsIncluded` | boolean | Always | Whether detail enrichment succeeded for this row. |
| `detailEnriched` | boolean | Always | Explicit success flag for detail enrichment. |
| `detailStatus` | string | Always | Detail outcome: `success`, `not_requested`, or `fallback`. |
| `mediaIncluded` | boolean | Always | Whether media fields were requested for the run. |
| `ratingsIncluded` | boolean | Always | Whether rating fields were requested for the run. |
| `extractionMethod` | string | Always | Extraction path used, such as `listing-card` or a detail-page path. |
| `requestedUrl` | string | Always | Input URL that selected this product. |
| `listingPageUrl` | string | When published | Listing page that produced the product, when applicable. |
| `sourcePageUrl` | string | Always | Product page used for the record. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is the complete first saved row from the 2026-10-25 run. No values are changed or shortened.

```json
{
  "recordType": "Flipkart bestseller product",
  "recordId": "flipkart-product:MOBHPHSHEYGHCFN3",
  "sourceWebsite": "https://www.flipkart.com/",
  "pageNumber": 1,
  "rank": 1,
  "productId": "itmdcac5ae642971",
  "fsn": "itmdcac5ae642971",
  "pid": "MOBHPHSHEYGHCFN3",
  "productSlug": "oppo-k14x-5g-6500mah-45w-supervooc-charger-ai-icy-blue-128-gb",
  "productTitle": "OPPO K14x 5G 6500mAh and 45W SUPERVOOC Charger & AI (Icy Blue, 128 GB)",
  "title": "OPPO K14x 5G 6500mAh and 45W SUPERVOOC Charger & AI (Icy Blue, 128 GB)",
  "url": "https://www.flipkart.com/oppo-k14x-5g-6500mah-45w-supervooc-charger-ai-icy-blue-128-gb/p/itmdcac5ae642971?pid=MOBHPHSHEYGHCFN3",
  "canonicalUrl": "https://www.flipkart.com/oppo-k14x-5g-6500mah-45w-supervooc-charger-ai-icy-blue-128-gb/p/itmdcac5ae642971",
  "category": "mobiles",
  "listingCategory": "mobiles",
  "priceAmount": 21999,
  "price": "₹21,999",
  "originalPriceAmount": 35999,
  "originalPrice": "₹35,999",
  "savingsAmount": 14000,
  "discountPercent": 38,
  "discount": "38% off",
  "availabilityConflict": false,
  "isPreOrder": false,
  "badges": ["Bank Offer"],
  "rating": 4.3,
  "ratingsCount": 9999,
  "reviewsCount": 1180,
  "highlights": [
    "4 GB RAM | 128 GB ROM",
    "17.14 cm (6.75 inch) HD+ Display",
    "50MP + 2MP | 5MP; f/2.2; FOV 77Â°; 3P lens",
    "6500 mAh Battery",
    "Dimensity 6300 Processor",
    "1 Year Manufacturer Warranty for Device and 6 Months Manufacturer Warranty for Inbox Accessories"
  ],
  "highlightCount": 6,
  "source": "Flipkart",
  "scrapeMode": "category",
  "sortBy": "popularity",
  "detailsRequested": false,
  "detailsIncluded": false,
  "detailEnriched": false,
  "detailStatus": "not_requested",
  "mediaIncluded": false,
  "ratingsIncluded": false,
  "extractionMethod": "listing-card",
  "requestedUrl": "https://www.flipkart.com/oppo-k14x-5g-6500mah-45w-supervooc-charger-ai-icy-blue-128-gb/p/itmdcac5ae642971?pid=MOBHPHSHEYGHCFN3",
  "listingPageUrl": "https://www.flipkart.com/mobiles/pr?sid=tyy%2C4io&sort=popularity",
  "sourcePageUrl": "https://www.flipkart.com/oppo-k14x-5g-6500mah-45w-supervooc-charger-ai-icy-blue-128-gb/p/itmdcac5ae642971?pid=MOBHPHSHEYGHCFN3",
  "scrapedAt": "2026-10-25T20:48:03.234Z"
}
```

Nested values:

- `reviews` entries can contain `reviewTitle`, `reviewBody`, `rating`, `bestRating`, and `datePublished`.
- `offers` entries can contain `price`, `priceCurrency`, `availability`, `availabilityUrl`, `itemCondition`, `itemConditionUrl`, `shippingCost`, `shippingCurrency`, `shippingCountry`, `returnPolicy`, and `returnPolicyUrl`.
- `specifications` is a flat object of label/value pairs. `specificationGroups` keeps the same specifications grouped by source section.
- `title`, `description`, and `fsn` repeat canonical values for compatibility; they are not separate measurements. `rank` is the listing position, while `pageNumber` is the listing page.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`. It reports the run outcome and counts; issue details are not written as dataset rows or summary text.

| 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 product rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `found` | True when at least one product row was saved. |
| `dataAvailable` | Whether source-backed product data was saved. |
| `sourceWebsite` | Public source website used for the run. |
| `barrierDetected` | Whether an access barrier was observed. |
| `itemCount` | Number of product rows saved. |
| `normalCount` | Number of normal product rows saved; matches `itemCount`. |
| `diagnosticCount` | Number of operational issues recorded for the run. |
| `failureCount` | Number of extraction failures recorded for the run. |
| `startUrlCount` | Number of listing and direct product inputs. |
| `pagesProcessed` | Listing pages successfully inspected. |
| `listingRecordsObserved` | Raw listing records seen before filters. |
| `filteredOutCount` | Listing records removed by the configured filters. |
| `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. |
| `source` | Normalized source name, normally `Flipkart`. |
| `scrapeMode` | Input mode used for the run. |
| `sortBy` | Requested or applied sort order. |
| `maxItems` | Product-row limit used for the run. |
| `maxPages` | Listing-page limit per source. |
| `generatedBy` | Tool and model recorded in the summary. |
| `scrapedAt` | Time the summary was written, in ISO UTC. |

| 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_SUMMARY` 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/",
  "barrierDetected": false,
  "itemCount": 3,
  "normalCount": 3,
  "diagnosticCount": 0,
  "failureCount": 0,
  "startUrlCount": 1,
  "pagesProcessed": 1,
  "listingRecordsObserved": 6,
  "filteredOutCount": 0,
  "duplicateCount": 0,
  "detailRequested": 0,
  "detailSucceeded": 0,
  "detailFailed": 0,
  "fallbackCount": 0,
  "source": "Flipkart",
  "scrapeMode": "category",
  "sortBy": "popularity",
  "maxItems": 3,
  "maxPages": 1,
  "generatedBy": "OpenAI Codex (GPT-5)",
  "scrapedAt": "2026-10-25T20:48:03.495Z"
}
```

The saved run used a three-item category input with detail enrichment, media, and ratings disabled. That is why `detailRequested` is `0` and the saved row reports `mediaIncluded: false`. The example input above is a smaller one-item default and enables media and ratings; adjust it to match the fields you need.

### Coverage and limitations

The Actor reads public Flipkart category, search, and product pages. It does not sign in, use private endpoints, or bypass CAPTCHA, WAF, geofence, or other access controls. The built-in category names cover common slugs such as `mobiles`, `laptops`, `books`, and `fashion`; other slugs are tried as public `<slug>/pr` paths and may return no results. Pagination stops when a next link is missing or a page produces no new products.

Price, MRP, discount, availability, seller, delivery, offers, ratings, and page modules are point-in-time values and can change after the run. Optional fields are omitted when the source does not publish them. A blocked, empty, or partial source response is reported in `OUTPUT_SUMMARY` rather than written as a fabricated row. Detail failures leave the base listing row in place and mark `detailStatus` as `fallback`. Proxy routing changes the transport only and does not bypass access controls.

### Usage and support

Cost grows with `maxItems`, `maxPages`, 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_SUMMARY`, then raise the limits. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/flipkart-bestsellers-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-bestsellers-scraper/changelog.md

# Actor input Schema

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

Use a built-in category, public category URL, public search query, public start URLs, or direct product URLs.

## `category` (type: `string`):

Flipkart category slug used in category mode, such as mobiles, laptops, books, or fashion.

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

Public Flipkart search text used in search mode (maximum 200 characters).

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

One public HTTPS Flipkart category or bestseller URL used in categoryUrl mode.

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

Public HTTPS Flipkart product-page URLs used in productUrl mode (at most 100).

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

Additional public HTTPS Flipkart listing, search, or product URLs used in startUrls mode (at most 100). Product URLs are detail inputs; other URLs are paginated listing sources.

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

Maximum product records returned across all pages.

## `pageStart` (type: `integer`):

One-based listing page to start from.

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

Maximum number of public listing pages to follow per listing start URL. Pagination stops on a repeated URL, no next link, or no-progress source.

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

Public listing order. Rating sorting is performed locally from observed ratings.

## `filters` (type: `object`):

Optional filters applied to public listing records before detail visits.

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

Visit each matching public product page for JSON-LD, seller, delivery, offers, variants, specifications, and returns.

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

Backward-compatible alias for includeDetails. includeDetails takes precedence when supplied.

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

Include public image URLs and thumbnails.

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

Include public aggregate ratings and anonymized review excerpts.

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

Maximum parallel browser requests. Keep this low for public-site courtesy.

## `minDelayMs` (type: `integer`):

Minimum pacing delay before each navigation.

## `maxDelayMs` (type: `integer`):

Maximum pacing delay before each navigation.

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

Maximum Crawlee retries for a failed public request before a diagnostic is emitted.

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

Maximum time allowed for one public page navigation.

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

Maximum time allowed for one public request handler.

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

Optional Apify Proxy configuration. It is used only when the runtime exposes Apify Proxy credentials; no stealth or bypass behavior is applied.

## Actor input object example

```json
{
  "mode": "category",
  "category": "mobiles",
  "query": "",
  "categoryUrl": "",
  "productUrls": [],
  "startUrls": [],
  "maxItems": 48,
  "pageStart": 1,
  "maxPages": 3,
  "sortBy": "popularity",
  "filters": {},
  "includeDetails": true,
  "deepSearch": true,
  "includeMedia": true,
  "includeRatings": true,
  "maxConcurrency": 3,
  "minDelayMs": 800,
  "maxDelayMs": 1600,
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 45,
  "requestHandlerTimeoutSecs": 180,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Source-backed public Flipkart bestseller 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/flipkart-bestsellers-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/flipkart-bestsellers-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 '{}' |
apify call w3crawler/flipkart-bestsellers-scraper --silent --output-dataset

```

## MCP server setup

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