# Myntra Catalogue by Category (`ikmal_suzali_atr/myntra-catalog`) Actor

Every product on a Myntra category listing (India (myntra.com)): id, name, brand, price, original price, rating, seller and sponsored flag, page by page, optionally with subcategories. Dual-mode: the same code runs as an ATR BullMQ worker.

- **URL**: https://apify.com/ikmal\_suzali\_atr/myntra-catalog.md
- **Developed by:** [AtTheRate AI](https://apify.com/ikmal_suzali_atr) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

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?

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

## Myntra Catalogue by Category

Pulls every product on a Myntra category listing (myntra.com, India), page by page, with the paid tiles flagged in the exact order the site renders them. Use it to keep a live copy of a category's assortment, prices and discounts, or to see which brands hold the ad slots at the top of a category.

### What you get

- One row per product: `id`, `name`, `brand`, `price`, `original_price` (MRP), `currency`, `product_url`.
- `is_sponsored` on paid (PLA) tiles. Myntra ships ads in a separate list, so the actor rebuilds the on-page interleave from the site's own slot ordering. Ad ranks land where a shopper sees them.
- `ad_campaign_id` and `pla_slot_type` name the paid slot where Myntra exposes them.
- `page` and `position`, so rank inside the category is exact, not reconstructed after the fact.
- Ratings as `rating` and `rating_count`, plus the tile's `discount_label`.
- Fashion attributes `gender`, `sizes` and `colour_variants`, plus optional subcategory crawling.

### Input

Give one or more Myntra category slugs or URLs. Everything else has a working default.

```json
{
  "categories": ["men-tshirts"],
  "locale": "in",
  "maxPages": 1,
  "expandSubcategories": false,
  "delayMs": 1200,
  "callsPerSession": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IN"
  }
}
```

- `categories` (required): slugs such as `men-tshirts`, or URLs such as `https://www.myntra.com/shoes`.
- `maxPages`: pages per category. `0` means every page. Myntra serves 50 products a page.
- `expandSubcategories`: also crawl each category's children from Myntra's navigation.
- `delayMs` and `callsPerSession`: pacing and session rotation. The defaults are tuned for a clean run.
- `proxyConfiguration`: egress for the run. An Indian residential proxy is the default.

### Output

One dataset row per product per page.

```json
{
  "platform": "myntra",
  "locale": "in",
  "category_title": "Men Tshirts",
  "page": 1,
  "position": 1,
  "id": "9305413",
  "name": "Sparx Men Mesh Sports Non-Marking Shoes",
  "brand": "Sparx",
  "price": 1224,
  "original_price": 1499,
  "currency": "INR",
  "rating": 4.2,
  "rating_count": 318,
  "in_stock": true,
  "is_sponsored": true,
  "pla_slot_type": "TOP",
  "ad_campaign_id": "monet",
  "gender": "men",
  "sizes": ["S", "M", "L"],
  "discount_label": "18% OFF",
  "product_url": "https://www.myntra.com/9305413",
  "fetched_at": "2026-09-12T03:35:09.757Z"
}
```

`seller` is always null: Myntra does not name the seller on listing tiles. `ad_campaign_id` and `pla_slot_type` are null on organic rows. The `category` column carries the product's own Myntra category label, which can differ from the slug you asked for.

### Use cases

- Daily price and MRP tracking, using `price`, `original_price` and `discount_label`.
- Share of shelf, counting your `brand` against the rest at each `position`.
- Ad-slot share: how many top positions carry `is_sponsored` true, and which brands own them.
- Assortment gaps from `sizes` and `colour_variants`, and new-listing alerts by diffing `id`.

### Notes and limits

- 50 products a page. A large category runs to many pages, so set `maxPages` unless you want them all.
- An unknown slug is rejected rather than scraped. Myntra never 404s a bad slug, it quietly serves fuzzy search results instead, so the actor checks that the slug's words matched and stops if they did not.
- Myntra ships nationally and does not vary listings by pincode, so there is no location input.
- An Indian residential proxy is needed. Myntra answers 403 to other egress.
- `breadcrumbs` is null: the page state carries no breadcrumb trail.

### FAQ

**Do I need a proxy?** Yes, an Indian residential proxy. That is the actor default, so leaving `proxyConfiguration` alone is enough.

**How many results can I get?** Every page Myntra will serve for the category, 50 products at a time. `maxPages` caps it, `0` means no cap.

**Does it need a login or an API key?** No.

**How is the sponsored flag detected?** Myntra returns organic and paid products in two separate lists plus an ordering array saying which slot is which. The actor walks that ordering, so `position` matches the rendered page and paid tiles are not counted as organic.

**Which categories can I pass?** Anything in Myntra's navigation: `men-tshirts`, `women-kurtas`, `shoes`, or a category URL. Use `expandSubcategories` to sweep everything beneath one.

# Actor input Schema

## `categories` (type: `array`):

Myntra category slugs or URLs, e.g. "men-tshirts", "women-kurtas" or "https://www.myntra.com/shoes". Enable "Include subcategories" to crawl children from Myntra's navigation tree.

## `locale` (type: `string`):

Which storefront / locale.

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

0 = all pages.

## `expandSubcategories` (type: `boolean`):

Also crawl each category's subcategories when the site exposes them.

## `delayMs` (type: `integer`):

Pause between page fetches.

## `callsPerSession` (type: `integer`):

Re-mint the session after this many page fetches.

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

On the Apify platform this decides egress. A residential proxy in the storefront's country is recommended (IN for the default). On our own servers it is ignored and our residential proxy is used.

## Actor input object example

```json
{
  "categories": [
    "men-tshirts"
  ],
  "locale": "in",
  "maxPages": 0,
  "expandSubcategories": false,
  "delayMs": 1200,
  "callsPerSession": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

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

One row per product.

## `summary` (type: `string`):

Counts for the run: what was requested, captured, skipped and failed.

# 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 = {
    "categories": [
        "men-tshirts"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ikmal_suzali_atr/myntra-catalog").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 = { "categories": ["men-tshirts"] }

# Run the Actor and wait for it to finish
run = client.actor("ikmal_suzali_atr/myntra-catalog").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 '{
  "categories": [
    "men-tshirts"
  ]
}' |
apify call ikmal_suzali_atr/myntra-catalog --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ikmal_suzali_atr/myntra-catalog"
        }
    }
}
```

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/MiytO1fqMQ1ataYO7/builds/exwYD5vyxjyZcdt58/openapi.json
