# Nykaa Scraper (`tortuga/nykaa-scraper`) Actor

Nykaa beauty products by search term, category or brand: product id, URL, name, brand, price, MRP, discount, rating, review count, stock, shades and variants, offers and images. Optional product details. India's largest beauty store, JSON or CSV, no login.

- **URL**: https://apify.com/tortuga/nykaa-scraper.md
- **Developed by:** [Trevor Ortega](https://apify.com/tortuga) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.36 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Nykaa Scraper

Scrape Nykaa beauty products by search term, category page or brand page: product id, URL, name, brand, price, MRP, discount, rating, rating count, stock, shade count, offer text, images and category. Turn on details to add every shade or variant with its own price and stock, offers, all images, description, ingredients, review count, expiry and country of origin. No login, no browser, JSON, CSV or Excel export.

### What data does Nykaa Scraper extract?

| Field | Description |
|---|---|
| `id`, `url`, `sku` | Nykaa product id, product page URL and SKU |
| `name`, `brand` | Product name and brand |
| `price`, `mrp`, `discountPercent`, `currency` | Selling price, MRP and discount in INR |
| `rating`, `ratingCount`, `reviewCount` | Average rating, number of ratings and (details) number of written reviews |
| `inStock` | Whether Nykaa shows the product as available |
| `variantCount`, `variantType` | Number of shades or sizes and which kind |
| `offerText`, `offersCount`, `tags` | Listing offer text, number of offers and badges such as BESTSELLER |
| `category1`, `category2`, `category3` | Category path, for example Makeup > Lips > Lipstick |
| `imageUrl` | Main image |
| `variants` | Details: each shade or size with id, name, price, MRP, stock, pack size, SKU and image |
| `offers`, `images`, `description`, `ingredients`, `expiry`, `countryOfOrigin`, `seller` | Details: offer texts, all images and product facts |

### How to use Nykaa Scraper

1. Enter **Search terms** (for example `lipstick`) or paste **Start URLs** (a search, category or brand page, or a single product page).
2. Optionally choose a sort order, a minimum rating or in-stock only, and set **Max items**.
3. Turn on **Include details** if you need shades, offers, images and ingredients.
4. Click **Start**, then export the dataset or read it through the API.

### Input example

```json
{
  "searchTerms": ["lipstick"],
  "startUrls": [{ "url": "https://www.nykaa.com/brands/maybelline-new-york/c/596" }],
  "sortBy": "discount",
  "maxItems": 100,
  "includeDetails": false
}
```

### Output example

```json
{
  "id": "16439255",
  "url": "https://www.nykaa.com/kay-beauty-signature-creme-lipstick-panache/p/16439255",
  "name": "Kay Beauty Hydra Creme Serum Lipstick -Rich Color & Hyaluronic Acid for Deep Hydration",
  "brand": "Kay Beauty",
  "price": 1099,
  "mrp": 1099,
  "discountPercent": 0,
  "currency": "INR",
  "rating": 4.5,
  "ratingCount": 9645,
  "inStock": true,
  "variantCount": 20,
  "variantType": "shade",
  "offersCount": 2,
  "tags": ["FEATURED", "BESTSELLER"],
  "category1": "Makeup",
  "category2": "Lips",
  "category3": "Lipstick"
}
```

### Pricing

Pay per event. A product costs about $1.70 per 1,000 for paying Apify plans (the Store shows the exact figure for your plan), plus $0.80 per 1,000 products when **Include details** is on, and a small start fee per run. Volume tiers get 10 to 20 percent off.

| Event | Price |
|---|---|
| Product | $0.0017 |
| Product details (optional) | $0.0008 |
| Actor start | $0.00005 |

Platform usage is included in these prices. In our tests a listing run used about $0.013 of platform usage per 1,000 products and a run with details about $0.034 per 1,000.

### Monitor changes on a schedule

Turn on **Only new or changed items** and save the run as a Task with a Schedule. The Actor remembers what earlier runs of the same search returned and outputs only new products or products whose price, MRP or stock status changed. Unchanged products are not charged. Each item gets `changeType` ("new" or "changed") and, for changed items, `previousValues` with the old values. Use **Monitoring name** to keep several watches on the same search apart.

### FAQ

#### Does Nykaa Scraper need a login or cookies?

No. It reads the public product listing and product pages that any visitor sees.

#### How many products can I get per search?

Nykaa lists 20 products per page and the Actor follows the pages until it reaches Max items or the end of the result (a broad term such as "face wash" has over 1,000).

#### Are the prices in rupees?

Yes. Prices and MRP are in INR as shown on nykaa.com, and `discountPercent` is calculated from MRP and price.

#### Why do some runs show retries in the log?

Nykaa sometimes refuses a request from one IP address. The Actor retries on a fresh address, so results are complete, but a run with details can take a little longer.

#### Can I scrape Nykaa Fashion or Nykaa Man?

This Actor reads nykaa.com beauty and wellness pages. Other Nykaa sites use different pages and are not covered.

#### Legal

The Actor collects publicly visible product data (names, prices, ratings, images). It does not collect personal data. Use it in line with Nykaa's terms and the laws that apply to you.

# Actor input Schema

## `searchTerms` (type: `array`):

Words to search on nykaa.com, for example lipstick, face wash or vitamin c serum. One search per entry; a plain text value is accepted too. Nykaa sometimes answers a search with the matching category page, which is fine.

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

Nykaa search pages (https://www.nykaa.com/search/result/?q=serum), category pages or brand pages (https://www.nykaa.com/brands/maybelline-new-york/c/596), or single product pages (https://www.nykaa.com/<name>/p/<id>).

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

Order of the listing: popularity (Nykaa's default), discount, new_arrival, customer_top_rated, price_asc, price_desc or name. Ignored for URLs that already carry a sort.

## `minRating` (type: `number`):

Keep only products rated at least this high (Nykaa uses a 5-point scale, for example 4).

## `onlyInStock` (type: `boolean`):

Skip products Nykaa shows as out of stock.

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

Stop after this many products. Keeps cost predictable.

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

Open each product page to add shades and variants (name, price, MRP, stock, pack size), offer texts, all images, description, ingredients, review count, expiry, country of origin and seller. One extra request and one details charge per product.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only new products or products whose price, MRP or stock status changed. Use with a Schedule; unchanged items are not charged.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input.

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

Apify datacenter proxy works (default). Nykaa is served from India-friendly pages worldwide, so no country is needed.

## Actor input object example

```json
{
  "searchTerms": [
    "lipstick"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "lipstick"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/nykaa-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 = {
    "searchTerms": ["lipstick"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/nykaa-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 '{
  "searchTerms": [
    "lipstick"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tortuga/nykaa-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/nykaa-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/37sQRO3OjQ3YQxtyx/builds/DnAZfzucmnZWNbJtI/openapi.json
