加载接口文档…
49
累计调用
788ms
平均响应
100.00%
服务可用性
10 次/日
免费额度
无 Key 调用
无匿名额度 · 需 API Key
登录免费
当前方案每日 10 次 · QPS 2
黄金会员
每日 100 次 · QPS 10
钻石会员
每日 100,000 次 · QPS 30
企业会员
企业接口额度 · QPS 120
需要 API Key(Authorization: Bearer <key>)。登录用户每日 10 次免费,黄金会员每日 100 次。不支持匿名调用。也可直接传 url 或 image(base64),与 input_type + input_data 等价。
| 名称 | 类型 | 说明 |
|---|---|---|
| input_type | string | 必填 · 图片传入方式:url 或 base64。也可省略本字段,改传 url / image · 默认 url · 示例:url |
| input_data | string | 必填 · 图片 URL 或 base64(jpg/png,可带 data:image 前缀,最大 10 MB)。兼容别名 url、image · 示例:https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https%3A%2F%2Fwww.apizero.cn |
| 名称 | 类型 | 说明 |
|---|---|---|
| Authorization | string | 可选 · 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。 |
| Content-Type | string | 必填 · 请求体格式 |
| 名称 | 类型 | 说明 | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| count | number | 识别到的码数量(一图可多码) | ||||||||||||||||||||||||||||||||||||
| items | array | 识别结果列表 | ||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| tips | string | 品牌提示(所有接口统一返回):极数本源 · https://apizero.cn | ||||||||||||||||||||||||||||||||||||
{
"code": 0,
"msg": "成功",
"data": {
"count": 1,
"items": [
{
"text": "https://www.apizero.cn/",
"type": "qrcode",
"position": {
"left_top": {
"x": 40.5,
"y": 40.5
},
"right_top": {
"x": 410.5,
"y": 40.5
},
"right_bottom": {
"x": 410.5,
"y": 410.5
},
"left_bottom": {
"x": 40.5,
"y": 410.5
}
}
}
]
},
"request_id": "req_abc123",
"tips": "极数本源 · https://apizero.cn"
}识别结果以图片清晰度为准;模糊、残缺、反光过强可能导致漏识。请勿用于违法用途。