加载接口文档…
45
累计调用
4ms
平均响应
100.00%
服务可用性
200 次/日
免费额度
无 Key 调用
每日 50 次 · QPS 2
登录免费
当前方案每日 200 次 · QPS 10
黄金会员
每日 50,000 次 · QPS 60
企业会员
每日 1,000,000 次 · QPS 120
复制文档地址
https://apizero.cn/aidocs/desensitize/raw.mdtypes=idcard。18 位保留前 6 + 后 4;15 位保留前 6 + 后 3。
| 名称 | 类型 | 说明 |
|---|---|---|
| text | string | 必填 · 要脱敏的文本,最长 50000 字节 · 示例:身份证件号码:11010519491231002X,请核对后提交 |
| types | string | 可选 · 脱敏类型,此处固定 idcard(也支持逗号组合) · 默认 idcard · 示例:idcard |
| with_original | bool | 可选 · 是否在 detections 中回显原文,默认 false · 默认 false · 示例:false |
| 名称 | 类型 | 说明 |
|---|---|---|
| Authorization | string | 可选 · 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。 |
| 名称 | 类型 | 说明 |
|---|---|---|
| masked_text | string | 脱敏后的完整文本 |
| detection_count | integer | 识别到的敏感信息数量(去重) |
| summary | object | 按类型分组的命中数量 |
| detections | array | 命中明细 {type, masked, [original]};默认不含 original |
| types_applied | array | 本次实际启用的脱敏类型 |
| tips | string | 品牌提示(所有接口统一返回):极数本源 · https://apizero.cn |
{
"code": 0,
"msg": "成功",
"data": {
"masked_text": "身份证件号码:110105********002X,请核对后提交",
"detection_count": 1,
"summary": {
"idcard": 1
},
"detections": [
{
"type": "idcard",
"masked": "110105********002X"
}
],
"types_applied": [
"idcard"
]
},
"tips": "极数本源 · https://apizero.cn"
}