# myntra.search

A page of the products Myntra lists for words or a category: name, brand, price, MRP and reduction, rating, sizes and pictures.

Myntra search, one of the Myntra scrapers.

| | |
| --- | --- |
| Id | `myntra.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/myntra.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Words or a category as Myntra names it, e.g. `men tshirts`, `nike`, `kurta sets`. Limit: at least 1 characters, at most 150 characters. |
| `page` | integer | no | The results page, from 1; Myntra shows about 32 products a page. Limit: 1 to 100. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `position` | integer or null | The product's place on its results page, from 1. Null for `myntra.product`. |
| `page` | integer or null | The results page it is on. Null for `myntra.product`. |
| `product_id` | string | Myntra's id of the product (its style id), e.g. `1700944`. |
| `url` | string | The product's page. |
| `title` | string | The product's name as Myntra shows it. |
| `brand` | string or null | The brand. |
| `category` | string or null | Myntra's kind of article, e.g. `Tshirts`, `Lounge Tshirts`. |
| `gender` | string or null | Who it is for, as Myntra says: `Men`, `Women`, `Boys`, `Girls`, `Unisex`. |
| `color` | string or null | Its main colour, as Myntra names it. |
| `price` | number or null | The price Myntra shows, in Indian rupees. |
| `mrp` | number or null | The maximum retail price printed beside it, in Indian rupees. |
| `discount_percent` | integer or null | The reduction Myntra prints beside the price, in percent. Null where it prints none, or prints it as an amount in rupees. |
| `rating` | number or null | The average of the product's ratings, out of 5. |
| `rating_count` | integer or null | How many ratings it has. |
| `sizes` | array of object | The sizes Myntra lists, with whether each is available. |
| `sizes[].label` | string | The size as Myntra lists it, e.g. `M`, `32`, `UK8`. |
| `sizes[].available` | boolean or null | True when Myntra shows the size as available to buy. A results card states it only for some sizes; null for the others. |
| `image` | string or null | The product's main picture. |
| `images` | array of string | Every picture of the product. From `myntra.product`, and the search's own set for `myntra.search`. |
| `description` | string or null | The product's description. From `myntra.product` only. |
| `attributes` | array of object | The product's attributes as its page lists them. From `myntra.product` only. |
| `attributes[].name` | string | What the attribute is, as Myntra names it, e.g. `Fabric`, `Fit`, `Neck`. |
| `attributes[].value` | string | Its value, e.g. `Cotton`, `Regular Fit`. |
| `seller` | string or null | The business selling it on Myntra. From `myntra.product` only. |
| `country_of_origin` | string or null | Where it was made, as the page states. From `myntra.product` only. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/myntra.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"men tshirts"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "myntra.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "men tshirts"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "position": 1,
      "page": 1,
      "product_id": "12027436",
      "url": "https://www.myntra.com/lounge-tshirts/levis/levis-men-soft-pure-cotton-round-neck-half-sleeve-tshirt/12027436/buy",
      "title": "Levis Men Soft Pure Cotton Round Neck Half Sleeve Tshirt",
      "brand": "Levis",
      "category": "Lounge Tshirts",
      "gender": "Men",
      "color": "White",
      "price": 389,
      "mrp": 649,
      "discount_percent": 40,
      "rating": 4.41,
      "rating_count": 36470,
      "sizes": [
        {
          "label": "S",
          "available": null
        },
        {
          "label": "M",
          "available": true
        },
        {
          "label": "L",
          "available": null
        }
      ],
      "image": "https://assets.myntassets.com/assets/images/12027436/2022/9/15/ea90445c-a37b-43ac-948b-8e291ec78dc31663221311972LevisMenWhiteSolidRoundNeckLoungeT-shirt1.jpg",
      "images": [
        "https://assets.myntassets.com/assets/images/12027436/2022/9/15/ea90445c-a37b-43ac-948b-8e291ec78dc31663221311972LevisMenWhiteSolidRoundNeckLoungeT-shirt1.jpg",
        "https://assets.myntassets.com/assets/images/12027436/2022/9/15/f0028b78-6bd2-4be8-af63-08373d368abe1663221312002LevisMenWhiteSolidRoundNeckLoungeT-shirt3.jpg",
        "https://assets.myntassets.com/assets/images/12027436/2022/9/15/d6a98b6c-e152-4337-a0cf-2f3ab7a28cf01663221311982LevisMenWhiteSolidRoundNeckLoungeT-shirt2.jpg"
      ],
      "description": null,
      "attributes": [],
      "seller": null,
      "country_of_origin": null,
      "fetched_at": "2026-11-19T18:47:20.975306Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `sizes`: 4 items, the first 3 shown.
- Shortened: `images`: 7 items, the first 3 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Myntra scrapers](https://docs.enrichednow.com/results-and-statuses.md#myntra) are in their own section there.
