加载接口文档…
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=phone。保留前 3 + 后 4,中间 ****。
| 名称 | 类型 | 说明 |
|---|---|---|
| text | string | 必填 · 要脱敏的文本,最长 50000 字节 · 示例:客服热线请拨打13800138000或13912345678联系 |
| types | string | 可选 · 脱敏类型,此处固定 phone(也支持逗号组合) · 默认 phone · 示例:phone |
| 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或139****5678联系",
"detection_count": 2,
"summary": {
"phone": 2
},
"detections": [
{
"type": "phone",
"masked": "138****8000"
},
{
"type": "phone",
"masked": "139****5678"
}
],
"types_applied": [
"phone"
]
},
"tips": "极数本源 · https://apizero.cn"
}