# Flipkart Category Browser (`apt_marble/flipkart-category-browser`) Actor

Browse Flipkart categories by URL or path with no keyword needed, and collect products with prices, MRPs, discounts, ratings, photos and links.

- **URL**: https://apify.com/apt\_marble/flipkart-category-browser.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 1,000 category items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Flipkart Category Browser

Browse any Flipkart category by link — no keyword needed — and get every product back as clean, structured data. Paste category links such as mobile phones, footwear, or home essentials, set a price band and a minimum rating, pick a sort order, and receive a row for each product with its title, price, MRP, discount, rating, rating count, photo, and direct link. Collect anywhere from a handful of best picks to a 5,000-row multi-category export. Built for resellers, deal hunters, market researchers, and sales teams who need Flipkart category listings as data: track prices within a category, spot the highest-rated picks fast, watch discounts daily, and build inventory lists without opening a single product page by hand.

### What you can do with it

- **Browse categories with no keyword** — paste one or many category links and collect what each category actually shows.
- **Use links or short paths** — full category links work, and short category paths work too; both are merged into one run.
- **Stay inside a price band** — set a minimum and maximum price in INR to surface only products in your budget.
- **Keep only highly rated picks** — set a minimum rating from 0 to 5 and leave lower-rated products out.
- **Sort your way** — relevance, popularity, price low to high, price high to low, newest first, or discount.
- **Build inventory and lead lists** — export titles, prices, discounts, ratings, photos, and links straight into a spreadsheet or pipeline.
- **Watch a category over time** — re-run daily or weekly and compare datasets to track prices, discounts, and ratings.

### What you get

One row per product. Abridged sample of a single result:

```json
{
  "productId": "ITM1234567890AB",
  "title": "Noise-Cancelling Wireless Headphones (Black, On-Ear)",
  "url": "https://www.flipkart.com/noise-cancelling-wireless-headphones-black/p/ITM1234567890AB",
  "image": "https://rukminim1.flixcart.com/image/headphone/example.jpg",
  "price": 2999,
  "mrp": 5999,
  "discountPercent": 50,
  "rating": 4.3,
  "ratingCount": 12845,
  "currency": "INR",
  "categoryUrl": "https://www.flipkart.com/audio/headphones/pr?sid=0pm",
  "rank": 1
}
```

Each row keeps the product's main photo, its MRP and discount where shown, its rating and rating count where shown, and the category it came from with its position in that category. Where a product omits a field — no rating, no MRP, no photo — the actor leaves it empty rather than guessing.

### Input reference

| Setting | Type | Default | What it does |
| --- | --- | --- | --- |
| Category URLs | list of text | — | Category links to browse, e.g. `["https://www.flipkart.com/mobiles/pr?sid=tyy,4io"]`. One browse runs per link. No keyword needed. |
| Category paths (alias) | list of text | — | Same as Category URLs. Short paths such as `mobiles/pr?sid=tyy,4io` are also accepted and merged with the links above. |
| Min price | number | — | Minimum product price in INR. Leave empty for no lower bound. |
| Max price | number | — | Maximum product price in INR. Leave empty for no upper bound. |
| Min rating | number | — | Minimum product rating from 0 to 5. Leave empty for all ratings. |
| Sort | choice | `relevance` | `relevance`, `popularity` (most popular first), `price_asc` (cheapest first), `price_desc` (priciest first), `recency_desc` (newest first), or `discount` (biggest discount first). |
| Max items | whole number | `200` | How many products to collect. The actor works through the result pages automatically until this number is reached or the results run out. Maximum 5,000. |

Provide at least one category link or path; everything else is optional.

### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `productId` | text | The product's Flipkart ID. |
| `title` | text | Product title as shown to readers. |
| `url` | text | Direct link to the product. |
| `image` | text | The product's main photo, when it has one. |
| `price` | number | Current selling price in INR, when listed. |
| `mrp` | number | Maximum retail price in INR, when shown. |
| `discountPercent` | number | Discount percentage, when shown or computable from price and MRP. |
| `rating` | number | Average rating from 0 to 5, when shown. |
| `ratingCount` | number | Number of ratings, when shown. |
| `currency` | text | Currency code, always `INR`. |
| `categoryUrl` | text | Category link that produced this row. |
| `rank` | number | Position of the product within its category browse. |

### Example use cases

