# Korea Chemical Regulation Lookup (by CAS or name) (`jimin-data/kr-chemical-regulation-lookup`) Actor

Look up Korean chemical regulatory lists by CAS number or Korean/English name. Each row gives four Korean designations with the source threshold text, law names, GHS signal word and H-codes, and the dataset version. Not a legal determination. No API key. $0.005 per query found, no start fee.

- **URL**: https://apify.com/jimin-data/kr-chemical-regulation-lookup.md
- **Developed by:** [jimin DATA](https://apify.com/jimin-data) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

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

## Korea Chemical Regulation Lookup (by CAS or name)

### Known limitations (as of 2026-11-27)

This data version was checked against the current Korean notices. Each designation now carries its current notice number, issue date, effective date, status and verification (see `notice` under Output). Two parts are not yet checked:

- **Human or environmental hazard substances** (인체등유해성물질; Notice No. 2026-5, and No. 2026-16 for designations taking effect on 2026-12-19) have not yet been checked against the notice annex, which is published only as an attached file. Their `notice.verification` is `not_yet_checked_against_annex`.
- **Restricted and prohibited substances** (Notice No. 2025-28): entries for which the notice gives a CAS number were checked. Rows that the source expanded from group entries in the notice (entries without a CAS number) have not yet been checked by name against the notice annexes. Their `notice.verification` is `cas_listed_entries_checked_group_entries_not_yet`.

Every result row carries the same list in `known_limitations`.

Look up chemical substances in Korean regulatory lists by CAS number or by Korean/English name. For each query you get one JSON row that says whether the substance is in the dataset, which Korean designations apply, the related law names, the source URLs, and the dataset version date.

Keys are in English with the Korean names alongside, so programs can read the output and people can check it against the Korean originals.

### What it does

- Accepts up to 1,000 queries per run. Each query is a CAS number or a substance name (Korean or English).
- CAS numbers: the format and the check digit are verified. A valid CAS returns every record for that CAS, including records whose source CAS field lists several numbers.
- Names: searched in the Korean name, the English name and the Korean synonyms. Exact matches come first, then names that start with the query, then names that contain it.
- For each matched substance it returns:
  - CAS number, Korean name, English name, Korean synonyms
  - Four Korean designations, each with a true/false flag, the content threshold text from the source and the law it is based on (see Law mapping):
    - `human_or_environmental_hazard` (인체등유해성물질: human acute, human chronic or ecological hazard; this includes substances listed only for ecological hazard)
    - `accident_preparedness` (사고대비물질)
    - `restricted` (제한물질)
    - `prohibited` (금지물질)
  - Other Korean classifications listed for the substance, with the law name where the link is certain
  - Latest notice date, GHS signal word and H-codes
- Every row carries the dataset version, the dataset SHA-256, the collection date, the dataset URL and the three original sources.
- Every row also states its own limits in machine-readable fields: `status_meaning`, `not_found_means_unregulated` (always `false`), `legal_determination` (always `false`) and `scope`.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `queries` | array of strings | yes | CAS numbers or Korean/English substance names. 1 to 1,000 items per run. Duplicates are processed once. |
| `maxNameResults` | integer | no | For name queries: maximum substances returned, 1 to 20. Default 5. CAS queries return every record for that CAS. |

```json
{
  "queries": ["71-43-2", "50-00-0", "벤젠"],
  "maxNameResults": 5
}
```

Rules for each query:

- A query made only of digits and hyphens (with at least one hyphen) is treated as a CAS number. Other dashes (non-breaking hyphen, en dash, em dash, minus sign) and spaces between digit groups are first turned into plain hyphens, so `71‑43‑2` and `71 - 43 - 2` are read as `71-43-2`. A leading `CAS`, `CAS No.` or `CAS RN:`, surrounding brackets and trailing `.`, `,`, `;` or `:` are removed, and leading zeros in the first group are dropped (`CAS 71-43-2`, `(71-43-2)`, `71-43-2.` and `0071-43-2` are all read as `71-43-2`). It is checked for format (2 to 7 digits, 2 digits, 1 digit) and check digit. If either fails, the row has status `invalid_cas`. It is not passed on to name search.
- A query that contains two or more CAS numbers and no letters (for example `71-43-2;50-00-0`) gets status `invalid_query` and is not charged. Put one CAS number per query. If the query also contains letters, as in a mixture name that includes CAS numbers, it is treated as a name query.
- Anything else is a name query. It must be 2 to 100 characters. Empty, one-character or longer-than-100 queries get status `invalid_query`.
- Two queries are duplicates when they are equal after Unicode NFKC normalization, trimming spaces, collapsing inner runs of spaces, the CAS dash rule above, and ignoring letter case. The duplicate is skipped and counted in `duplicates_skipped`.

Input that is rejected (the run fails before any lookup; nothing is saved or charged):

- `queries` is missing, empty or has more than 1,000 items
- any item in `queries` is not a string
- `maxNameResults` is not an integer from 1 to 20

### Output

One dataset row per processed query.

| Field | Description |
|---|---|
| `query` | The query after normalization |
| `query_type` | `cas`, `name` or `invalid` |
| `status` | `found`, `not_found`, `invalid_cas` or `invalid_query` |
| `status_meaning` | `listed_in_this_dataset_version` (found), `not_in_this_dataset_version_not_proof_of_non_regulation` (not_found) or `not_looked_up` (invalid) |
| `not_found_means_unregulated` | Always `false` |
| `legal_determination` | Always `false`. Rows copy source records; they are not a legal determination. |
| `scope` | What a row covers. `dataset_version_only`: `true`. `designation_lists`: the four designation keys. `designation_basis`: `source_content_threshold_text_present`. `not_covered`: items this dataset does not contain. |
| `billable` | `true` for a `found` row. `false` for a `not_found` row and for an invalid row. Actual charged counts are in the `OUTPUT` record. |
| `known_limitations` | `as_of` date and `items`: the known gaps of this data version (see Known limitations at the top) |
| `match_count` | Number of matching records in the dataset |
| `results_truncated` | Name queries only: `true` when there were more matches than `maxNameResults` |
| `results` | Array of matched substances (empty when nothing matched) |
| `dataset_version` | Collection date plus the first 12 characters of the dataset hash, e.g. `2026-11-27+9911c01e6e78` |
| `dataset_sha256` | SHA-256 of the dataset file used |
| `data_collected_at` | Date the dataset was collected |
| `dataset_url` | Version-pinned URL of the dataset |
| `sources` | The three original public data sources (organization, dataset name, URL) |
| `error` | Reason text, on invalid rows only |

Each item in `results`:

| Field | Description |
|---|---|
| `cas` | CAS number |
| `name_ko`, `name_en` | Korean and English names. Either can be `null`. |
| `synonyms_ko` | Korean synonyms as one string, or `null` |
| `designated_any_of_4` | `true` when at least one of the four designations has threshold text in the source. Other regulations are not checked. |
| `in_force_any_of_4` | `true` when at least one of the four designations comes from a notice whose effective date is on or before the run date |
| `designations` | Always four items, one per designation. Each has `key`, `name_ko`, `designated` (`true` when the source has threshold text), `in_force` (`true` when designated under a notice already in effect on the run date), `content_threshold_ko` (the source threshold text in Korean, or `null`), `notice` (current notice, or `null`), `pending_notice` (a notice not yet in effect that also designates it, or `null`), `law`, `law_ko`, `law_article` and `law_role`. The human or environmental hazard, restricted and prohibited items also have `handling_law`, `handling_law_ko`, `handling_article` and `handling_role`; the accident-preparedness item does not |
| `kr_classifications` | Other classification names from the source (`name_ko`) with `notice` / `pending_notice` (or `null`) and `law` / `law_ko`, or `null` when the law is not mapped. A classification that is one of the four designations carries the same article and handling fields as its item in `designations`. 등록대상기존화학물질 is shown as `등록대상기존화학물질(2015년 지정 목록, 옛 제도)` with `name_en` and `historical_list: true` |
| `pending_designations` | Designations whose notice is not yet in effect on the run date: `key`, `name_ko`, `notice_ko`, `effective`, and `also_in_force_under` (the notice number when the same designation is already in effect under another notice, otherwise `null`). Empty array when there are none |
| `latest_notice_date` | Latest notice date in the source. This is the source value (an issue date or an older effective date), not an effective date; use `notice.issued` and `notice.effective` |
| `latest_notice_date_meaning` | The sentence above, in every row |
| `ghs` | `signal_word_ko` (Korean) and `h_codes` (array) |
| `nics_listed` | true/false flag from the dataset |

Each `notice` and `pending_notice`:

| Field | Description |
|---|---|
| `notice_ko` | Current notice number in Korean, e.g. `화학물질안전원고시 제2026-2호` |
| `title_ko` | Notice title in Korean |
| `issued`, `effective` | Issue date and effective date of the notice (from law.go.kr, checked 2026-11-27) |
| `status` | `in_force` when `effective` is on or before the run date (Korea time), otherwise `pending` |
| `url` | law.go.kr page of the notice. For the five prohibited substances added from the notice annex, the annex page |
| `verification` | How far rows of this classification were checked against the notice: `checked_by_cas`, `cas_listed_entries_checked_group_entries_not_yet` or `not_yet_checked_against_annex` |
| `verification_ko` | The check result in Korean, with counts (e.g. `CAS 대조됨(103/103)`) |
| `row_origin` | `source` (from the source dataset) or `notice_supplement` (added from the notice annex because the source has no prohibited entry for it: CAS 50-29-3, 59536-65-1, 1336-36-3, 608-73-1 and 93-76-5) |

#### Run summary

A summary is saved to the key-value store under `OUTPUT`. It is written at the start of the run and again at the end, including when the run fails. The final write is tried up to three times. If it still fails, the run ends as failed, `OUTPUT` may still show `running`, and the summary is printed in the run log.

In a restarted run the counts include what earlier attempts of the same run saved and charged, also when the restarted attempt fails. If an attempt fails before it can read `STATE`, it keeps the previous attempt's counts and only changes `status` and `error` (`counts_from_previous_attempt: true`). If it cannot read `OUTPUT` either, it leaves `OUTPUT` unchanged and writes the error to the run log.

| Field | Description |
|---|---|
| `status` | `running`, `succeeded`, `charge_limit_reached` or `failed` |
| `error` | Error text when the run failed, otherwise `null` |
| `pay_per_event` | Whether the run uses pay-per-event pricing (the pricing model, not whether anything was charged) |
| `total_input` | Number of items in `queries` |
| `rows_saved` | Dataset rows saved |
| `processed` | Billable result rows saved |
| `charged_results` | `result` events charged |
| `saved_uncharged` | Pay-per-event runs only: result rows saved and not charged, because the charge returned 0 at the limit or the run stopped before the charge (the `STATE` write before charging failed). Always 0 in other runs |
| `charge_unconfirmed` | Result rows saved whose charge was not confirmed: the charge call failed, or the run stopped right after the charge and before it was recorded. These results may have been charged. No result is charged twice |
| `invalid` | Invalid rows saved |
| `no_results` | `not_found` rows saved. Not charged |
| `duplicates_skipped` | Duplicate queries skipped (only those met before the charge limit stopped the run) |
| `not_processed_charge_limit` | Queries not processed because the charge limit was reached |
| `not_processed_failure` | Queries not processed because the run failed |
| `resumed` | `true` when the run continued from a saved `STATE` record (the same run restarted) |
| `resumed_from_state` | Queries taken from `STATE` without saving or charging them again |
| `counts_from_previous_attempt` | Present and `true` only when the attempt failed before reading `STATE`; the counts are those of the previous attempt |
| `counts_unknown` | Present and `true` only together with `counts_from_previous_attempt`, when the previous attempt itself did not finish (its `OUTPUT` still said `running`). The counts may then be lower than what was charged |
| `dataset_version`, `dataset_sha256` | Dataset version and hash |

`rows_saved` is the sum of `processed`, `invalid` and `no_results`.

#### Example: found (`71-43-2`, benzene)

```json
{
  "query": "71-43-2",
  "dataset_version": "2026-11-27+9911c01e6e78",
  "dataset_sha256": "9911c01e6e7826b39a0750628fd8d5d5a3a8793c616fb267d9d9eee4786c36fa",
  "data_collected_at": "2026-11-27",
  "dataset_url": "https://huggingface.co/datasets/adorablemin/kr-chemical-regulatory-lists/tree/a50645018cfbec61bec04447eed53fe6675c619d",
  "sources": [
    { "org": "Korea Environment Corporation", "org_ko": "한국환경공단", "dataset": "Chemical substance information", "dataset_ko": "화학물질 정보 조회 서비스", "url": "https://www.data.go.kr/data/15149420/openapi.do" },
    { "org": "Korea Environment Corporation", "org_ko": "한국환경공단", "dataset": "Toxic substance GHS information", "dataset_ko": "유독물GHS 정보 조회 서비스", "url": "https://www.data.go.kr/data/15149423/openapi.do" },
    { "org": "National Institute of Chemical Safety", "org_ko": "화학물질안전원", "dataset": "Chemical safety management information", "dataset_ko": "화학물질안전관리정보", "url": "https://www.data.go.kr/data/15072442/openapi.do" }
  ],
  "query_type": "cas",
  "status": "found",
  "match_count": 1,
  "results": [
    {
      "cas": "71-43-2",
      "name_ko": "벤젠",
      "name_en": "Benzene",
      "synonyms_ko": "벤졸; 싸이클로헥사트라이엔; 페닐 하이드리드; 벤진",
      "designated_any_of_4": true,
      "in_force_any_of_4": true,
      "designations": [
        { "key": "human_or_environmental_hazard", "name_ko": "인체등유해성물질", "designated": true, "in_force": true, "content_threshold_ko": "인체만성유해성 : 0.1%", "notice": { "notice_ko": "화학물질안전원고시 제2026-5호", "title_ko": "인체급성유해성물질, 인체만성유해성물질 및 생태유해성물질의 지정고시", "issued": "2026-03-27", "effective": "2026-07-01", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/인체급성유해성물질,인체만성유해성물질및생태유해성물질의지정고시", "verification": "not_yet_checked_against_annex", "verification_ko": "별표 대조 전(별표가 첨부 파일로만 제공)", "row_origin": "source" }, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률", "law_article": "Article 20", "law_role": "designation and notice", "handling_law": "Chemicals Control Act", "handling_law_ko": "화학물질관리법", "handling_article": "Article 13", "handling_role": "handling standards for hazardous chemicals (also import notification, Article 20(2))" },
        { "key": "accident_preparedness", "name_ko": "사고대비물질", "designated": true, "in_force": true, "content_threshold_ko": "벤젠 및 이를 85% 이상 함유한 혼합물", "notice": { "notice_ko": "화학물질안전원고시 제2026-2호", "title_ko": "사고대비물질의 지정", "issued": "2026-03-10", "effective": "2026-03-10", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/사고대비물질의지정", "verification": "checked_by_cas", "verification_ko": "CAS 대조됨(103/103)", "row_origin": "source" }, "pending_notice": null, "law": "Chemicals Control Act", "law_ko": "화학물질관리법", "law_article": "Article 39", "law_role": "designation and notice" },
        { "key": "restricted", "name_ko": "제한물질", "designated": false, "in_force": false, "content_threshold_ko": null, "notice": null, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률", "law_article": "Article 27", "law_role": "designation and notice", "handling_law": "Chemicals Control Act", "handling_law_ko": "화학물질관리법", "handling_article": "Article 18", "handling_role": "prohibition or restriction of handling" },
        { "key": "prohibited", "name_ko": "금지물질", "designated": false, "in_force": false, "content_threshold_ko": null, "notice": null, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률", "law_article": "Article 27", "law_role": "designation and notice", "handling_law": "Chemicals Control Act", "handling_law_ko": "화학물질관리법", "handling_article": "Article 18", "handling_role": "prohibition or restriction of handling" }
      ],
      "kr_classifications": [
        { "name_ko": "기존화학물질", "notice": null, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률" },
        { "name_ko": "등록대상기존화학물질(2015년 지정 목록, 옛 제도)", "name_en": "Existing chemicals designated for registration in 2015 (historical list, former system)", "historical_list": true, "notice": { "notice_ko": "환경부고시 제2015-92호", "title_ko": "등록대상기존화학물질", "issued": "2015-07-01", "effective": "2015-07-01", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/등록대상기존화학물질", "verification": "checked_by_cas", "verification_ko": "CAS 대조됨(506/510)", "row_origin": "source" }, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률" },
        { "name_ko": "사고대비물질", "notice": { "notice_ko": "화학물질안전원고시 제2026-2호", "title_ko": "사고대비물질의 지정", "issued": "2026-03-10", "effective": "2026-03-10", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/사고대비물질의지정", "verification": "checked_by_cas", "verification_ko": "CAS 대조됨(103/103)", "row_origin": "source" }, "pending_notice": null, "law": "Chemicals Control Act", "law_ko": "화학물질관리법", "law_article": "Article 39", "law_role": "designation and notice" },
        { "name_ko": "인체등유해성물질", "notice": { "notice_ko": "화학물질안전원고시 제2026-5호", "title_ko": "인체급성유해성물질, 인체만성유해성물질 및 생태유해성물질의 지정고시", "issued": "2026-03-27", "effective": "2026-07-01", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/인체급성유해성물질,인체만성유해성물질및생태유해성물질의지정고시", "verification": "not_yet_checked_against_annex", "verification_ko": "별표 대조 전(별표가 첨부 파일로만 제공)", "row_origin": "source" }, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률", "law_article": "Article 20", "law_role": "designation and notice", "handling_law": "Chemicals Control Act", "handling_law_ko": "화학물질관리법", "handling_article": "Article 13", "handling_role": "handling standards for hazardous chemicals (also import notification, Article 20(2))" },
        { "name_ko": "중점관리물질", "notice": { "notice_ko": "환경부고시 제2025-125호", "title_ko": "중점관리물질의 지정", "issued": "2025-07-21", "effective": "2025-08-07", "status": "in_force", "url": "https://www.law.go.kr/행정규칙/중점관리물질의지정", "verification": "checked_by_cas", "verification_ko": "CAS 대조됨(829/831, 나머지는 한 칸에 두 CAS 표기 차이)", "row_origin": "source" }, "pending_notice": null, "law": "Act on the Registration and Evaluation of Chemicals", "law_ko": "화학물질의 등록 및 평가 등에 관한 법률" }
      ],
      "pending_designations": [],
      "latest_notice_date": "2025-08-07",
      "latest_notice_date_meaning": "source value (issue date or old effective date as given by the source list); not an effective date — see notice.issued and notice.effective",
      "ghs": { "signal_word_ko": "위험", "h_codes": ["H225", "H304", "H315", "H319", "H340", "H350", "H372", "H412"]},
      "nics_listed": true
    }
  ],
  "status_meaning": "listed_in_this_dataset_version",
  "not_found_means_unregulated": false,
  "legal_determination": false,
  "scope": {
    "dataset_version_only": true,
    "designation_lists": ["human_or_environmental_hazard", "accident_preparedness", "restricted", "prohibited"],
    "designation_basis": "source_content_threshold_text_present",
    "not_covered": ["occupational_safety_and_health_act_status", "dangerous_substances_safety_control_act_status", "wastes_control_act_status", "designation_history"]
  },
  "billable": true
}
```

The next two examples leave out `dataset_sha256`, `data_collected_at`, `dataset_url` and `sources` to save space. Every row has them.

#### Example: invalid CAS (`71-43-3`, wrong check digit)

```json
{
  "query": "71-43-3",
  "dataset_version": "2026-11-27+9911c01e6e78",
  "query_type": "cas",
  "status": "invalid_cas",
  "match_count": 0,
  "results": [],
  "error": "CAS number format or check digit is invalid",
  "status_meaning": "not_looked_up",
  "not_found_means_unregulated": false,
  "legal_determination": false,
  "scope": {
    "dataset_version_only": true,
    "designation_lists": ["human_or_environmental_hazard", "accident_preparedness", "restricted", "prohibited"],
    "designation_basis": "source_content_threshold_text_present",
    "not_covered": ["occupational_safety_and_health_act_status", "dangerous_substances_safety_control_act_status", "wastes_control_act_status", "designation_history"]
  },
  "billable": false
}
```

#### Example: not found (`100-16-3`)

```json
{
  "query": "100-16-3",
  "dataset_version": "2026-11-27+9911c01e6e78",
  "query_type": "cas",
  "status": "not_found",
  "match_count": 0,
  "results": [],
  "status_meaning": "not_in_this_dataset_version_not_proof_of_non_regulation",
  "not_found_means_unregulated": false,
  "legal_determination": false,
  "scope": {
    "dataset_version_only": true,
    "designation_lists": ["human_or_environmental_hazard", "accident_preparedness", "restricted", "prohibited"],
    "designation_basis": "source_content_threshold_text_present",
    "not_covered": ["occupational_safety_and_health_act_status", "dangerous_substances_safety_control_act_status", "wastes_control_act_status", "designation_history"]
  },
  "billable": false
}
```

`not_found` means the query is valid but has no record in this dataset version. The row is saved and is not charged. It does not mean the substance is unregulated. See Limitations.

### Pricing

Pay per event, with one event: `result`.

- **$0.005 per result** ($5 per 1,000 results).
- **No start fee.**
- One result = one query with status `found`.
- A name query that is found is one result, however many substances it returns.

Not charged:

- `not_found` rows (saved, counted in `no_results`)
- `invalid_cas` rows (wrong format or check digit)
- `invalid_query` rows
- Duplicate queries in the same run
- Queries left unprocessed after the charge limit was reached
- Runs whose input is rejected
- Runs where the dataset file cannot be downloaded or fails its hash check (in a restarted run, results already charged in earlier attempts stay charged)
- A result whose row could not be saved

How charging works:

- Each result row is saved first and charged after the save has finished, one `result` event per row.
- Charge limit: before each result the Actor checks whether one more event fits within the maximum charge you set for the run. When the limit is reached it stops, sets `OUTPUT.status` to `charge_limit_reached` and writes the number of unprocessed queries to `OUTPUT.not_processed_charge_limit`.
- If a run fails partway, the run ends as failed and the results whose charge was confirmed stay charged; results counted in `charge_unconfirmed` may also have been charged. Charging is per result, not per run. `OUTPUT` then has `status: "failed"`, the error text and the saved and charged counts (see Run summary for the exceptions).
- Restarts: the Actor keeps a `STATE` record in the run's key-value store with one entry per saved query. If the same run is restarted (for example after a platform migration), queries already in `STATE` are not saved or charged again. If the process stopped while a charge was in progress, that query is not charged again and is counted in `charge_unconfirmed` (it may have been charged). If the Actor cannot read `STATE` or does not recognise it, it stops without writing `STATE`, so the record is kept. Each charge also carries an idempotency key.
- Known limit: if a row was saved but the reply was lost, or every `STATE` write in that attempt failed, the restarted run may save the same result row again. Invalid rows, `not_found` rows, and all rows of a run without pay-per-event pricing, are recorded in `STATE` only at the end, so after a restart they can also be saved again. A result is still charged only once.
- Pricing check: in a pay-per-event run the Actor refuses to start unless `result` has a positive price and every other event (including the automatic run-start and dataset-item events) is absent or priced exactly 0.

### Data source and version

- **Dataset**: `kr-chemical-regulatory-lists`, 48,928 records, collected 2026-11-27, licensed CC BY 4.0.
- **Version used**: `2026-11-27+9911c01e6e78`. The Actor reads one version-pinned public file and checks its SHA-256 (`9911c01e6e7826b39a0750628fd8d5d5a3a8793c616fb267d9d9eee4786c36fa`) on every run. If the hash differs, the run fails.
- **Dataset URL**: https://huggingface.co/datasets/adorablemin/kr-chemical-regulatory-lists/tree/a50645018cfbec61bec04447eed53fe6675c619d
- **Original sources**, all from the Korean Public Data Portal (data.go.kr), listed there as "no restriction on use" (이용허락범위 제한 없음):
  - Korea Environment Corporation (한국환경공단), Chemical substance information: https://www.data.go.kr/data/15149420/openapi.do
  - Korea Environment Corporation (한국환경공단), Toxic substance GHS information: https://www.data.go.kr/data/15149423/openapi.do
  - National Institute of Chemical Safety (화학물질안전원), Chemical safety management information: https://www.data.go.kr/data/15072442/openapi.do
- **Law mapping**:
  - Human or environmental hazard substances (인체등유해성물질) are designated and announced under Article 20 of the Act on the Registration and Evaluation of Chemicals (화학물질의 등록 및 평가 등에 관한 법률). The Chemicals Control Act counts them as hazardous chemicals; Article 13 sets their handling standards. The output gives `law`, `law_article` (designation) and `handling_law`, `handling_article` (handling).
  - Accident-preparedness substances (사고대비물질) are designated and announced under Article 39 of the Chemicals Control Act (화학물질관리법).
  - Restricted (제한물질) and prohibited (금지물질) substances are designated and announced under Article 27 of the Act on the Registration and Evaluation of Chemicals (화학물질의 등록 및 평가 등에 관한 법률). Their handling is prohibited or restricted under Article 18 of the Chemicals Control Act. The output gives both: `law`, `law_article` (designation) and `handling_law`, `handling_article` (handling).
  - Existing chemical substances (기존화학물질), existing substances subject to registration (등록대상기존화학물질, shown as the 2015 designated list) and priority control substances (중점관리물질) map to the Act on the Registration and Evaluation of Chemicals (화학물질의 등록 및 평가 등에 관한 법률).
  - Persistent organic pollutants (잔류성오염물질) map to the Persistent Organic Pollutants Control Act (잔류성오염물질 관리법).
  - Other classifications are returned with `law: null`.
- The Actor needs no API key. Its only outside request is one download of the dataset file. Queries are not sent to the data host.

When you reuse the output, credit the dataset (CC BY 4.0) and the original sources listed in `sources`.

### Limitations

- **`not_found` is not "not regulated".** It only means this dataset version has no record for the query. The substance may still be regulated in Korea.
- **Not legal advice.** The output is a copy of public source data. It makes no legal determination. Check the original notices and laws, and ask a qualified professional before making a compliance decision.
- **Threshold text is the source text.** `content_threshold_ko` is the Korean sentence from the source, not converted into numbers and not translated. The GHS signal word and the synonyms are also Korean only.
- **`designated` reflects the source record.** It is `true` when the source has threshold text for that designation; other regulations are not checked. `in_force` adds the notice effective date.
- **Not-yet-effective text.** For designations under Notice No. 2026-16 (effective 2026-12-19), the dataset puts `(시행 예정 2026-12-19)` in front of `content_threshold_ko`. The prefix is part of the pinned dataset and stays after that date until a new version; `status` and `in_force` are decided on the run date.
- **Not included: other laws.** Status under the Occupational Safety and Health Act (산업안전보건법), the Safety Control of Dangerous Substances Act (위험물안전관리법) and the Wastes Control Act (폐기물관리법) is not in the output.
- **Not included: KOSHA MSDS data.** Data from the Korea Occupational Safety and Health Agency (한국산업안전보건공단) MSDS list is not in this dataset. Substances that appear only in that list return `not_found`. Some records have a `null` name because their only name came from that list.
- **Current version only.** There is no history of when a substance was designated or removed.
- **Pinned version.** The dataset does not update by itself. A new dataset version is released as a new build of the Actor. Check `dataset_version` and `data_collected_at` in each row.
- **Name search is plain text matching** (exact, then starts-with, then contains), with up to 20 substances per query. Use a CAS number when you have one.

### Contact

jimin DATA
contact@jimin.io.kr
https://jimin.io.kr/

# Actor input Schema

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

CAS numbers (check digit is verified) or Korean/English substance names. Up to 1,000 per run. Duplicates are processed once.

## `maxNameResults` (type: `integer`):

For name queries: maximum substances returned (1-20). CAS queries return every record for that CAS.

## Actor input object example

```json
{
  "queries": [
    "71-43-2",
    "50-00-0",
    "벤젠"
  ],
  "maxNameResults": 5
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "queries": [
        "71-43-2",
        "50-00-0",
        "벤젠"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jimin-data/kr-chemical-regulation-lookup").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": [
        "71-43-2",
        "50-00-0",
        "벤젠",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jimin-data/kr-chemical-regulation-lookup").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": [
    "71-43-2",
    "50-00-0",
    "벤젠"
  ]
}' |
apify call jimin-data/kr-chemical-regulation-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jimin-data/kr-chemical-regulation-lookup"
        }
    }
}
```

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/Hy1eVFffA2CljJaw1/builds/6CfsFsaRcM3JhcdWr/openapi.json
