# OliveYoung Global & KR Beauty Scraper — No Login ($1.80/1K) (`studio001/oliveyoung-global-kr-beauty-api`) Actor

No-login OliveYoung Global & KR beauty products, Top 100 Best Sellers, and trending K-Beauty API ($1.80/1K Gold, 256MB RAM). Split-proxy routing ($0 proxy on Global) extracting USD/KRW prices, discounts, ratings & reviews—MCP & Standby ready.

- **URL**: https://apify.com/studio001/oliveyoung-global-kr-beauty-api.md
- **Developed by:** [YEONG JUN YOO](https://apify.com/studio001) (community)
- **Categories:** E-commerce, AI, MCP servers
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 oliveyoung product or keywords extracted

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/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

## OliveYoung Global & KR Beauty API (올리브영 글로벌 · 한국몰 크롤러)

**Zero-browser, ultra-lightweight (`256 MB` RAM) OliveYoung Global & Korea Beauty Market Intelligence API — extracting dual-storefront K-Beauty catalogs, USD/KRW pricing parity, Top 100 Best Sellers, and live trending keywords with smart split-proxy routing.**

브라우저(Chromium/Playwright) 없이 **256 MB 초경량 Python 런타임**으로 \*\*올리브영 글로벌(`global.oliveyoung.com`)\*\*과 \*\*올리브영 한국몰(`oliveyoung.co.kr`)\*\*의 상품 검색 결과, 글로벌 Top 100 베스트셀러(`best_sellers`), 실시간 인기 검색어(`popular_keywords`), 오늘특가(`todaySpecial`), 오늘드림(`quickDelivery`), 평점·리뷰 수·할인율 데이터를 고속 JSON으로 추출합니다.

***

### Executive Value Proposition & Key Highlights (핵심 강점)

- **16x Lower RAM (`256 MB` vs `2,048–4,096 MB` Browser Scrapers)**: Queries OliveYoung Global's BFF APIs (`unified-search`, `order-best`, `popular`) and KR's `NewMainSearchApi.do` directly over HTTP/1.1 without launching Playwright or Chromium.
- **Smart Split-Proxy Routing (`$0` Proxy on Global + Auto KR Residential on KR)**:
  - Leaving `proxyConfiguration` at `{}` keeps **Global storefront (`global.oliveyoung.com`) at `$0` proxy cost** (direct connection, zero proxy waste).
  - Whenever `storefront` is `"kr"` or `"both"` on Apify Cloud, **only KR requests (`oliveyoung.co.kr`)** automatically route via KR Residential proxy (`apifyProxyCountry: "KR"`), avoiding wasteful residential bandwidth on Global calls.
- **3 Built-In Intelligence Modes**:
  1. **`search`**: Keyword & brand search across `"global"`, `"kr"`, or `"both"` simultaneously (`maxProductsPerQuery` up to `200`).
  2. **`best_sellers`**: Global Top 100 Best Sellers (`order-best` with automatic `product-ranking-service` fallback).
  3. **`popular_keywords`**: Real-time trending K-Beauty search terms and rank deltas (`rankDiff`).
- **Multi-Currency & Bilingual Brand Mapping**: Supports `USD`, `JPY`, `EUR`, `SGD`, `GBP` (`en`/`ja`) on Global and native `KRW` on KR—preserving both English (`brandName`, `productName`) and Korean (`originalBrandName`, `originalProductName`) names for effortless cross-border SKU matching.
- **`$0` Billing on Failed Operations**: Only verified `"status": "ok"` records trigger `product-extracted`. Failed storefront queries incur `$0` item fees.
- **AI Agents, MCP & Workflow Ready**: Works natively with `mcp.apify.com`, Claude Desktop, Cursor, VS Code, n8n, Make.com, Google Sheets, Python, and cURL.

***

### Competitor Comparison Benchmark (기존 크롤러 대비 비교)

| Feature / Metric | **OliveYoung Global & KR Beauty API (Studio 001)** | Generic Browser E-Commerce Scrapers | Custom Playwright / Puppeteer Scripts |
| :--- | :--- | :--- | :--- |
| **Transport Architecture** | **Direct BFF JSON + KR Search API (`http2=False`)** | Headless Chromium DOM scraping | Heavy browser page rendering |
| **Memory Footprint (RAM)** | **`256 MB`** (min `256 MB` / max `512 MB`) | `2,048–4,096 MB` (`8–16x` heavier) | `2,048–4,096 MB` |
| **Dual Storefront (Global + KR)** | **Native `"global"`, `"kr"`, and `"both"` in 1 run** | Usually single storefront only | Requires two separate scripts |
| **Global Proxy Cost** | **`$0` proxy default** (split-routing keeps Global direct) | Often forces paid residential proxy on everything | High residential MB consumption (JS/images) |
| **Pricing (FREE -> GOLD)** | **`$2.50 / 1K` (`FREE`) -> `$1.80 / 1K` (`GOLD`)** | `$4.00–$10.00 / 1K` + high CU & proxy fees | Expensive CU + residential proxy overhead |
| **Actor Start Fee** | **`$0.00005`** | `$0.005–$0.01+` | Variable compute startup |
| **Failed Query Charge** | **`$0` item charge on failed ops** | Often bills compute/proxy on retries | Full compute & proxy cost wasted |
| **K-Beauty Merchandising Flags** | **`todaySpecial`, `quickDelivery` (오늘드림), `isBestSeller`, `isSoldOut`** | Partial / breaks on badge CSS shifts | Manual selector maintenance |
| **Double-Encoded KR JSON Handling** | **Triple-pass unwrap + HTML WAF safe guard** | Crashes on double-encoded strings | Fragile regex/DOM parsing |

***

### Real-World Use Cases (주요 활용 사례)

#### 1. K-Beauty Global Pricing Parity & Margin Monitoring (글로벌 vs 한국몰 가격 격차 분석)

Compare `salePrice` and `discountRate` across `oliveyoung.co.kr` (`KRW`) and `global.oliveyoung.com` (`USD`, `JPY`, `EUR`, `SGD`, `GBP`) in a single `"storefront": "both"` run—identifying cross-border arbitrage, export pricing gaps, and promotional cadence (`todaySpecial`).

#### 2. OliveYoung Top 100 Best Sellers & Breakout Brand Detection (글로벌 베스트셀러 랭킹 추적)

Schedule daily `mode: "best_sellers"` and `mode: "popular_keywords"` snapshots to detect which Korean skincare brands (Round Lab, Aestura, Mediheal, Anua, Torriden) are climbing in rank, surging in `popular_keywords` (`rankDiff`), or running low on stock (`isSoldOut: true`).

#### 3. Assortment Intelligence & Today Dream (오늘드림) Merchandising Audits

Track `categoryName` taxonomy (`뷰티 > 선케어 > 선크림`), `quickDelivery` (`오늘드림` availability), `isBestSeller`, `rating`, and `reviewCount` (combining `PRMUM_GDAS_TOT_CNT` + `ONE_LINE_GDAS_TOT_CNT`) across competing SKUs.

#### 4. AI RAG & Autonomous K-Beauty Merchandising Agents (AI 에이전트 · RAG 연동)

Connect directly via `mcp.apify.com` so AI retail analysts or shopping copilots can answer prompts like *"Find the top 20 OliveYoung Global serums under $30, compare with KRW retail prices, and flag which ones are Today's Special."*

***

### Quick-Start Input Examples (입력 예시)

#### 1. Default Quick-Start (Global Storefront — `$0` Proxy)

```json
{
  "mode": "search",
  "storefront": "global",
  "queries": ["serum"],
  "maxProductsPerQuery": 24,
  "currency": "USD",
  "language": "en",
  "includeDetails": false,
  "proxyConfiguration": {}
}
```

#### 2. Dual-Storefront K-Beauty Price Parity (`global` + `kr` with Split-Proxy)

```json
{
  "mode": "search",
  "storefront": "both",
  "queries": ["sunscreen", "선크림"],
  "maxProductsPerQuery": 24,
  "currency": "USD",
  "language": "en",
  "includeDetails": true,
  "proxyConfiguration": {},
  "maxTotalChargeUsd": 0.50
}
```

#### 3. Global Top 100 Best Sellers (`best_sellers` Mode)

```json
{
  "mode": "best_sellers",
  "maxProductsPerQuery": 100,
  "currency": "USD",
  "language": "en",
  "includeDetails": false
}
```

#### 4. Live Trending K-Beauty Keywords (`popular_keywords` Mode)

```json
{
  "mode": "popular_keywords",
  "language": "en"
}
```

***

### Input Parameter Reference (입력 파라미터 명세)

| Parameter | Type | Default / Prefill | Constraints / Values | Description |
| :--- | :--- | :--- | :--- | :--- |
| `mode` | `string` | `"search"` | `"search"`, `"best_sellers"`, `"popular_keywords"` | Selects keyword search, Global Top 100 Best Sellers, or trending K-Beauty keywords. |
| `storefront` | `string` | `"global"` | `"global"`, `"kr"`, `"both"` | Used in `search` mode (`best_sellers` and `popular_keywords` query Global APIs). `"both"` fetches Global (`$0` proxy) + KR (auto KR Residential on Cloud) concurrently. |
| `queries` | `array<string>` | `["serum"]` | Product / brand keywords | Search keywords for `search` mode (also accepts comma/newline string or single `query` alias). |
| `maxProductsPerQuery` | `integer` | `24` | `1` to `200` | Maximum products returned per query (Global paginates up to 48/page; KR paginates 24/page) or per `best_sellers` ranking. |
| `currency` | `string` | `"USD"` | `"USD"`, `"JPY"`, `"EUR"`, `"SGD"`, `"GBP"` | Currency code sent to OliveYoung Global APIs (`currency-code` header). KR storefront always returns `"KRW"`. |
| `language` | `string` | `"en"` | `"en"`, `"ja"` | Language code sent to OliveYoung Global APIs (`language-code` header). |
| `includeDetails` | `boolean` | `false` | `true` / `false` | When `true`, fetches Global product detail HTML (for up to the first 50 Global `search`/`best_sellers` items) to enrich `rating`, `reviewCount`, and `description` via schema.org JSON-LD. |
| `proxyConfiguration` | `object` | `{}` | Apify Proxy config | Empty `{}` enables smart split-proxy routing: Global stays `$0` proxy-free, while KR auto-uses KR Residential on Apify Cloud. Set `{"useApifyProxy": false}` to disable proxy on KR too. |
| `maxTotalChargeUsd` | `number` | `null` (unlimited) | `>= 0` | Hard Pay-Per-Event USD spending cap for the run. |

***

### Output Examples & Field-by-Field Data Dictionary

#### Sample Output Record (`storefront: "kr"`, `mode: "search"`)

```json
{
  "storefront": "kr",
  "mode": "search",
  "query": "선크림",
  "rank": 1,
  "productId": "A000001005206",
  "productName": "라운드랩 자작나무 수분 선크림",
  "originalProductName": "라운드랩 자작나무 수분 선크림",
  "brandName": "Round Lab",
  "originalBrandName": "라운드랩",
  "categoryName": "뷰티 > 선케어 > 선크림",
  "currency": "KRW",
  "regularPrice": 25000.0,
  "salePrice": 19900.0,
  "discountRate": 20.4,
  "rating": 9.6,
  "reviewCount": 35523,
  "isSoldOut": false,
  "isBestSeller": true,
  "todaySpecial": false,
  "quickDelivery": true,
  "imageUrl": "https://image.oliveyoung.co.kr/cfimages/cf-goods/uploads/images/thumbnails/10/0000/0100/a.png",
  "productUrl": "https://www.oliveyoung.co.kr/store/goods/getGoodsDetail.do?goodsNo=A000001005206",
  "status": "ok"
}
```

#### Sample Output Record (`storefront: "global"`, `mode: "search"`, `includeDetails: true`)

```json
{
  "storefront": "global",
  "mode": "search",
  "query": "cream",
  "rank": 1,
  "productId": "GA261044273",
  "productName": "AESTURA Atobarrier 365 Cream",
  "originalProductName": "에스트라 아토베리어365 크림",
  "brandName": "AESTURA",
  "originalBrandName": "에스트라",
  "categoryName": null,
  "currency": "USD",
  "regularPrice": 69.0,
  "salePrice": 51.68,
  "discountRate": 25.1,
  "rating": 4.8,
  "reviewCount": 512,
  "isSoldOut": false,
  "isBestSeller": null,
  "todaySpecial": true,
  "quickDelivery": null,
  "imageUrl": "https://cdn-image.oliveyoung.com/catalog/product/GA261044273/thumb.jpg",
  "productUrl": "https://global.oliveyoung.com/product/detail?prdtNo=GA261044273",
  "description": "Deep barrier moisturizing cream formulated with high-density ceramides.",
  "status": "ok"
}
```

#### Dataset Field Dictionary

| Field | Type | Global | KR | Description |
| :--- | :--- | :---: | :---: | :--- |
| `storefront` | `string` | `"global"` | `"kr"` | Source storefront (`"global"` or `"kr"`). |
| `mode` | `string` | Yes | Yes | Extraction mode: `"search"`, `"best_sellers"`, or `"popular_keywords"`. |
| `query` | `string` | Yes | Yes | Search keyword, `"best-seller"` / `"sales-ranking"`, or `"popular_keywords"`. |
| `rank` | `integer \| null` | Yes | Yes | 1-based position in search results, Top 100 ranking, or trending keywords. |
| `productId` | `string \| null` | `GA...` / `kw-#` | `A000...` | OliveYoung Global `prdtNo`, KR `GOODS_NO`, or `"kw-{rank}"` for keywords. |
| `productName` | `string \| null` | EN/JA title | KR title | Localized product title (or keyword string in `popular_keywords` mode). |
| `originalProductName` | `string \| null` | KR title | KR title | Native Korean product title (`korPrdtName` / `GOODS_NM`). |
| `brandName` | `string \| null` | EN brand | EN or KR | Brand name (`ONL_BRND_NM_EN` fallback to `ONL_BRND_NM` on KR). |
| `originalBrandName` | `string \| null` | KR brand | KR brand | Original Korean brand name (`korBrandName` / `ONL_BRND_NM`). |
| `categoryName` | `string \| null` | `null` / `"popular_keyword"` | Breadcrumb | 3-level KR category string (`LRG > MID > SML`). |
| `currency` | `string \| null` | `USD`, etc. | `"KRW"` | Currency code (`null` in `popular_keywords`). |
| `regularPrice` | `number \| null` | Yes | Yes | List / normal price (`NORM_PRC` on KR, `subPrice`/`nrmlAmt` on Global). |
| `salePrice` | `number \| null` | Yes | Yes | Current selling price (`SALE_PRC` on KR, `salePriceUsd`/`saleAmt` on Global). |
| `discountRate` | `number \| null` | Yes | Computed % | Percentage discount (`0–100`). Computed cleanly on KR if omitted. |
| `rating` | `number \| null` | 0–5 scale | 0–10 scale | Product rating (`order-best` / JSON-LD `includeDetails` on Global; `GOODS_EVAL_SCR_VAL` 0–10 scale on KR). |
| `reviewCount` | `integer \| null` | JSON-LD / `best_sellers` | Yes | Review count (on KR, sums `PRMUM_GDAS_TOT_CNT` + `ONE_LINE_GDAS_TOT_CNT`). |
| `isSoldOut` | `boolean \| null` | Yes | Yes | Out-of-stock status (`GOODS_SOUT_INFO == "Y"` on KR). |
| `isBestSeller` | `boolean \| null` | In `best_sellers` | Yes | Best-seller badge (`BEST_GOODS_YN == "Y"` on KR). |
| `todaySpecial` | `boolean \| null` | `isFlash` / `flashYn` | `TODAY_SPECIAL_YN` | Today's Special / Flash deal flag. |
| `quickDelivery` | `boolean \| null` | `null` | `QUICK_YN` | OliveYoung KR Today Dream (`오늘드림`) rapid local delivery eligibility. |
| `imageUrl` | `string \| null` | CDN URL | CDN URL | Full `https://cdn-image.oliveyoung.com/...` or `https://image.oliveyoung.co.kr/...` thumbnail URL. |
| `productUrl` | `string \| null` | Yes | Yes | Canonical product detail URL (or Global search URL for `popular_keywords`). |
| `description` | `string` (opt.) | With `includeDetails` | — | Up to 400 chars from schema.org `Product.description` on Global items. |
| `rankDiff` | `integer \| string \| null` | In `popular_keywords` | — | Rank change delta returned by Global `popular` keywords endpoint. |
| `status` | `string` | `"ok"` | `"ok"` | `"ok"` for valid extracted items. |

#### Key-Value Store Telemetry (`OUTPUT_METRICS`)

Logs `counts`, `bronze_total_usd`, `blended_total_usd`, `productsTotal`, `productsBilled`, `failedOps`, `requestCount`, `globalProxyUsed`, `krProxyUsed`, `globalWireBytesIn`, `krWireBytesIn`, `wire_bytes_in`, `wire_bytes_out`, `elapsed_sec`, and `unit_economics_1k`.

***

### Transparent PPE Pricing & $5 Free Tier Cost Estimator

#### Pay-Per-Event (PPE) Schedule

| Event Name | Trigger Condition | FREE | BRONZE | SILVER | GOLD |
| :--- | :--- | :---: | :---: | :---: | :---: |
| `apify-actor-start` | One-time run initialization | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `product-extracted` | Per valid product or keyword (`status: "ok"`; `$0` on failed ops) | `$0.0025` | `$0.0022` | `$0.0020` | `$0.0018` |

#### $5.00 Free Tier Monthly Credit Estimator

| Workload Scenario | Storefront / Mode | Extracted Items | FREE Tier PPE Cost | Monthly Runs on $5 Credit |
| :--- | :---: | :---: | :---: | :---: |
| **Quick Serum Check (1 query × 24 items)** | `global` / `search` | `24` | **`$0.06005`** (`$0.00005 + 24 × $0.0025`) | ~**81 runs** (`1,944+` products/mo) |
| **Global Top 100 Best Sellers Snapshot** | `global` / `best_sellers` | `100` | **`$0.25005`** (`$0.00005 + 100 × $0.0025`) | ~**19 weekly snapshots** (`1,900+` ranks/mo) |
| **Dual Global + KR Parity Audit (2 queries × 25 × 2)** | `both` / `search` | `100` | **`$0.25005`** (`$0.00005 + 100 × $0.0025`) | ~**19 full audits/mo** |
| **Max Catalog Pull (1,000 products, FREE vs GOLD)** | `global` or `kr` | `1,000` | **`$2.501` (`FREE`) / `$1.801` (`GOLD`)** | **`$1.80 / 1K` on GOLD tier** |

***

### AI Agents, MCP & Skills Ready

#### 1. Copy-Paste `mcp.apify.com` Config (Claude Desktop / Cursor / VS Code)

Connect `studio001/oliveyoung-global-kr-beauty-api` via `https://mcp.apify.com/?actors=studio001/oliveyoung-global-kr-beauty-api`.

##### Remote Streamable HTTP / SSE Config (Cursor / VS Code `.vscode/mcp.json`)

```json
{
  "mcpServers": {
    "oliveyoung-beauty-api": {
      "url": "https://mcp.apify.com/?actors=studio001/oliveyoung-global-kr-beauty-api",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

##### Claude Desktop `claude_desktop_config.json` (via `mcp-remote`)

```json
{
  "mcpServers": {
    "oliveyoung-beauty-api": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=studio001/oliveyoung-global-kr-beauty-api",
        "--header",
        "Authorization: Bearer ${APIFY_TOKEN}"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### 2. For AI Agents & LLMs — Copy-Paste Skill Block

```markdown
#### Skill: OliveYoung K-Beauty Catalog & Price Parity (`studio001/oliveyoung-global-kr-beauty-api`)
- **When to use**: User asks for K-Beauty products, OliveYoung Global USD/JPY/EUR prices, OliveYoung Korea KRW prices, Top 100 Best Sellers, or trending K-Beauty keywords.
- **Actor ID**: `studio001/oliveyoung-global-kr-beauty-api` (256 MB RAM, `$0` proxy on Global, automatic KR Residential split-routing for KR).
- **Recommended Safe Input**:
  - `mode`: `"search"`, `"best_sellers"`, or `"popular_keywords"`.
  - `storefront`: `"global"` (`$0` proxy, USD/EN), `"kr"` (KRW/KO), or `"both"` for side-by-side price comparison.
  - `queries`: e.g. `["serum", "sunscreen"]` for Global or `["선크림", "세럼"]` for KR.
  - `maxProductsPerQuery`: `20–50` for fast interactive replies; `100` for full Top 100 rankings.
  - `includeDetails`: `true` only when ratings/reviews/descriptions are needed for Global `search` items.
  - `proxyConfiguration`: always pass `{}` so Global stays `$0` proxy while KR uses split-routing on Cloud.
  - `maxTotalChargeUsd`: set a conservative guard (e.g. `0.25`).
- **Output Interpretation**: Note that Global `rating` is on a `0–5` scale whereas KR `rating` (`GOODS_EVAL_SCR_VAL`) is on a `0–10` scale. Match products across storefronts using `originalProductName` and `originalBrandName`.
```

#### 3. n8n / Make.com / Google Sheets 3-Minute Non-Coder & Cron Workflow Guide

Pre-built n8n blueprints, Make.com scenarios, and Python helpers are hosted at:
👉 **<https://github.com/yeongjunyoo/studio001-apify-clients>**

1. **Weekly K-Beauty Best Sellers Tracker in n8n (3 Minutes)**:
   - **Schedule Trigger** (weekly) -> **Apify -> Run Actor** (`studio001/oliveyoung-global-kr-beauty-api`, `memory: 256`, `"mode": "best_sellers"`, `"maxProductsPerQuery": 100`) -> **Apify -> Get Dataset Items** -> **Google Sheets** (`rank`, `brandName`, `productName`, `salePrice`, `discountRate`, `rating`, `reviewCount`, `todaySpecial`).
2. **Make.com Price Drop & Sold-Out Alert**:
   - Trigger **Apify — Run an Actor** (`storefront: "both"`, `queries: ["선크림"]`) -> Filter `todaySpecial = true` or `isSoldOut = true` -> Send Slack / Telegram / Email alert.
   - Download templates directly from [github.com/yeongjunyoo/studio001-apify-clients](https://github.com/yeongjunyoo/studio001-apify-clients).

#### 4. Python (`apify-client`) & cURL Quickstart

##### Python (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("studio001/oliveyoung-global-kr-beauty-api").call(
    run_input={
        "mode": "search",
        "storefront": "both",
        "queries": ["sunscreen", "선크림"],
        "maxProductsPerQuery": 24,
        "currency": "USD",
        "language": "en",
        "includeDetails": True,
        "proxyConfiguration": {},
        "maxTotalChargeUsd": 0.50,
    },
    memory_mbytes=256,
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["storefront"], item["rank"], item["brandName"], item["salePrice"], item["currency"])
```

##### cURL (Synchronous Run Returning Dataset Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/studio001~oliveyoung-global-kr-beauty-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN&memory=256" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "best_sellers",
    "maxProductsPerQuery": 50,
    "currency": "USD",
    "language": "en",
    "proxyConfiguration": {},
    "maxTotalChargeUsd": 0.25
  }'
```

***

### Architecture, Anti-Bot Politeness & Troubleshooting

#### Split-Proxy Transport & WAF-Safe Engineering

1. **Isolated Dual HTTP/1.1 Clients (`http2=False`)**: `main.py` creates separate `InstrumentedAsyncClient` contexts for Global (`global_client`) and KR (`kr_client`). Even when `storefront: "both"` runs concurrently, Global traffic never leaks into paid Residential proxy usage (`globalProxyUsed: false`), while KR traffic routes via KR Residential on Apify Cloud (`krProxyUsed: true`).
2. **Direct Search API Over HTML Scraping**: On KR (`oliveyoung.co.kr`), scraping full storefront HTML triggers aggressive WAF checks and wastes bandwidth. Instead, `kr_search.py` posts form queries directly to `NewMainSearchApi.do` (`X-Requested-With: XMLHttpRequest`, `0.25s` pagination delay), unwrapping up to 3 layers of double/triple-encoded JSON strings safely and gracefully returning `([], 0)` if an upstream HTML challenge appears.
3. **Graceful Best-Seller Fallback**: `fetch_global_best_sellers` queries `order-best` first for full prices, discounts, ratings, and review counts, and automatically falls back to `product-ranking-service` (`sales/products`) if the primary endpoint is temporarily unavailable.
4. **Bounded Concurrency & Detail Cap**: Search workers run at `Semaphore(2)` and optional JSON-LD detail enrichment is bounded at `Semaphore(5)` across up to 50 items so target servers are never overwhelmed.

#### Troubleshooting Matrix

| Symptom | Likely Cause | Fix / Action |
| :--- | :--- | :--- |
| **`storefront: "kr"` returns `0` items or appears in `failedOps`** | `proxyConfiguration` was explicitly set to `{"useApifyProxy": false}` on Cloud, or non-KR proxy IP blocked | Leave `proxyConfiguration` as `{}` so Apify Cloud automatically provisions `RESIDENTIAL` (`KR`) for KR requests only. |
| **Global `search` items show `rating: null` and `reviewCount: null`** | OliveYoung's `unified-search` API omits rating/review fields in list payloads | Set `"includeDetails": true` (enriches up to 50 Global items via schema.org JSON-LD) or use `"mode": "best_sellers"` / `"storefront": "kr"`. |
| **KR `rating` values look like `9.6` while Global shows `4.8`** | OliveYoung KR natively scores reviews out of `10.0`, while Global scores out of `5.0` | Divide KR `rating` by `2` when normalizing into a unified 5-star table. |
| **`queries` ignored in `best_sellers` or `popular_keywords` mode** | Those modes pull platform-wide Top 100 rankings and global trending search terms | Use `"mode": "search"` whenever you want keyword-specific filtering. |
| **Run stops early before reaching `maxProductsPerQuery`** | `maxTotalChargeUsd` cap reached or catalog has fewer matching items | Check `OUTPUT_METRICS.counts` and raise `maxTotalChargeUsd` if needed. |

***

### Frequently Asked Questions (FAQ)

**Q: 올리브영 글로벌과 한국몰을 동시에(`storefront: "both"`) 수집할 때 프록시 비용은 어떻게 처리되나요?**\
`proxyConfiguration: {}` 기본 설정에서는 **글로벌(`global.oliveyoung.com`) 요청은 프록시를 전혀 쓰지 않고(`$0` 프록시)** 직접 연결되며, **한국몰(`oliveyoung.co.kr`) 요청만** Apify Cloud에서 자동으로 `KR Residential` 프록시를 사용합니다. 불필요한 프록시 과금을 원천 차단합니다.

**Q: Which currencies and languages does OliveYoung Global support?**\
Pass `currency` (`USD`, `JPY`, `EUR`, `SGD`, `GBP`) and `language` (`en`, `ja`). OliveYoung KR (`storefront: "kr"`) always returns native `KRW` prices and Korean product names alongside English brand names (`originalBrandName` / `brandName`).

**Q: How are KR review counts calculated?**\
OliveYoung KR separates photo/premium reviews (`PRMUM_GDAS_TOT_CNT`) and one-line reviews (`ONE_LINE_GDAS_TOT_CNT`). This Actor sums both automatically into `reviewCount` to match the storefront total.

**Q: Are failed queries or empty results charged?**\
No. Only verified `"status": "ok"` records trigger `product-extracted`. Failed storefront calls are logged in `OUTPUT_METRICS.failedOps` with `$0` item fees.

**Q: How do I get `todaySpecial` (오특) and `quickDelivery` (오늘드림) signals?**\
Both boolean flags are extracted automatically in `search` mode (`TODAY_SPECIAL_YN` and `QUICK_YN` on KR; `isFlash` on Global for `todaySpecial`).

***

### Use as a Real-Time API or Native MCP Server (Standby)

Fetch OliveYoung Global & KR beauty prices, rankings, and product telemetry synchronously over Apify Standby mode:

- **Native MCP Endpoint (`LIMITED_PERMISSIONS`, `256 MB`):** `https://studio001--oliveyoung-global-kr-beauty-api.apify.actor/mcp` (`tools/list` exposes `search_oliveyoung_products`)
- **Instant REST Endpoint:** `POST https://studio001--oliveyoung-global-kr-beauty-api.apify.actor/api/run`

```bash
curl -X POST "https://studio001--oliveyoung-global-kr-beauty-api.apify.actor/api/run" \
  -H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "search", "storefront": "global", "queries": ["serum"], "maxProductsPerQuery": 3}'
```

***

### More High-Reliability APIs by Studio 001

Explore the complete Studio 001 suite of `256 MB` zero-browser, Pay-Per-Event APIs on Apify Store:

| Studio 001 Actor | Category | Core Capability | Apify Store URL |
| :--- | :--- | :--- | :--- |
| **Google Hotels Multi-OTA Monitor** | Travel / Pricing | Multi-OTA hotel prices (Booking, Expedia, Agoda, Official Site) via direct RPC | [apify.com/studio001/google-hotels-multi-ota-monitor](https://apify.com/studio001/google-hotels-multi-ota-monitor) |
| **YouTube Transcript & Chapters Pro API** | AI / Video | Timestamped YouTube transcripts, chapter breakdowns, and clean text for RAG | [apify.com/studio001/youtube-transcript-chapters-pro-api](https://apify.com/studio001/youtube-transcript-chapters-pro-api) |
| **Instagram Reels AI Transcript & Hook Extractor** | Social / AI | Reels metadata, audio transcripts, and viral opening hook extraction | [apify.com/studio001/instagram-reels-ai-transcript-hook-extractor](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor) |
| **B2B Domain Email Finder & SMTP/MX Verifier** | Lead Gen | Domain email discovery with live DNS MX & SMTP deliverability verification | [apify.com/studio001/b2b-email-finder-smtp-mx-verifier](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) |
| **Google Ads Transparency Direct-RPC** | Lead Gen / Ads | Verified advertiser IDs, TEXT/IMAGE/VIDEO creatives, copy & YouTube ad URLs | [apify.com/studio001/google-ads-transparency-direct-rpc](https://apify.com/studio001/google-ads-transparency-direct-rpc) |
| **Naver Blog & Cafe Pro Scraper** | Social / Korea | Korean Naver Blog & Cafe posts, metadata, and public comments (`$0` on locked) | [apify.com/studio001/naver-blog-cafe-pro-scraper](https://apify.com/studio001/naver-blog-cafe-pro-scraper) |
| **Coupang Search & Product Detail Pro API** | E-Commerce / Korea | Coupang KR search, Rocket Delivery badges, organic ranks, and product details | [apify.com/studio001/coupang-search-detail-pro-api](https://apify.com/studio001/coupang-search-detail-pro-api) |
| **ATS Direct Multi-Board Jobs Feed** | Jobs / Intelligence | Direct structured job postings across Greenhouse, Lever, Ashby & corporate ATS feeds | [apify.com/studio001/ats-jobs-direct-api](https://apify.com/studio001/ats-jobs-direct-api) |
| **YouTube Channel Search & Creator Discovery Pro API** | Creators / Marketing | Channel discovery, subscriber/view metrics, and creator prospecting at scale | [apify.com/studio001/youtube-channel-search-pro-api](https://apify.com/studio001/youtube-channel-search-pro-api) |
| **Similarweb Traffic & Channel Intel API** | Marketing / B2B / MCP | Monthly visits, bounce rate, channel split, geo & competitors (`UNBLOCKER`) | [apify.com/studio001/similarweb-traffic-channel-intel-api](https://apify.com/studio001/similarweb-traffic-channel-intel-api) |
| **AI Search & AEO Brand Monitor** | AI / SEO / MCP | Google AI Overviews, Perplexity, ChatGPT & Gemini brand citations & share of voice | [apify.com/studio001/ai-search-aeo-brand-monitor](https://apify.com/studio001/ai-search-aeo-brand-monitor) |

#### Recommended Multi-Actor Pipeline Chains

1. **K-Commerce Full-Funnel Intelligence Stack (#6 Naver + #7 OliveYoung + #8 Coupang)**
   - **Step 1 (Buzz Discovery)**: Pull `popular_keywords` and `best_sellers` via [OliveYoung Global & KR Beauty API](https://apify.com/studio001/oliveyoung-global-kr-beauty-api) (`storefront: "both"`), then validate organic Korean consumer sentiment on those rising SKUs with [Naver Blog & Cafe Pro Scraper](https://apify.com/studio001/naver-blog-cafe-pro-scraper).
   - **Step 2 (Cross-Channel Price & Rocket Delivery Benchmarking)**: Feed top OliveYoung KR SKUs (`originalProductName`) into [Coupang Search & Product Detail Pro API](https://apify.com/studio001/coupang-search-detail-pro-api) to compare Coupang Rocket Delivery pricing, `discountRate`, and `organicRank` against OliveYoung `todaySpecial` promotions.
   - **Step 3 (Influencer & Ad Creative Tracking)**: Track beauty brand video ad creatives via [Google Ads Transparency Direct-RPC](https://apify.com/studio001/google-ads-transparency-direct-rpc) and viral short-form hooks via [Instagram Reels AI Transcript & Hook Extractor](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor) & [YouTube Transcript & Chapters Pro API](https://apify.com/studio001/youtube-transcript-chapters-pro-api).
2. **Global Expansion & Brand Outreach Stack**
   - Combine [YouTube Channel Search & Creator Discovery Pro API](https://apify.com/studio001/youtube-channel-search-pro-api), [B2B Domain Email Finder & SMTP/MX Verifier](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier), [ATS Direct Multi-Board Jobs Feed](https://apify.com/studio001/ats-jobs-direct-api), and [Google Hotels Multi-OTA Monitor](https://apify.com/studio001/google-hotels-multi-ota-monitor) for automated multi-vertical monitoring.

***

### Task Examples

Launch pre-configured zero-setup workflows directly from Apify Store:

- **[OliveYoung Global K-Beauty Product & Price Scraper ($0 Proxy)](https://apify.com/studio001/oliveyoung-global-kr-beauty-api/examples/oliveyoung-global-kbeauty-product-search)** — Scrape OliveYoung Global K-Beauty prices, discounts, ratings & SKUs at $0 proxy cost ($1.80/1K Gold, 256MB). Ready for n8n & MCP.
- **[OliveYoung Global Top 100 Best Sellers Ranking Tracker](https://apify.com/studio001/oliveyoung-global-kr-beauty-api/examples/oliveyoung-top-100-best-sellers-ranking)** — Track OliveYoung Top 100 Best Sellers K-Beauty rankings, brands, prices, and discount rates via cron or MCP ($1.80/1K Gold, 256MB).
- **[OliveYoung Korea vs Global USD/KRW Price Parity Monitor](https://apify.com/studio001/oliveyoung-global-kr-beauty-api/examples/oliveyoung-kr-vs-global-price-parity)** — Compare OliveYoung Korea KRW vs Global USD K-Beauty pricing and assortment using automatic split-proxy routing ($1.80/1K Gold).
- **[OliveYoung Live Trending K-Beauty Search Keywords API](https://apify.com/studio001/oliveyoung-global-kr-beauty-api/examples/oliveyoung-trending-kbeauty-keywords)** — Discover live trending K-Beauty search terms and rising shopper demand on OliveYoung Global and Korea ($1.80/1K Gold, 256MB).
- **[OliveYoung Korea Skincare SKU Details, Discounts & Reviews](https://apify.com/studio001/oliveyoung-global-kr-beauty-api/examples/oliveyoung-kr-skincare-details-reviews)** — Scrape OliveYoung Korea skincare SKUs, KRW discounts, Today Dream flags, ratings & details with automatic KR proxy handling ($1.80/1K).

***

### Custom Data Pipelines & Enterprise SLA

Need dedicated rate limits, custom dataset schemas, private webhook/S3/Snowflake delivery, high-volume volume discounts, or bespoke multi-Actor pipelines?

- **Direct Engineering Contact:** <studio001.kr@gmail.com>
- **Supported Delivery:** Managed Apify Standby MCP integrations, dedicated residential/unblocker routing, custom cron monitoring, and SLA-backed ETL connectors.

# Actor input Schema

## `queries` (type: `array`):

Product or brand keywords used in search mode (e.g., \["serum", "sunscreen"] for Global or \["선크림", "세럼"] for KR).

## `mode` (type: `string`):

search: keyword search across Global and/or KR storefronts; best_sellers: Global Top 100 Best Sellers ranking; popular_keywords: real-time trending K-Beauty search terms.

## `storefront` (type: `string`):

Select global (global.oliveyoung.com USD/EN, $0 proxy), kr (oliveyoung.co.kr KRW/KO, auto KR Residential on Cloud), or both simultaneously.

## `maxProductsPerQuery` (type: `integer`):

Maximum number of products to extract per query or Best Sellers ranking (supports automatic pagination up to 200).

## `currency` (type: `string`):

Currency code for OliveYoung Global API requests (USD, JPY, EUR, SGD, GBP). KR storefront always returns native KRW.

## `language` (type: `string`):

Language code for OliveYoung Global API responses (en, ja).

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

Fetches Global product detail pages (up to first 50 Global search/best_sellers items) to populate schema.org rating, reviewCount, and product description.

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

Split-proxy default {}: Global (global.oliveyoung.com) stays $0 proxy-free, while KR (oliveyoung.co.kr) automatically routes via KR Residential proxy on Apify Cloud unless explicitly disabled ({useApifyProxy: false}).

## `maxTotalChargeUsd` (type: `number`):

Optional hard Pay-Per-Event spending limit (USD) for this run. Stops pushing/charging before exceeding this cap.

## Actor input object example

```json
{
  "queries": [
    "serum",
    "sunscreen"
  ],
  "mode": "search",
  "storefront": "global",
  "maxProductsPerQuery": 24,
  "currency": "USD",
  "language": "en",
  "includeDetails": false,
  "proxyConfiguration": {},
  "maxTotalChargeUsd": 1
}
```

# Actor output Schema

## `results` (type: `string`):

K-Beauty product search records, Best Seller rankings, prices, and ratings.

## `metrics` (type: `string`):

Execution telemetry, wire bytes, proxy usage, and per-run unit economics JSON.

# 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 = {
    "queries": [
        "serum"
    ],
    "mode": "search",
    "storefront": "global",
    "maxProductsPerQuery": 24,
    "currency": "USD",
    "language": "en",
    "includeDetails": false,
    "proxyConfiguration": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio001/oliveyoung-global-kr-beauty-api").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 = {
    "queries": ["serum"],
    "mode": "search",
    "storefront": "global",
    "maxProductsPerQuery": 24,
    "currency": "USD",
    "language": "en",
    "includeDetails": False,
    "proxyConfiguration": {},
}

# Run the Actor and wait for it to finish
run = client.actor("studio001/oliveyoung-global-kr-beauty-api").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 '{
  "queries": [
    "serum"
  ],
  "mode": "search",
  "storefront": "global",
  "maxProductsPerQuery": 24,
  "currency": "USD",
  "language": "en",
  "includeDetails": false,
  "proxyConfiguration": {}
}' |
apify call studio001/oliveyoung-global-kr-beauty-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio001/oliveyoung-global-kr-beauty-api"
        }
    }
}
```

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/cYwqE5yT1T8Z8owSN/builds/4YCZJ0wUqQ8knTMN3/openapi.json
