# Korean Cosmetics Ingredient Compliance Audit (K-Beauty/MFDS) (`playful_nacre_a2y/kr-kbeauty-regulatory-audit`) Actor

Audit cosmetic ingredient lists (INCI, Korean, CAS numbers) against Korea MFDS standards and multi-country restrictions (EU, Korea, Japan, China, ASEAN, Taiwan), or look up official MFDS functional cosmetic filings.

- **URL**: https://apify.com/playful_nacre_a2y/kr-kbeauty-regulatory-audit.md
- **Developed by:** [Wonseok Yoo](https://apify.com/playful_nacre_a2y) (community)
- **Categories:** MCP servers, E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 audited cosmetic ingredients

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Korean Cosmetics Ingredient Compliance Audit (K-Beauty / MFDS)

Validate **cosmetic ingredient lists (INCI, Korean standard names, CAS numbers)** against **South Korea MFDS** official ingredient registries and multi-country restrictions (**Korea, EU, Japan, China, ASEAN, Taiwan**), or look up official **MFDS functional cosmetic filings** (`SPF`/`PA`, whitening, anti-wrinkle).

Built for K-Beauty exporters, global beauty e-commerce sellers, cosmetic formulators/OEMs, regulatory compliance teams, and AI agents.

### Why Use This Actor?

- **Chemical-Aware Ingredient Tokenizer**: Safely parses messy full-ingredient strings including `1,2-Hexanediol`, `1,3-Butylene Glycol`, `Water,Aqua`, and parenthetical synonyms without splitting inside chemical numbers.
- **Multi-Format Identity Resolution**: Matches English INCI names, Korean MFDS standard names, CAS numbers (e.g., `99-76-3`), and aliases.
- **Multi-Country Restriction & Concentration Alerts**: Surfaces `CLEAN_NO_MFDS_RESTRICTION` vs. `RESTRICTED_WITH_COUNTRY_BANS` / prohibited flags, max concentration limits, provisos, and affected markets (`EU`, `한국`, `일본`, `중국`, `아세안`, `대만`, etc.).
- **Functional Cosmetic Filing Lookup**: Search official Korean MFDS functional cosmetic filings by product name or manufacturer/responsible seller.

### Quick Start Input Examples

#### Mode 1: Audit an INCI / Ingredient List

```json
{
  "mode": "ingredient_compliance_audit",
  "ingredients_raw": "Water, Niacinamide, Glycerin, 1,2-Hexanediol, Adenosine, Methylparaben"
}
```

#### Mode 2: Look Up MFDS Functional Cosmetic Filings

```json
{
  "mode": "functional_product_lookup",
  "product_keyword": "선크림",
  "max_results": 10
}
```

### Sample Outputs (Real Responses)

#### Mode 1 Output Item (`Methylparaben`)

```json
{
  "ok": true,
  "mode": "ingredient_compliance_audit",
  "input_token": "Methylparaben",
  "matched": true,
  "charged_for_this_item": true,
  "standard_identity": {
    "inci_name_en": "Methylparaben",
    "standard_name_kr": "메틸파라벤",
    "cas_no": "99-76-3",
    "synonyms": ["메칠파라벤"]
  },
  "compliance_status": {
    "risk_level": "RESTRICTED_WITH_COUNTRY_BANS",
    "is_prohibited_kr": false,
    "is_restricted_kr": true,
    "max_concentration_limit": "Maximum concentration in ready for use preparation: 0.4% (as acid) for single ester, 0.8% (as acid) for mixtures of esters",
    "prohibited_or_restricted_countries": [
      "EU",
      "브라질",
      "아르헨티나",
      "일본",
      "중국",
      "한국",
      "아세안",
      "대만"
    ]
  }
}
```

#### Mode 2 Output Item (`functional_product_lookup`)

```json
{
  "ok": true,
  "mode": "functional_product_lookup",
  "product_key": "2026034293",
  "prdlst_nm": "디엠지씨나이아신아마이드선크림",
  "entp_nm": "주식회사뉴아이피아",
  "rpt_de": "20261117",
  "efficacy_kr": "SPF 50+ PA 4",
  "usage_method_kr": "본품 적당량을 취해 피부에 골고루 펴 바른다."
}
```

### Connect via MCP (Claude Desktop / Cursor)

Use Apify's official `@apify/actors-mcp-server` (or hosted `https://mcp.apify.com/`) to give Claude or Cursor direct K-Beauty regulatory lookup tools:

```json
{
  "mcpServers": {
    "kr-kbeauty-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "playful_nacre_a2y/kr-kbeauty-regulatory-audit"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Fair Pay-Per-Event Billing

- `ingredient-compliance-audited` (**$0.005**): Charged only per matched ingredient. Unmatched typos or unknown tokens return `matched: false` with **zero event charge**.
- `functional-product-verified` (**$0.02**): Charged per verified MFDS functional product record returned.
- **No charge on empty runs**: Zero data-event charges on empty results or upstream maintenance (`charged: false`); only Apify's standard `$0.00005/GB` actor-start micro-fee applies.

### Data Attribution

Official regulatory data provided by the Ministry of Food and Drug Safety (MFDS) via Korea Public Data Portal (`data.go.kr`).

# Actor input Schema

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

Select 'ingredient_compliance_audit' to validate a list of cosmetic ingredients against KR MFDS & restriction databases, or 'functional_product_lookup' to verify official MFDS functional cosmetic filings.

## `ingredients_raw` (type: `string`):

Paste full cosmetic ingredient list in English (INCI), Korean, or CAS Numbers (up to 100 ingredients per run) to check KR MFDS and EU/Japan/China/ASEAN limits.

## `product_keyword` (type: `string`):

Used when mode is 'functional_product_lookup'. Searches official MFDS functional cosmetic registry (SPF/PA, whitening, wrinkle care).

## `max_results` (type: `integer`):

Maximum number of functional cosmetic records to return.

## Actor input object example

```json
{
  "mode": "ingredient_compliance_audit",
  "ingredients_raw": "Water, Niacinamide, Glycerin, 1,2-Hexanediol, Adenosine, Methylparaben",
  "product_keyword": "선크림",
  "max_results": 20
}
```

# Actor output Schema

## `overview` (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 = {
    "ingredients_raw": "Water, Niacinamide, Glycerin, 1,2-Hexanediol, Adenosine, Methylparaben",
    "product_keyword": "선크림"
};

// Run the Actor and wait for it to finish
const run = await client.actor("playful_nacre_a2y/kr-kbeauty-regulatory-audit").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 = {
    "ingredients_raw": "Water, Niacinamide, Glycerin, 1,2-Hexanediol, Adenosine, Methylparaben",
    "product_keyword": "선크림",
}

# Run the Actor and wait for it to finish
run = client.actor("playful_nacre_a2y/kr-kbeauty-regulatory-audit").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 '{
  "ingredients_raw": "Water, Niacinamide, Glycerin, 1,2-Hexanediol, Adenosine, Methylparaben",
  "product_keyword": "선크림"
}' |
apify call playful_nacre_a2y/kr-kbeauty-regulatory-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,playful_nacre_a2y/kr-kbeauty-regulatory-audit"
        }
    }
}
```

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/1yzA5d3oxdfFqR0QQ/builds/aZNfghKaMdlzqRU0y/openapi.json
