2,122 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get a Nykaa product
Get one product of the Nykaa India store (nykaa.com) by its product id or its link: name, brand, price and maximum retail price in Indian rupees, discount, stock, rating, seller, pack size, expiry date, country of origin, categories, pictures, description, how to use, ingredients, offers, and each shade or size with its own id, price and stock. Give variantId to read one shade or size. An unknown id gives an error that says Nykaa has no such product.
List Nykaa bag items
List the bag (cart) of this browser in the Nykaa India store (nykaa.com): each line with its line id, product id, name, seller, quantity, unit price and line price, plus the number of units and the grand total, in Indian rupees. It reads the guest bag when nobody is signed in; Nykaa needs no delivery pincode for it. An empty bag returns no lines and a null total.
Search Nykaa products
Search products in the Nykaa India store (nykaa.com) by text. It returns up to 20 products per page with their id, brand, link, price and maximum retail price in Indian rupees, discount, rating and stock, plus the total number found. Nykaa sends some searches, for example "lipstick", to a category page: then the script returns that category's products and the category link in redirectUrl. Use page for the next pages and sort for the order Nykaa offers. A page past the last one returns an empty list. Nykaa can show a few near matches for a search with no exact match.
Add a product to the Nykaa bag
Add a product of the Nykaa India store (nykaa.com) to the bag of this browser, in the quantity you give. A product with shades or sizes needs variantId, from get-product. It returns the product id added and the bag after the change (lines, units, grand total in Indian rupees). It refuses an unknown product, a missing or wrong shade or size, a product out of stock, and a quantity below 1 or above the limit Nykaa sets for the product. It adds to the guest bag when nobody is signed in; Nykaa needs no delivery pincode for it. It never goes to checkout.
Remove a line from the Nykaa bag
Remove one line from the bag of this browser in the Nykaa India store (nykaa.com), by its lineId or productId from list_cart_items. It returns removed and the bag after the change (lines, units, grand total in Indian rupees). When the bag has no such line, it changes nothing and returns removed false. It works on the guest bag when nobody is signed in.
