加载接口文档…
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 默认 all,一次脱敏手机号 / 身份证 / 银行卡 / 邮箱 / 姓名。文档示例为真实调用。
| 名称 | 类型 | 说明 |
|---|---|---|
| text | string | 必填 · 要脱敏的文本,最长 50000 字节 · 示例:联系人:张先生,手机13800138000,身份证11010519491231002X,卡号6222021234567890123,邮箱zhangsan@example.com |
| types | string | 可选 · 脱敏类型,此处固定 all(也支持逗号组合) · 默认 all · 示例:all |
| 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": "联系人:张**,手机138****8000,身份证110105********002X,卡号6222 **** **** 0123,邮箱zh******@example.com",
"detection_count": 5,
"summary": {
"idcard": 1,
"bankcard": 1,
"phone": 1,
"email": 1,
"name": 1
},
"detections": [
{
"type": "idcard",
"masked": "110105********002X"
},
{
"type": "bankcard",
"masked": "6222 **** **** 0123"
},
{
"type": "phone",
"masked": "138****8000"
},
{
"type": "email",
"masked": "zh******@example.com"
},
{
"type": "name",
"masked": "张**"
}
],
"types_applied": [
"phone",
"idcard",
"bankcard",
"email",
"name"
]
},
"tips": "极数本源 · https://apizero.cn"
}