{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea KC Certification Check & Product Recalls",
    "description": "Verify Korean KC product safety certificates (valid, under hearing, expired, not found), search certificates by product or model, monitor new KC certifications daily, and track Korean product recalls, in English. Official KATS SafetyKorea data.",
    "version": "0.1",
    "x-build-id": "5sLxlrzrCbOKNEWSh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cm504~korea-kc-certification/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cm504-korea-kc-certification",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/cm504~korea-kc-certification/runs": {
      "post": {
        "operationId": "runs-sync-cm504-korea-kc-certification",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/cm504~korea-kc-certification/run-sync": {
      "post": {
        "operationId": "run-sync-cm504-korea-kc-certification",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to do",
            "enum": [
              "verify_certificates",
              "search_certificates",
              "new_certificates",
              "korean_recalls"
            ],
            "type": "string",
            "description": "Task: 'verify_certificates' checks KC certificate numbers (valid, expired, under hearing, cancelled, not found); 'search_certificates' finds certificates by Korean product name or model name; 'new_certificates' lists certificates registered on given days (daily feed); 'korean_recalls' lists Korean product recalls by date or search text.",
            "default": "verify_certificates"
          },
          "certificateNumbers": {
            "title": "KC certificate numbers",
            "type": "array",
            "description": "Only for 'verify_certificates': KC certificate numbers to check, one per line, e.g. from a supplier, a product label or a marketplace listing (format like YU102511-26001B or B052R1315-22001). Case-insensitive; exact match. Numbers that do not exist come back as status 'Not found'.",
            "default": [
              "YU102511-26001B",
              "B052R1315-22001"
            ],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search text (Korean)",
            "type": "string",
            "description": "For 'search_certificates' (at least 2 characters) and 'korean_recalls' (optional). Product names are Korean, e.g. 보조배터리 (power bank), 충전기 (charger), 유모차 (stroller), 전지 (battery); model names are usually Latin letters/digits. For recalls you can also search brand, certificate number or barcode (see 'Search by'). Empty recall search = recalls by date.",
            "default": ""
          },
          "searchBy": {
            "title": "Search by",
            "enum": [
              "productName",
              "modelName",
              "brandName",
              "certNum",
              "barcode"
            ],
            "type": "string",
            "description": "Field the search text is matched against: productName (Korean product name) or modelName for certificates and recalls; brandName, certNum (KC certificate number) or barcode for recalls only.",
            "default": "productName"
          },
          "since": {
            "title": "From date",
            "type": "string",
            "description": "Start date YYYY-MM-DD (Korea time). 'new_certificates': default 2 days ago. 'korean_recalls' without search text: default 90 days ago. Ignored by the other tasks."
          },
          "until": {
            "title": "To date",
            "type": "string",
            "description": "End date YYYY-MM-DD (Korea time) for 'new_certificates' and date-based 'korean_recalls'. Default: today."
          },
          "dateField": {
            "title": "New certificates by",
            "enum": [
              "signDate",
              "certDate"
            ],
            "type": "string",
            "description": "Only for 'new_certificates': list certificates by registration date in SafetyKorea (signDate, all newly registered certificates) or by certification date (certDate). About 1,000 certificates are registered on a typical working day.",
            "default": "signDate"
          },
          "onlyValid": {
            "title": "Valid certificates only",
            "type": "boolean",
            "description": "Certificates only: skip certificates whose status is not Valid (expired, surrendered, cancelled, under hearing...). Not-found numbers in 'verify' are still returned.",
            "default": false
          },
          "importedOnly": {
            "title": "Imported products only",
            "type": "boolean",
            "description": "Certificates only: keep only certificates for imported products (useful to track foreign manufacturers and importers entering Korea).",
            "default": false
          },
          "onlyNew": {
            "title": "Only items not delivered before",
            "type": "boolean",
            "description": "For scheduled monitoring of new certificates or recalls: skip items already returned by a previous run with the same task and monitor name.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the 'only new' memory, e.g. daily-recalls. Use a different name per schedule. Letters, digits and hyphens.",
            "default": "default"
          },
          "translateToEnglish": {
            "title": "English product names, categories and recall details",
            "type": "boolean",
            "description": "Add English product names, category paths and, for recalls, hazard and action descriptions, translated by Claude (Anthropic). Korean originals are always kept. Included in the price.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many items (each certificate or recall is one charged result).",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}