# Myntra Keyword Rank Tracker (`ikmal_suzali_atr/rank-myntra`) Actor

Organic + sponsored (ad) rank per keyword x store location on myntra. Dual-mode: the same capture\_many() runs in the ATR rank-myntra service on our servers.

- **URL**: https://apify.com/ikmal\_suzali\_atr/rank-myntra.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 $4.00 / 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 Keyword Rank Tracker

Captures the full Myntra search results slate for each keyword, with every product's rank and the paid (PLA) tiles placed exactly where the site renders them. Use it to track share of search for a fashion brand, and to see which brands are buying the slots above it.

### What you get

- One row per search result position: `position`, `product_id`, `name`, `brand`, `price`, `mrp`, `in_stock` and `inventory`.
- `is_sponsored` on paid tiles, with `ad_campaign_id` naming the campaign, or the ad source when Myntra ships an empty campaign id.
- The true rendered order. Myntra returns organic and paid products in two separate lists plus an ordering array, and the actor walks that ordering. Reading the organic list alone would understate rank by however many ad slots sit above it.
- `inventory`, a total unit count across sizes, so thin stock is visible.
- `captured_at` on every row, so a time series can be built by appending runs.
- Ranks for the whole slate, not just one brand, so competitor rank and ad share stay derivable.

### Input

Give the keywords to rank. A location is required by the input schema for consistency with the quick-commerce trackers, but Myntra ships nationally and does not vary results by pincode.

```json
{
  "keywords": ["running shoes"],
  "locations": [
    {
      "label": "Bengaluru-MGRoad",
      "lat": 12.9716,
      "lon": 77.5946,
      "pincode": "560001"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IN"
  },
  "pages": 1
}
```

- `keywords` (required): search terms to rank. Duplicates are ignored.
- `pincodes`: Indian 6-digit pincodes. One is enough, since extra ones would only repeat identical rows.
- `locations` (advanced): exact points as `{"label","lat","lon","pincode"}`, in place of pincodes.
- `pages`: result pages to walk per keyword. Myntra returns 50 products a page and rank continues across pages.
- `proxyConfiguration`: egress for the run. An Indian residential proxy is the default.

### Output

One dataset row per search result position.

```json
{
  "captured_at": "2026-09-11T09:02:03+00:00",
  "platform": "myntra",
  "keyword": "running shoes",
  "location_label": "national",
  "pincode": null,
  "store_id": null,
  "position": 1,
  "is_sponsored": true,
  "ad_campaign_id": "monet",
  "product_id": "9305413",
  "name": "Sparx Men Mesh Sports Non-Marking Shoes",
  "brand": "Sparx",
  "price": 1224,
  "mrp": 1499,
  "in_stock": true,
  "inventory": 120
}
```

A live run of one keyword returned 50 rows, 18 of them sponsored. Because Myntra is national, `location_label` is always `"national"` and `pincode` and `store_id` are null, whichever location you passed in.

### Use cases

- Share of search by keyword: how many of the top 50 positions belong to your `brand`.
- Ad-slot share and competitor ad monitoring, from `is_sponsored` and `ad_campaign_id` at each `position`.
- Rank tracking for individual styles across a keyword set, following `product_id` over time.
- Price and MRP benchmarking at rank, plus stock depth from `inventory` and `in_stock`.

### Notes and limits

- 50 products a page, and rank continues across pages rather than restarting at 1, so page 2 positions start at 51.
- Myntra does not vary results by pincode, so a location dimension would multiply cost for identical rows. Every row is stamped `national` instead. The schema still requires one pincode or location.
- Ad tiles arrive in a separate list from organic ones. Only the site's own ordering array reproduces the on-screen rank, which is what this actor uses.
- An Indian residential proxy is the default and is recommended.
- India only.

### FAQ

**Do I need a proxy?** An Indian residential proxy is the actor default and is the tested configuration.

**How many results can I get?** 50 positions a page per keyword, walked for as many pages as `pages` allows while Myntra reports another page.

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

**How is the sponsored flag detected?** Myntra marks paid products in its own page state and publishes an ordering array saying which slot is paid. The actor walks that ordering, so an ad at rank 1 is recorded at rank 1 and organic rows are pushed down accordingly.

**Why does every row say "national"?** Because Myntra serves the same results everywhere. Stamping a pincode on those rows would imply a local variation that does not exist.

# Actor input Schema

## `keywords` (type: `array`):

Search keywords to rank (required). Duplicates are ignored.

## `pincodes` (type: `array`):

Indian 6-digit pincodes to capture ranks for, e.g. 122002. Each is resolved to coordinates and the platform picks the store serving it; pincodes with no store nearby fail loudly rather than logging another city's ranks.

## `pages` (type: `integer`):

Result pages to walk per keyword.

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

On the Apify platform this decides egress (residential IN recommended; these platforms block datacenter IPs). On our servers it is ignored and our own residential proxy is used.

## `locations` (type: `array`):

Optional instead of pincodes: exact store targets \[{"label":"Gurgaon-DLF","lat":28.4595,"lon":77.0266,"pincode":"122002"}].

## Actor input object example

```json
{
  "keywords": [
    "shampoo",
    "atta"
  ],
  "pincodes": [
    "122002"
  ],
  "pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

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

One row per search result position.

## `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 = {
    "keywords": [
        "shampoo",
        "atta"
    ],
    "pincodes": [
        "122002"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ikmal_suzali_atr/rank-myntra").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 = {
    "keywords": [
        "shampoo",
        "atta",
    ],
    "pincodes": ["122002"],
}

# Run the Actor and wait for it to finish
run = client.actor("ikmal_suzali_atr/rank-myntra").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 '{
  "keywords": [
    "shampoo",
    "atta"
  ],
  "pincodes": [
    "122002"
  ]
}' |
apify call ikmal_suzali_atr/rank-myntra --silent --output-dataset

```

## MCP server setup

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

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/HjAPLpo86ewCW5aDG/builds/g485M2SxrOdHWI8dX/openapi.json
