Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIMyntra

    myntra.search

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

    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; what a run costs is in Usage and units.

    Inputs

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

    Inputs of myntra.search
    FieldTypeDescription
    queryrequiredstringWords or a category as Myntra names it, e.g. men tshirts, nike, kurta sets.Limit: at least 1 characters, at most 150 characters.
    pageintegerThe 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.

    Record fields of myntra.search
    FieldTypeNotes
    positioninteger or nullThe product's place on its results page, from 1. Null for myntra.product.
    pageinteger or nullThe results page it is on. Null for myntra.product.
    product_idstringMyntra's id of the product (its style id), e.g. 1700944.
    urlstringThe product's page.
    titlestringThe product's name as Myntra shows it.
    brandstring or nullThe brand.
    categorystring or nullMyntra's kind of article, e.g. Tshirts, Lounge Tshirts.
    genderstring or nullWho it is for, as Myntra says: Men, Women, Boys, Girls, Unisex.
    colorstring or nullIts main colour, as Myntra names it.
    pricenumber or nullThe price Myntra shows, in Indian rupees.
    mrpnumber or nullThe maximum retail price printed beside it, in Indian rupees.
    discount_percentinteger or nullThe reduction Myntra prints beside the price, in percent. Null where it prints none, or prints it as an amount in rupees.
    ratingnumber or nullThe average of the product's ratings, out of 5.
    rating_countinteger or nullHow many ratings it has.
    sizesarray of objectThe sizes Myntra lists, with whether each is available.
    label (in sizes[])stringThe size as Myntra lists it, e.g. M, 32, UK8.
    available (in sizes[])boolean or nullTrue when Myntra shows the size as available to buy. A results card states it only for some sizes; null for the others.
    imagestring or nullThe product's main picture.
    imagesarray of stringEvery picture of the product. From myntra.product, and the search's own set for myntra.search.
    descriptionstring or nullThe product's description. From myntra.product only.
    attributesarray of objectThe product's attributes as its page lists them. From myntra.product only.
    name (in attributes[])stringWhat the attribute is, as Myntra names it, e.g. Fabric, Fit, Neck.
    value (in attributes[])stringIts value, e.g. Cotton, Regular Fit.
    sellerstring or nullThe business selling it on Myntra. From myntra.product only.
    country_of_originstring or nullWhere it was made, as the page states. From myntra.product only.
    fetched_atstring (date-time)When the page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    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"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("myntra.search", {"query": "men tshirts"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("myntra.search", { query: "men tshirts" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "myntra.search", map[string]any{"query": "men tshirts"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("myntra.search", Map.of("query", "men tshirts"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run myntra.search --input 'query=men tshirts'

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "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 lists every status and the reasons every scraper shares; the reasons of the Myntra scrapers are in their own section there.