Nykaa Scraper: how to get Beauty Products, Prices, Ratings as JSON/CSV (API, Python, no code)
Nykaa scraper for beauty products on nykaa.com. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/nykaa-scraper on Apify.
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
productId | Product ID | text | 745370 |
name | Name | text | Swiss Beauty Liquid Eyeliner - Jet Black |
brand | Brand | text | Swiss Beauty |
category | Category | text | Makeup / Eyes / Eyeliner |
price | Price (INR) | number | 160 |
mrp | MRP (INR) | number | 229 |
discountPercent | Discount % | number | 30 |
rating | Rating | number | 4.3 |
ratingCount | Reviews | number | 12108 |
inStock | In Stock | true/false | true |
imageUrl | Image | image URL | https://images-static.nykaa.com/media/catalog/product/tr:w-220,h-22... |
productUrl | Product URL | URL | https://www.nykaa.com/swiss-beauty-bold-eyes-liquid-eyeliner-black/... |
categoryUrl | text | https://www.nykaa.com/makeup/eyes/c/14 | |
offer | text | Get Complimentary Product | |
packSize | text | 4ml |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"categoryUrls": [
"https://www.nykaa.com/makeup/eyes/c/14"
],
"maxPages": 1,
"maxItems": 20
}
| Input field | Type | What it does |
|---|---|---|
categoryUrls | array | nykaa.com category pages such as https://www.nykaa.com/makeup/eyes/c/14 or https://www.nykaa.com/skin/moisturizers-and-creams/c/42. |
categories | array | Optional names such as lipstick, face wash or kajal, used when no category URL is given. |
maxPages | integer | How many listing pages to read per category URL. |
maxItems | integer | The run stops after this many result rows. |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"categoryUrl": "https://www.nykaa.com/makeup/eyes/c/14",
"productId": "745370",
"name": "Swiss Beauty Liquid Eyeliner - Jet Black",
"brand": "Swiss Beauty",
"category": "Makeup / Eyes / Eyeliner",
"price": 160,
"mrp": 229,
"discountPercent": 30,
"rating": 4.3,
"ratingCount": 12108,
"inStock": true,
"offer": "Get Complimentary Product",
"packSize": "4ml",
"imageUrl": "https://images-static.nykaa.com/media/catalog/product/tr:w-220,h-220,cm-pad_resize/f/7/f732ecb8904325004038_1.jpg",
"productUrl": "https://www.nykaa.com/swiss-beauty-bold-eyes-liquid-eyeliner-black/p/745370"
},
{
"categoryUrl": "https://www.nykaa.com/makeup/eyes/c/14",
"productId": "15708797",
"name": "Insight Cosmetics No Smudge Eyeliner",
"brand": "Insight Cosmetics",
"category": "Makeup / Eyes / Eyeliner",
"price": 95,
"mrp": 95,
"discountPercent": 0,
"rating": 4.3,
"ratingCount": 8518,
"inStock": true,
"offer": "Enjoy Complimentary Gift",
"packSize": "4g",
"imageUrl": "https://images-static.nykaa.com/media/catalog/product/tr:w-220,h-220,cm-pad_resize/8/c/8cecfd88904207513849_1.jpg",
"productUrl": "https://www.nykaa.com/insight-cosmetics-no-smudge-eyeliner/p/15708797"
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/nykaa-scraper.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'categoryUrls': ['https://www.nykaa.com/makeup/eyes/c/14'],
'maxPages': 1,
'maxItems': 20}
run = client.actor("v0iddo/nykaa-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"categoryUrls": [
"https://www.nykaa.com/makeup/eyes/c/14"
],
"maxPages": 1,
"maxItems": 20
};
const run = await client.actor('v0iddo/nykaa-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~nykaa-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"categoryUrls": ["https://www.nykaa.com/makeup/eyes/c/14"], "maxPages": 1, "maxItems": 20}'
Ready-to-run example scripts: example repository on GitHub.
Price
$2.07 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.449 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
Good to know
- Covers nykaa.com category listing pages in India. Paste any Nykaa category URL, for example https://www.nykaa.com/makeup/eyes/c/14 or https://www.nykaa.com/skin/moisturizers-and-creams/c/42.
- Category names (lipstick, face wash) are matched to the category pages of Nykaa's sitemap, because its search is closed to robots: lipstick reads Makeup / Lips / Lipstick first.
- Each page holds about 20 products; use maxPages to control depth. Large categories can have 100 or more pages.
- Prices are in Indian Rupees (INR) as shown to anonymous visitors without an account.
FAQ
What data does the Nykaa Scraper return?
Each result is one row in an Apify dataset. Fields include productId, name, brand, category, price, mrp, discountPercent, rating, and more. The table above shows every field with an example value.
How do I use the Nykaa Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/nykaa-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$2.07 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.449 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Related guides
- PriceCharting Scraper: Scrape PriceCharting prices for video games, Pokemon and other trading cards, comics, coins, Funko Pops and...
- Amazon Product Details Scraper: Scrape Amazon.com product pages from ASINs or links: title, brand, price, list price, rating, ratings count...
- AliExpress Scraper: AliExpress scraper for search results as product rows: product ID, title, sale price, discount, original pr...