# Myntra Scraper: Products, Prices, Stock & Sellers (`smart_albatross/myntra-scraper`) Actor

Myntra scraper & API: every product from any search, category, brand or URL, not just the first 500. Price, MRP, discount, coupon price, rating, sizes and buy-box stock; add stock per size & seller, seller details, specs, demand counts and reviews. Export JSON, CSV, Excel.

- **URL**: https://apify.com/smart_albatross/myntra-scraper.md
- **Developed by:** [Dev](https://apify.com/smart_albatross) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

### What does Myntra Scraper do?

**Myntra Scraper** extracts product data from [Myntra.com](https://www.myntra.com), India's largest fashion marketplace. Give it a search keyword, a brand name, any Myntra category or filtered URL, or a list of product IDs. You get clean, spreadsheet-ready rows: **price, MRP, discount, coupon price, rating, sizes, stock, sellers, specs and reviews**.

It works like an unofficial **Myntra API**: no login, no browser, no cookies to manage. Export to JSON, CSV, Excel or straight into your app.

**Why it's different:** most Myntra scrapers stop at the first ~500 products of a search. This one collects the **entire catalogue**. We measured 78,561 of 78,630 Roadster products (99.9%) in 7 minutes. With one switch it adds **units in stock for every size from every seller**, seller addresses, garment measurements and Myntra's own demand counters (purchased, wishlisted, page views).

### Why scrape Myntra?

- 📉 **Price monitoring:** track your own and competitors' prices, discounts, coupon prices and sale end times every day.
- 📦 **Stock & sell-through tracking:** compare per-size stock between runs to estimate units sold, spot size gaps and stock-outs.
- 🏷️ **Brand & assortment analysis:** list every product of a brand or category, with colours, sizes, fabrics and launch dates.
- 🏬 **Seller intelligence:** see which sellers carry a product, their stock and price, and who holds the buy box.
- 🛍️ **Deal & affiliate sites:** a fresh feed of the biggest discounts and best coupon prices.
- 🤖 **AI & data science:** clean, typed fashion data (attributes, images, ratings, reviews) for models, recommendations and dashboards.

### What data can you extract from Myntra?

| Group | Fields |
|---|---|
| Product | ID, URL, name, brand, gender, category → sub-category → article type, colour, colour variants |
| Price | selling price, MRP, discount % and ₹, **coupon code, coupon discount, best price with coupon, coupon expiry**, offer end time |
| Ratings | average rating, rating count, **1–5★ breakdown**, review count, review-photo count |
| Availability | sizes on offer, in stock, **buy-box size + its stock**, **units in stock per size per seller**, total stock |
| Sellers | seller name, legal name, address, city, state, PIN code, buy-box winner, dispatch days, per-seller price |
| Content | description, size & fit, material & care, category-specific attributes (fabric, fit, GSM, shade…), **garment measurements per size**, all images, videos |
| Demand signals | purchased, added-to-cart, wishlisted and page-view counts (Myntra's social-proof counters) |
| Policy | returnable, exchangeable, return days, cash on delivery, manufacturer, country of origin |
| Merchandising | badges ("Bestseller", "Deal of the Day", "Price Drop"), sponsored flag, listed-on date, season, search rank |
| Reviews (optional) | rating, text, size bought, date, up/down votes, photos |

### How to scrape Myntra

1. Click **Try for free**.
2. Enter what you want: **Search keywords** (`levis jeans`), **Brands** (`Roadster`), **Myntra URLs** (any category, search, brand or product link) or **Product IDs**.
3. Set **Max products per search**: `100` for a quick look, or `0` for **everything**.
4. Optional: turn on **Include product-page data** (stock per size and seller, specs, sellers, demand counts) and/or **Include reviews**.
5. Click **Start** and download your data as JSON, CSV, Excel or HTML, or fetch it through the API.

Filters for gender, price range, minimum discount, minimum rating and Myntra's sort orders apply to every search, brand and URL.

### How many products can I scrape from Myntra?

**All of them.** Myntra only serves part of a big listing to plain paging, and its default "recommended" order reshuffles between pages, so naive scrapers silently miss products. This actor:

- pages Myntra the same way its own website does, about 20× deeper than offset-based scrapers;
- splits big listings into price slices (and brand / colour / size slices at crowded price points) and scrapes them in parallel;
- switches to a stable sort order whenever you want a complete listing, so no product is skipped or repeated.

| Measured run | Result |
|---|---|
| Whole **Roadster** brand | **78,561 of 78,630 products (99.9%)** in 7.3 minutes |
| **Men's jeans** category | 81,099 products, 0 failed requests |
| **Levi's** brand | 6,102 of 6,103 products in under a minute |

### How much does it cost to scrape Myntra?

You pay only for results ("pay per event"):

| What | Price |
|---|---|
| Product (listing data) | **$0.80 per 1,000 products** |
| Product-page add-on (stock per size & seller, sellers, specs, demand counts) | **+$1.00 per 1,000 products** |
| Reviews add-on | **$0.80 per 1,000 reviews** |

Examples: 1,000 products from a search cost **$0.80**. The same 1,000 products with full stock and seller data cost **$1.80**. Set **Maximum cost per run** and the actor stops cleanly at your limit, charging only for what it delivers. Apify's free plan includes monthly credits to try it.

### Input example

```json
{
    "searchQueries": ["levis jeans"],
    "brands": ["Roadster"],
    "startUrls": [{ "url": "https://www.myntra.com/men-tshirts?f=Brand%3ALevis" }],
    "productIds": ["12027436"],
    "maxItemsPerSearch": 500,
    "sortBy": "popularity",
    "gender": "men",
    "minDiscount": 30,
    "includeDetails": true,
    "includeReviews": false
}
```

### Output example

A real record (trimmed), with the product-page add-on on:

```json
{
    "productId": 12027436,
    "url": "https://www.myntra.com/12027436",
    "name": "Levis Men Soft Pure Cotton Round Neck Half Sleeve Tshirt",
    "brand": "Levis",
    "gender": "Men",
    "articleType": "Lounge Tshirts",
    "price": 389,
    "mrp": 649,
    "discountPercent": 40,
    "rating": 4.41,
    "ratingCount": 35908,
    "buyBoxSize": "XL",
    "buyBoxStock": 1269,
    "totalStock": 5777,
    "sizeDetails": [{
        "size": "S", "skuId": 41875336, "available": true, "stock": 436,
        "measurements": [{ "name": "Chest", "value": "38.18", "unit": "Inches", "type": "GARMENT" }],
        "sellers": [
            { "sellerId": 11518, "sellerName": "MODENIK LIFESTYLE PRIVATE LIMITED", "stock": 87, "price": 389, "mrp": 649, "dispatchDays": 2 },
            { "sellerId": 4215, "sellerName": "Vision Star", "stock": 349, "price": 421, "mrp": 649, "dispatchDays": 0 }
        ]
    }],
    "sellers": [{ "sellerId": 11518, "name": "MODENIK LIFESTYLE PRIVATE LIMITED", "city": "Bengaluru", "state": "KARNATAKA", "pincode": "560037", "isBuyBoxWinner": true }],
    "ratingBreakdown": { "1": 1659, "2": 832, "3": 2412, "4": 7343, "5": 23662 },
    "reviewCount": 5642,
    "pageViewCount": 371,
    "returnDays": 14,
    "codAvailable": true,
    "countryOfOrigin": "India"
}
```

Products found through searches, brands and listing URLs also carry `couponCode`, `couponDiscount`, `priceWithCoupon`, `couponEndsAt`, `badges` and `searchPosition`. In the Console, the **Overview**, **Inventory** and **Content & ratings** tabs show ready-made table views.

### Track Myntra prices and stock automatically

1. Save your input as a **Task** (e.g. your brand's product IDs, or a category).
2. Add a **Schedule** (daily, hourly…).
3. Compare runs by `productId` / `skuId`: price changes, new products, stock drops per size. A drop in `sizeDetails[].stock` between runs approximates units sold. Restocks and returns add noise, so treat it as an estimate.

### Use Myntra Scraper through the API

Run it from your code with the [Apify API](https://docs.apify.com/api/v2) or the official clients.

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("smart_albatross/myntra-scraper").call(run_input={
    "searchQueries": ["running shoes"],
    "maxItemsPerSearch": 200,
    "includeDetails": True,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["price"], item.get("totalStock"))
```

**Node.js**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('smart_albatross/myntra-scraper').call({ brands: ['Roadster'], maxItemsPerSearch: 0 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also plugs into **Make, Zapier, n8n, Google Sheets, Slack, Airbyte and webhooks**, and AI agents can call it through the **Apify MCP server**.

### FAQ

#### Is there an official Myntra API?

No. Myntra doesn't offer a public product API. This actor gives you the same data in a stable, documented format, so you can use it as a Myntra API.

#### Can I scrape Myntra without logging in?

Yes. It only reads public pages and needs no Myntra account.

#### Can I get stock / inventory per size from Myntra?

Yes. Turn on **Include product-page data** to get units in stock per size and per seller. Every product also carries the stock of its buy-box size, at no extra cost.

#### Can I scrape Myntra reviews?

Yes. Turn on **Include reviews** for up to 1,000 per product. For unlimited reviews, star filters and date-based runs, use **[Myntra Reviews Scraper](https://apify.com/smart_albatross/myntra-reviews-scraper)**.

#### Do I need proxies?

No setup needed. The actor uses Apify's Indian residential proxies by default, because Myntra blocks most datacenter IPs.

#### Why is `searchPosition` empty for some products?

Up to 2,500 products per search (or about 9,700 when you pick a sort order), results follow Myntra's ranking and carry a position. Bigger or full-catalogue pulls are scraped in parallel slices in a stable order, so there's no single ranking to report.

#### Why are coupon fields empty for some products?

Coupons come from Myntra's listing cards. Products you add by ID or product URL don't have a card, so their coupon fields are empty.

#### Is it legal to scrape Myntra?

This actor collects only publicly available product information and no personal data. You are responsible for using the data in line with Myntra's terms and the laws that apply to you, such as India's DPDP Act and copyright rules. Ask a lawyer if you're unsure.

### Related actors

- **[Myntra Reviews Scraper](https://apify.com/smart_albatross/myntra-reviews-scraper)**: every review of any Myntra product, with star filters, photos and product context.

Questions or a field you need? Open an issue on the **Issues** tab and we'll respond.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords exactly as you would type them in Myntra's search bar, e.g. "levis jeans" or "women kurta sets". Each keyword is scraped separately.

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

Any Myntra category, search, brand or filtered listing URL (filters and sort in the URL are kept), or product page URLs. Example: https://www.myntra.com/men-tshirts?f=Brand%3ALevis

## `brands` (type: `array`):

Brand names, e.g. "Roadster" or "H\&M". Returns that brand's products only (the exact Myntra brand filter is applied automatically). Combine with Max products per search = 0 to get the whole brand catalogue.

## `productIds` (type: `array`):

Myntra style IDs (the number in a product URL, e.g. 12027436). Useful for tracking a fixed list of products.

## `maxItemsPerSearch` (type: `integer`):

How many products to collect for each keyword, listing URL or brand. Set 0 for ALL products: big listings are automatically split into price and facet slices so you get the whole catalogue, not just the first few hundred.

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

Optional overall cap across all inputs. 0 = no overall cap.

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

Myntra sort order for searches, brands and URLs without their own sort.

## `gender` (type: `string`):

Only products for this gender (unisex products are included).

## `minPrice` (type: `integer`):

Only products priced at or above this.

## `maxPrice` (type: `integer`):

Only products priced at or below this.

## `minDiscount` (type: `integer`):

Only products with at least this discount.

## `minRating` (type: `integer`):

Only products rated at least this many stars (unrated products are excluded).

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

Opens each product page and adds: units in stock per size and per seller, seller names and addresses, description, material & care, size & fit, category-specific attributes, garment measurements per size, 1–5★ rating breakdown, review and review-photo counts, purchased / added-to-cart / wishlisted / page-view counts, offer end time, return & COD policy, manufacturer, country of origin, all images and videos, colour variants. Charged as an add-on per product.

## `includeReviews` (type: `boolean`):

Attach customer reviews to each product (in a `reviews` array). For large review pulls use the Myntra Reviews Scraper.

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

Used only when Include reviews is on (up to 1,000). For more, use the Myntra Reviews Scraper.

## `reviewsSort` (type: `string`):

Used only when Include reviews is on.

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

Indian residential proxies are strongly recommended (and the default): Myntra blocks most datacenter IPs.

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

Parallel requests to Myntra.

## Actor input object example

```json
{
  "searchQueries": [
    "levis jeans"
  ],
  "maxItemsPerSearch": 100,
  "maxItems": 0,
  "sortBy": "recommended",
  "gender": "any",
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "helpful",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  },
  "maxConcurrency": 30
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `inventory` (type: `string`):

No description

## `content` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "levis jeans"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "IN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("smart_albatross/myntra-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 = {
    "searchQueries": ["levis jeans"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "IN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("smart_albatross/myntra-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 '{
  "searchQueries": [
    "levis jeans"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}' |
apify call smart_albatross/myntra-scraper --silent --output-dataset

```

## MCP server setup

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