https://xxyh.xiaoli.icu/api/p_barcode_info.phphttps://xxyh.xiaoli.icu/api/p_barcode_info.php?code=6901234567892自动识别条码类型,按 GS1 mod10 算法重算校验位,判断条码是否有效;校验失败时给出正确校验位建议。
前缀按 GS1 分配表解读到国家/地区(690-699 中国、471 中国台湾、489 中国香港、958 中国澳门、45-49 日本、880 韩国等)。
条码前缀只表示厂商注册地,不等于产地;商品名称需要 GS1 或商业商品库,本接口不做猜测。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
code |
string | 必填 | 6901234567892 | 条码数字,支持 8 / 12 / 13 / 14 位 |
https://xxyh.xiaoli.icu/api/p_barcode_info.php
此处将显示接口返回结果…
{
"code": 200,
"msg": "ok",
"data": {
"code": "6901234567892",
"format": "EAN-13",
"valid": true,
"check_digit": 2,
"expect_check_digit": 2,
"prefix": "690",
"country": "中国"
}
}
—