Twinkle HubTwinkle Hub

驗證身分證字號

tw_validate_taiwan_id_number

驗證小工具 · 同一族🇹🇼 台灣唯讀

驗證中華民國身分證字號或外國人統一證號 (公開算法 derive,無 PII lookup)。

Args: id_number: 10 字元(1 字母 + 9 數字)。例: "A123456789"。

Returns: valid / invalid + sex + 登記縣市(合規說明:演算法本身公開, 不查任何資料庫,純算法 derive)。

參數

參數型別說明
id_number *string—
原始 JSON schema
{
  "properties": {
    "id_number": {
      "title": "Id Number",
      "type": "string"
    }
  },
  "required": [
    "id_number"
  ],
  "title": "validate_taiwan_id_numberArguments",
  "type": "object",
  "additionalProperties": false
}

呼叫​方式

起手式——參數見上表
tw_validate_taiwan_id_number({ id_number: "…" })