加载接口文档…
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=bankcard。形如 6222 **** **** 0123(16–19 位)。
| 名称 | 类型 | 说明 |
|---|---|---|
| text | string | 必填 · 要脱敏的文本,最长 50000 字节 · 示例:请向卡号6222021234567890123转账,备用卡6217001234567890123 |
| types | string | 可选 · 脱敏类型,此处固定 bankcard(也支持逗号组合) · 默认 bankcard · 示例:bankcard |
| 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": "请向卡号6222 **** **** 0123转账,备用卡6217 **** **** 0123",
"detection_count": 2,
"summary": {
"bankcard": 2
},
"detections": [
{
"type": "bankcard",
"masked": "6222 **** **** 0123"
},
{
"type": "bankcard",
"masked": "6217 **** **** 0123"
}
],
"types_applied": [
"bankcard"
]
},
"tips": "极数本源 · https://apizero.cn"
}