{
  "openapi": "3.0.1",
  "info": {
    "title": "Myntra Product Search Scraper",
    "description": "Search Myntra by keyword or category URL and get fashion product cards: brand, name, price, MRP, discount, rating, rating count, sizes, colour, gender, category, sponsored flag, image and product URL. Results paginate automatically.",
    "version": "1.3",
    "x-build-id": "IppOO2jkOCXlvuFdl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~myntra-product-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-myntra-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~myntra-product-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-myntra-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~myntra-product-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-myntra-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "One keyword exactly as a shopper types it (e.g. 'running shoes', 'blue jeans', 'kurta'). Returns fashion product cards ranked by the chosen sort. For several keywords use 'Search keywords list'. Leave blank if you supply Myntra URLs."
          },
          "searches": {
            "title": "Search keywords list",
            "type": "array",
            "description": "Several keywords in one run (e.g. ['running shoes','kurta','sneakers']). Each is searched in turn; duplicates across keywords are removed. Results are shared under one 'Max products' limit.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Myntra search / category URLs",
            "type": "array",
            "description": "One or more Myntra search or category page URLs to scrape (e.g. 'https://www.myntra.com/men-tshirts' or 'https://www.myntra.com/blue-jeans?rawQuery=blue%20jeans'). Each URL is paginated independently. Product-detail pages ending in '/buy' and non-Myntra URLs are skipped. Use this for category browsing; use 'searchQuery' for a plain keyword.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum products returned across all searches and URLs. The run stops once reached. Default 100; 1 to 10000. You are billed only for products actually returned (one 'product' event each); your run spending limit is respected.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "new",
              "price_asc",
              "price_desc",
              "discount",
              "popularity"
            ],
            "type": "string",
            "description": "How Myntra orders the results before scraping. 'relevance' is Myntra's default ranking; 'discount' surfaces the biggest markdowns; 'price_asc'/'price_desc' sort by price; 'new' is freshest arrivals; 'popularity' is best-selling. Applies to 'searchQuery'; a 'sort' param inside a startUrl overrides this for that URL.",
            "default": "relevance"
          },
          "deepSearch": {
            "title": "Go past 500 results",
            "type": "boolean",
            "description": "Myntra shows about 500 products per view. When on (default), the run also reads the same search sorted other ways and split by brand, so large 'Max products' values can reach thousands of different products. Turn off for a single plain view.",
            "default": true
          },
          "minPrice": {
            "title": "Min price (INR)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or above this value (Indian rupees). Filtered-out products are never returned or billed."
          },
          "maxPrice": {
            "title": "Max price (INR)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or below this value (Indian rupees). Filtered-out products are never returned or billed."
          },
          "minDiscountPercent": {
            "title": "Min discount %",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Keep only products discounted by at least this percent off the list price (0-100). Filtered-out products are never returned or billed."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only products rated at least this value (0-5). Products without ratings are dropped when set. Filtered-out products are never returned or billed."
          },
          "brands": {
            "title": "Only these brands",
            "type": "array",
            "description": "Keep only products from these brands (case-insensitive), e.g. ['Roadster','Nike']. Also used to slice a big search by brand.",
            "items": {
              "type": "string"
            }
          },
          "onlyInStock": {
            "title": "Only in stock",
            "type": "boolean",
            "description": "Drop products that are sold out.",
            "default": false
          },
          "excludeSponsored": {
            "title": "Exclude sponsored",
            "type": "boolean",
            "description": "Drop paid ad placements from the results.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for all requests. Default: Apify datacenter proxy first, with automatic fallback to residential if Myntra blocks it. Attach your own proxies here to override.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}