{"slug": "tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key", "title": "Tracking Sephora prices, sales and new launches with Python (no browser, no API key)", "summary": "An 18-year-old engineering student built the Sephora Products Scraper, a paid Apify actor that turns keyword searches, categories, brand pages and product URLs into clean JSON rows over plain HTTP, without a headless browser or API key. The tool reads Sephora's JSON catalog endpoint and the product records embedded in product pages, paces requests and rotates proxy sessions to get past Akamai bot protection, and supports filters for price, rating, brand, sale and new items across the US and Canadian stores. The author also demonstrates a daily sale tracker built on the actor's output.", "body_md": "I built this actor; it's a paid tool on Apify with a free trial credit. *This article was drafted with AI and published by me.*\n\nSephora is where beauty brands launch, so its catalog answers a lot of practical questions: what does a brand actually sell there and at what prices, which products are on sale this week, what launched in the last month, which face serums are rated 4 stars and up. The site has no export and no public API, and the obvious route (search page HTML in a headless browser) is slow and gets blocked.\n\nI'm an 18-year-old engineering student, and I built [Sephora Products Scraper](https://apify.com/rel8ble/sephora-products-scraper) to turn keyword searches, categories, brand pages and product URLs into clean JSON rows over plain HTTP. This post covers how it works, calling it from Python and Node, what a row looks like, and a small project: a daily sale tracker that tells you what went on sale and by how much.\n\nSephora's website loads its listings from a JSON catalog endpoint (about 100 products per request) and renders each product page with the full product record embedded in the HTML: every shade or size with its own price and stock flag, the ingredient list, the description, loves count and the review sentiment tags. The actor reads exactly those two things, paces requests and rotates proxy sessions because Sephora's Akamai protection blocks IPs that send bursts, and never touches the HTML search and browse pages that Sephora's robots.txt disallows.\n\nTwo modes:\n\n`variants` array with per-shade price, size, `isOutOfStock` and `isOnlyFewLeft`.\nFilters and sort are applied by Sephora before anything is charged: price range (`minPrice`, `maxPrice`), minimum rating (` minRating`), only these brand names (` brandFilter`), on sale only (` onSaleOnly`), new only (` newOnly`); sort by best selling, top rated, new or price. Both the US store (USD) and Sephora Canada (CAD) work with `country: \"us\" | \"ca\"`.\n\n``` python\nfrom apify_client import ApifyClient\n\nclient = ApifyClient(\"<YOUR_APIFY_TOKEN>\")\n\nrun = client.actor(\"rel8ble/sephora-products-scraper\").call(run_input={\n    \"categories\": [\"face-serum\"],\n    \"sortBy\": \"bestSelling\",\n    \"minRating\": \"4\",\n    \"maxItemsPerQuery\": 50,\n})\n\nfor item in client.dataset(run[\"defaultDatasetId\"]).iterate_items():\n    print(item[\"brand\"], \"|\", item[\"name\"], \"|\", item[\"price\"], item[\"currency\"], \"|\", item[\"rating\"], f\"({item['reviews']} reviews)\")\n```\n\nThe same in Node:\n\n``` js\nimport { ApifyClient } from 'apify-client';\n\nconst client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });\nconst run = await client.actor('rel8ble/sephora-products-scraper').call({\n    brands: ['the-ordinary'],\n    country: 'ca',\n    includeDetails: true,\n    maxItemsPerQuery: 0,\n});\nconst { items } = await client.dataset(run.defaultDatasetId).listItems();\nfor (const p of items) console.log(p.name, p.price, p.currency, p.variants.map((v) => `${v.name}: ${v.isOutOfStock ? 'OUT' : 'in stock'}`).join(', '));\n```\n\nA listing row from a `mascara` search (22 Oct 2026):\n\n```\n{\n    \"productId\": \"P467208\",\n    \"name\": \"Lash Idôle Lengthening & Volumizing Mascara\",\n    \"brand\": \"Lancôme\",\n    \"listPrice\": \"$16.00 - $30.00\",\n    \"price\": 16,\n    \"priceMax\": 30,\n    \"salePrice\": null,\n    \"currency\": \"USD\",\n    \"rating\": 4.4998,\n    \"reviews\": 10785,\n    \"variantsCount\": 2,\n    \"isBestseller\": true,\n    \"isNew\": false,\n    \"url\": \"https://www.sephora.com/product/lancome-lash-idole-lash-lifting-volumizing-mascara-P467208?skuId=2417145\",\n    \"position\": 1,\n    \"sourceType\": \"search\",\n    \"sourceQuery\": \"mascara\"\n}\n```\n\nWith details on, the same product also carries `description`, `ingredients`, `lovesCount`, `category` (`Makeup > Eye > Mascara`), `images`, `reviewSummary`, `sentiments` (`{\"name\": \"Applicator\", \"type\": \"pros\", \"count\": 76}` ...) and `variants`, one entry per shade or size with its own `price`, `size`, `isOutOfStock` and `url`.\n\nPrices are numbers, not strings, and `regularPrice`, `salePrice` and an `isOnSale` flag are separate fields, which is what makes the tracker below a 40-line script.\n\nThe idea: run the actor once a day on the categories you care about with `onSaleOnly: true`, keep yesterday's rows in a CSV, and print what is newly on sale, what got cheaper, and what dropped off sale. Sephora's sale prices change on a schedule (weekly events, brand promotions), so a daily diff catches almost everything.\n\n``` python\nimport csv, os, datetime\nfrom apify_client import ApifyClient\n\nCATEGORIES = [\"face-serum\", \"moisturizer-skincare\", \"mascara\", \"lipstick\", \"fragrance-women\"]\nclient = ApifyClient(\"<YOUR_APIFY_TOKEN>\")\n\nrun = client.actor(\"rel8ble/sephora-products-scraper\").call(run_input={\n    \"categories\": CATEGORIES,\n    \"onSaleOnly\": True,\n    \"maxItemsPerQuery\": 0,\n})\ntoday = {}\nfor it in client.dataset(run[\"defaultDatasetId\"]).iterate_items():\n    today[it[\"productId\"]] = {\n        \"brand\": it[\"brand\"], \"name\": it[\"name\"],\n        \"regular\": it[\"regularPrice\"], \"sale\": it[\"salePrice\"], \"url\": it[\"url\"],\n    }\n\npath = \"sephora-sales.csv\"\nyesterday = {}\nif os.path.exists(path):\n    with open(path, newline=\"\", encoding=\"utf-8\") as f:\n        for row in csv.DictReader(f):\n            yesterday[row[\"productId\"]] = row\n\nnew = [p for p in today if p not in yesterday]\ncheaper = [p for p in today if p in yesterday and float(yesterday[p][\"sale\"]) > today[p][\"sale\"]]\nended = [p for p in yesterday if p not in today]\n\nprint(f\"{datetime.date.today()}: {len(today)} products on sale, {len(new)} new, {len(cheaper)} cheaper, {len(ended)} ended\")\nfor p in sorted(new, key=lambda p: today[p][\"regular\"] - today[p][\"sale\"], reverse=True)[:15]:\n    t = today[p]\n    off = round(100 * (1 - t[\"sale\"] / t[\"regular\"]))\n    print(f\"  NEW  {t['brand']} - {t['name']}: {t['regular']} -> {t['sale']} ({off}% off)  {t['url']}\")\nfor p in cheaper:\n    t = today[p]\n    print(f\"  DOWN {t['brand']} - {t['name']}: {yesterday[p]['sale']} -> {t['sale']}\")\n\nwith open(path, \"w\", newline=\"\", encoding=\"utf-8\") as f:\n    w = csv.DictWriter(f, fieldnames=[\"productId\", \"brand\", \"name\", \"regular\", \"sale\", \"url\"])\n    w.writeheader()\n    for p, t in today.items():\n        w.writerow({\"productId\": p, **t})\n```\n\nCost scales with rows, not categories: at $0.85 per 1,000 products, 100 sale items a day is $0.085 and a full 1,000 is $0.85. Schedule the actor on Apify (or the script with cron) and pipe the output into Slack or a Google Sheet through Make, Zapier or n8n and you have a daily sale alert.\n\nThree variations that are one input change away:\n\n`newOnly: true, sortBy: \"newest\"` instead of `onSaleOnly`.` brands: [\"rare-beauty-by-selena-gomez\"], includeDetails: true, maxItemsPerQuery: 0` gives every product, every shade and its stock flag; diff `ingredients` locally for `Niacinamide` or `Retinol`.\n$0.85 per 1,000 products, no start fee, same price with or without details. Failed requests are never charged. A keyword search returns what Sephora's search returns (a nonsense keyword gets Sephora's fallback picks rather than nothing), so use categories or brands when you need an exact set. Details cost one request per product (about 1 MB each); a listing-only run does about 100 products per request. Reviews themselves are not collected, only rating, review count, loves and sentiment tags. US and Canada only; Sephora's other sites (sephora.fr, .co.uk, .com.au) are separate platforms and not covered.\n\nStore page: [https://apify.com/rel8ble/sephora-products-scraper](https://apify.com/rel8ble/sephora-products-scraper)\n\nNeed a custom scraper or a ready dataset? Hire me on Fiverr: [https://www.fiverr.com/rel8ble](https://www.fiverr.com/rel8ble)", "url": "https://wpnews.pro/news/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key", "canonical_source": "https://dev.to/rel8ble/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key-2pme", "published_at": "2026-11-19 18:32:54+00:00", "updated_at": "2026-11-19 18:44:07.620683+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["Sephora", "Apify", "Akamai", "Lancôme", "Python", "Node.js"], "also_reported_by": [], "takeaway": "The Sephora Products Scraper returns typed numeric prices plus per-variant price, size and stock flags by reading Sephora's JSON catalog endpoint and embedded product records over plain HTTP, avoiding the blocked headless-browser route.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key", "markdown": "https://wpnews.pro/news/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key.md", "text": "https://wpnews.pro/news/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key.txt", "jsonld": "https://wpnews.pro/news/tracking-sephora-prices-sales-and-new-launches-with-python-no-browser-no-api-key.jsonld"}}