- **Category deal flow** — browse the headphones category sorted by discount every morning and shortlist the standout rows.
- **Top-rated watch** — browse mobiles with a minimum rating of 4.0, cheapest first, on a weekly schedule.
- **Price research** — pull 2,000 rows across footwear categories and compare selling prices against MRPs.
- **Discount hunt** — browse home essentials sorted by discount inside a price band and export fresh matches weekly.
- **Category sizing** — count products per category with ratings above 4.0 to see where quality supply concentrates.

### Pricing

You pay per result, with no monthly minimum.

| What you are charged for | Price |
| --- | --- |
| Category item — one product added to your dataset | **$1.20 per 1,000** |

### Limits & what this actor cannot do

- Titles, prices, discounts, ratings, and availability are a snapshot at the moment of collection; products are edited, repriced, or sold out constantly.
- The actor returns what Flipkart actually serves and reports distinct products only — the same product repeated across pages is returned once.
- Each row carries the listing's single main photo, not the full gallery; the gallery lives on the product page.
- Where a product omits a field the actor leaves it empty rather than guessing.
- Prices come back in INR; a figure is never re-labelled into a different currency.
- Rating and price filters apply to the values shown on the listing; products that hide a value are left out when a matching filter is set.
- Speed depends on the size of the job and on Flipkart's own response times; no fixed throughput is promised.
- Flipkart's terms govern automated access. You are responsible for using the data lawfully and in line with the source site's terms, and for handling any personal data in line with applicable privacy law.

### FAQ

**Do I need a Flipkart account?**
No. The actor reads only what the category pages show to any visitor.

**Does it need my login or password?**
No. There is nothing to connect — paste category links and press start.

**Which categories can I browse?**
Any Flipkart category link (mobiles, fashion, footwear, home, audio, and more). Mix as many as you like in one run.

**How many products can I get in one run?**
Up to 5,000 per run. If a category holds more than that, split it with narrower categories or price bands per run.

**Why are some fields empty?**
Because the product did not show them. The actor reports exactly what the listing carries — an empty field means "not shown", never a failed guess.

**Can I get full descriptions and all photos?**
Not from category listings — they carry one photo and no description. Feed the product links from any run into a product-details scraper for the complete record.

**Can I schedule it?**
Yes. Schedule it hourly, daily or weekly, and each run writes a fresh dataset you can compare against the last — ideal for tracking prices, discounts, and ratings over time.

**Is the data complete?**
It is complete for everything Flipkart shows openly in its category listings. The actor reports distinct products and leaves unshown fields empty instead of inventing them.

# Actor input Schema

## `categoryUrls` (type: `array`):

Flipkart category URLs to browse, e.g. https://www.flipkart.com/mobiles/pr?sid=tyy,4io. One browse is run per URL. No keyword needed.

## `categoryPaths` (type: `array`):

Alias of Category URLs. Bare category paths are also accepted, e.g. mobiles/pr?sid=tyy,4io or /mens-footwear/pr?sid=osp. Merged with Category URLs.

## `minPrice` (type: `number`):

Minimum product price in INR. Leave empty for no lower bound.

## `maxPrice` (type: `number`):

Maximum product price in INR. Leave empty for no upper bound.

## `minRating` (type: `number`):

Minimum product rating from 0 to 5. Items below this rating are skipped. Leave empty for all ratings.

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

Order the category products are returned in.

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

Maximum total items to collect across all categories. The actor pages through results automatically until this number is reached or the results run out.

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.flipkart.com/mobiles/pr?sid=tyy,4io"
  ],
  "categoryPaths": [],
  "sort": "relevance",
  "maxItems": 100
}
```

# Actor output Schema

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

Every row this run produced.

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

What this run collected, and anything it could not read.

# 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 = {
    "categoryUrls": [
        "https://www.flipkart.com/mobiles/pr?sid=tyy,4io"
    ],
    "categoryPaths": [],
    "sort": "relevance",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/flipkart-category-browser").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 = {
    "categoryUrls": ["https://www.flipkart.com/mobiles/pr?sid=tyy,4io"],
    "categoryPaths": [],
    "sort": "relevance",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/flipkart-category-browser").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 '{
  "categoryUrls": [
    "https://www.flipkart.com/mobiles/pr?sid=tyy,4io"
  ],
  "categoryPaths": [],
  "sort": "relevance",
  "maxItems": 100
}' |
apify call apt_marble/flipkart-category-browser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/flipkart-category-browser"
        }
    }
}
```

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/D5c5zGWFVgiO0dZV1/builds/amlpvX2mbVg285gfU/openapi.json
