# K-Beauty Price Comparison — 7 Stores, Verified (`epiconetic/kbeauty-price-comparison`) Actor

The same K-beauty product priced across 7 retailers — RoseRoseShop, Hermo, Soko Glam, Ohlolly, Peach & Lily, Wishtrend, Lila Beauty. Matched by brand, product line and size, all prices in USD, only verified gaps published. $0.008 per comparison, $0.0015 per catalogue row.

- **URL**: https://apify.com/epiconetic/kbeauty-price-comparison.md
- **Developed by:** [dedy iskandar](https://apify.com/epiconetic) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 cross-store price comparisons

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## K-Beauty Cross-Store Price Comparison

Find out what the same K-beauty product costs at seven different retailers — in one run,
in one currency.

Every other K-beauty scraper sells you **one store's** prices. That leaves you doing the
actual work: guessing whether two listings are the same product, checking whether one is a
15 ml mini and the other a 50 ml bottle, and converting MYR and AUD by hand before you can
compare anything. This Actor does that comparison and only publishes a price gap when the
product identity is verified.

### What you get

Two row types in one dataset.

**Cross-store price comparisons** — the differentiated output. One row per verified gap:

```json
{
  "matchTier": "verified",
  "brand": "IUNIK",
  "product": "volufiline grape pdrn serum",
  "sizeSignature": [[40.0, "volume"]],
  "cheapestStore": "lilabeauty",
  "cheapestPrice": 18.65,
  "cheapestLocal": 27.95,
  "cheapestCurrency": "AUD",
  "cheapestUrl": "https://www.lilabeauty.com.au/products/volufiline-grape-pdrn-serum-40ml",
  "dearestStore": "roseroseshop",
  "dearestPrice": 38.0,
  "dearestLocal": 38.0,
  "dearestCurrency": "USD",
  "dearestUrl": "https://www.roseroseshop.com/products/iunik-volufiline-grape-pdrn-serum-40ml",
  "savingPct": 50.9,
  "savingUsd": 19.35,
  "priceSpread": 2.04,
  "priceComparable": true,
  "flag": null,
  "fxSource": "open.er-api.com",
  "fxUpdatedAt": "Fri, 20 Nov 2026 00:02:32 +0000"
}
```

Read that as: the same 40 ml IUNIK serum is **50.9% cheaper at Lila Beauty** — $18.65 in
USD, against $38.00 at RoseRoseShop. Both sides carry the URL, so the claim is checkable
in one click.

**Product catalogue** — one row per product, prices already in USD:

```json
{
  "store": "roseroseshop",
  "title": "[DR.ALTHEA] Rapid Hypochlorous Acid Rescue Mist - 60ml / 100ml",
  "url": "https://www.roseroseshop.com/products/...",
  "vendor": "DR.ALTHEA",
  "product_type": "Skincare",
  "price_min": 16.0,
  "price_max": 25.0,
  "currency": "USD",
  "priceMinUsd": 16.0,
  "priceMaxUsd": 25.0,
  "in_stock": true
}
```

### Stores covered

| Store | Market | Local currency |
|---|---|---|
| RoseRoseShop | Korea | USD |
| Hermo | Malaysia | MYR |
| Soko Glam | USA | USD |
| Ohlolly | USA | USD |
| Peach & Lily | USA | USD |
| Wishtrend | Korea | USD |
| Lila Beauty | Australia | AUD |

All seven are public Shopify catalogues — no login, no API key, no proxy required.

### Why the comparisons can be trusted

Matching K-beauty products across stores is where every naive scraper breaks, because
titles are written by seven different merchandising teams. Four measured guards do the work:

- **Size signature.** `40ml`, `1.69 fl oz`, `10 x 30g` and `2ml x 10ea` all parse to a
  comparable signature. Two listings only compare if their signatures agree.
- **One-sided ambiguity gate.** An unsized listing (`Soothing Cream`) used to match two
  sizes at once and report a price that belonged to neither. It must now resolve to exactly
  one SKU and one price, or it is dropped.
- **Mini guard.** A 15 g mini at $2.50 against the 50 ml retail reads as a fake 5.8x saving.
  Anything under 30 g/ml, and anything marked sample or sachet, is never treated as a
  retail unit.
- **Strict token equality.** Brand and product-line tokens must match exactly after
  normalisation. A loose similarity rule was measured to admit `mask` vs `mask sheet` at
  0.842 similarity; it rescued no true pair and only added false ones.

Each comparison row is tiered:

| `matchTier` | Meaning |
|---|---|
| `verified` | Brand, product line and size signature all agree. Full price claim. |
| `size_resolved` | Size was recovered from variant data rather than the title. Price claim holds. |
| `title_only` | Identity is likely but size is not corroborated. **Never** published as a price claim. |

`priceSpread` is the ratio between the two prices. A spread above 4.0 is flagged
`implausible-spread` rather than hidden, so an outlier is visible instead of silently
suppressing a row.

### Input

| Field | Default | Notes |
|---|---|---|
| `stores` | all seven | Leave empty for all. Pick a subset to cut runtime. |
| `includeCatalog` | `true` | One row per product. |
| `includeComparisons` | `true` | One row per verified price gap. |
| `maxProductsPerStore` | `500` | The seven catalogues total ~6,400 products; `2000` covers almost all of them. |
| `maxItems` | `1000` | Row cap per output type. |
| `vendors` | `[]` | Case-insensitive exact brand filter. |
| `keywords` | `[]` | Title substring filter. |
| `inStockOnly` | `false` | Skip products with no available variant. |
| `minSavingPct` | `3` | Drop gaps below this. |

### Pricing

Pay per event — you are charged per row written, not for runtime.

| Event | Price | Unit |
|---|---|---|
| `price-comparison` | **$0.008** | one verified cross-store comparison row |
| `product-scraped` | **$0.0015** | one catalogue product row |

A default run (all seven stores, 500 products each, 1,000 row cap) costs about **$1.73**:
1,000 catalogue rows and ~29 comparison rows.

**Set `includeCatalog: false` if you only want the comparisons.** That is the cheap way to use
this Actor — around **$0.008 per comparison** and nothing else — and the comparison rows are the
part you cannot get anywhere else.

A full-catalogue run over all seven stores (~6,300 products, 175 comparisons) would cost about
$10.88. Apify's default per-run spending cap is lower than that, so such a run stops early: the
comparison rows are written first and always arrive in full, then catalogue rows fill the remaining
budget. Raise `maxTotalChargeUsd` on the run if you want the whole catalogue.

### Notes and known limits

- Products priced at `0.00` (freebies, sachets, out-of-stock listings) are skipped. They are
  not prices, and they are not billed.
- RoseRoseShop occasionally reuses a product handle across listings, so its `title` and
  `url` can disagree. The URL always resolves; the title is the store's own copy.
- FX rates come from `open.er-api.com`, cached for 12 hours. `fxSource` and `fxUpdatedAt` on
  every comparison row tell you which rate was used, so a stale rate is never mistaken for
  a fresh one.
- Coupang, Stylevana, Jolse, Olive Young, Althea and Gmarket are deliberately absent — they
  block automated access at the network level. Covering the seven above is what makes the
  prices hold up.

### Project layout

```
.
├── .actor/                  # actor.json, input/output/dataset schemas
├── my_actor/
│   ├── main.py              # entry point: collect, convert, charge, emit
│   └── kbeauty/
│       ├── stores.py        # seven-store Shopify fetcher (impit, browser fingerprint)
│       ├── normalize.py     # size parsing, brand keys, mini/sample guards
│       ├── matching.py      # cross-store pair matching + tiers
│       ├── compare.py       # comparison rows, savings, spread flags
│       └── fx.py            # live USD rates, cached, with fallback
├── tests/                   # 107 standalone assertions + input fixtures
├── scripts/                 # one-off probes that back the currency findings
├── REPORT.md                # build and verification checklist
└── requirements.txt
```

### Related

Full documentation of the source findings — which header breaks a browser fingerprint,
which store geo-localises its prices — is in `REPORT.md` and `scripts/`.

# Actor input Schema

## `stores` (type: `array`):

Which retailers to crawl. Leave empty to use all seven. Every store is a public Shopify catalogue, so no login or proxy is needed.

## `includeCatalog` (type: `boolean`):

Emit one row per product with price, stock, brand, category and URL. Charged per row as product-scraped.

## `includeComparisons` (type: `boolean`):

Match the same product across stores and emit one row per verified price gap, in USD. Charged per row as price-comparison. This is the differentiated output: only pairs where the match is verified are published as price claims.

## `maxProductsPerStore` (type: `integer`):

Cap how many products are read from each store. All seven catalogues total roughly 6,400 products at their current size, so 500 is a fast default and 2000 covers most stores fully.

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

Hard cap on rows written to the dataset for each of the two output types.

## `vendors` (type: `array`):

Only keep products whose brand matches one of these names (case-insensitive, exact). Empty means every brand.

## `keywords` (type: `array`):

Only keep products whose title contains at least one of these words. Empty means no keyword filtering.

## `inStockOnly` (type: `boolean`):

Skip products where no variant is available.

## `minSavingPct` (type: `number`):

Drop comparisons whose saving is smaller than this. Filters out pairs that are technically cheaper but not worth acting on.

## Actor input object example

```json
{
  "stores": [],
  "includeCatalog": true,
  "includeComparisons": true,
  "maxProductsPerStore": 500,
  "maxItems": 1000,
  "vendors": [],
  "keywords": [],
  "inStockOnly": false,
  "minSavingPct": 3
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epiconetic/kbeauty-price-comparison").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("epiconetic/kbeauty-price-comparison").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 '{}' |
apify call epiconetic/kbeauty-price-comparison --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epiconetic/kbeauty-price-comparison"
        }
    }
}
```

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/grPfQMNASQK5GjJP0/builds/CWIEkhbPQ3Njtt0Ss/openapi.json
