| 参数名称 | 类型 | 必填 | 说明 | 
|---|---|---|---|
| barcode | string | 是 | 条码 | 
| 参数名称 | 类型 | 说明 | 
|---|---|---|
| barcode | string | 条码 | 
| name | string | 名称 | 
| ename | string | 英文名称 | 
| unspsc | string | UNSPSC分类 | 
| brand | string | 品牌 | 
| type | string | 规格型号 | 
| width | string | 宽度 | 
| height | string | 高度 | 
| depth | string | 深度 | 
| origincountry | string | 原产国 | 
| originplace | string | 原产地 | 
| assemblycountry | string | 装配国 | 
| barcodetype | string | 条码类型 | 
| catena | string | 产品系列 | 
| isbasicunit | string | 是否是基本单元 | 
| packagetype | string | 包装类型 | 
| grossweight | string | 毛重 | 
| netweight | string | 净重 | 
| description | string | 描述 | 
| keyword | string | 关键词 | 
| pic | string | 图片(链接会过期,请您尽快保存图片) | 
| price | string | 价格 | 
| licensenum | string | 生产许可证 | 
| healthpermitnum | string | 卫生许可证 | 
| netcontent | string | 净含量 | 
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';
$barcode = '06953502812005';
$url = "https://api.jisuapi.com/barcode2/query?barcode=$barcode&appkey=$appkey";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}
$result = $jsonarr['result'];
echo $result['barcode'].' '.$result['name'].' '.$result['ename'].' '.$result['unspsc'].'
';
echo $result['brand'].' '.$result['specification'].' '.$result['width'].' '.$result['height'].'
';
echo $result['depth'].' '.$result['origincountry'].' '.$result['originplace'].' '.$result['assemblycountry'].'
';
echo $result['barcodetype'].' '.$result['catena'].' '.$result['isbasicunit'].' '.$result['packagetype'].'
';
echo $result['grossweight'].' '.$result['netcontent'].' '.$result['netweight'].' '.$result['description'].'
';
echo $result['keyword'].' '.$result['pic'].' '.$result['price'].' '.$result['licensenum'].' '.$result['healthpermitnum'];
                     
{
    "status": 0,
    "msg": "ok",
    "result": {
        "barcode": "06917878036526",
        "name": "雀巢咖啡臻享白咖啡",
        "ename": "NESCAFE White Coffee",
        "unspsc": "50201708 (食品、饮料和烟草>>饮料>>咖啡和茶>>咖啡饮料)",
        "brand": "NESCAFE",
        "type": "29g",
        "width": "70毫米",
        "height": "160毫米",
        "depth": "55毫米",
        "origincountry": "中国",
        "originplace": "",
        "assemblycountry": "中国",
        "barcodetype": "",
        "catena": ",",
        "isbasicunit": "0",
        "packagetype": "",
        "grossweight": "",
        "netcontent": "5条",
        "netweight": "145克",
        "description": "",
        "keyword": "雀巢咖啡臻享白咖啡",
        "pic": "",
        "price": "",
        "licensenum": "QS3117 0601 0440",
        "healthpermitnum": ""
    }
}
                     | 代号 | 说明 | 
|---|---|
| 201 | 条码为空 | 
| 202 | 条码不正确 | 
| 203 | 该条码已下市(扣次数) | 
| 204 | 该条码已注册,但编码信息未按规定通报(扣次数) | 
| 205 | 该条码异常(扣次数) | 
| 210 | 没有信息 | 
| 代号 | 说明 | 
|---|---|
| 101 | APPKEY为空或不存在 | 
| 102 | APPKEY已过期 | 
| 103 | APPKEY无请求此数据权限 | 
| 104 | 请求超过次数限制 | 
| 105 | IP被禁止 | 
| 106 | IP请求超过限制 | 
| 107 | 接口维护中 | 
| 108 | 接口已停用 | 
| 计次套餐 | 套餐规格 | 价格 | ||
|---|---|---|---|---|
| 免费套餐 | 100次 | 0.00 元 | ≈0元/次 | |
| Level1 | 10000次 | 160.00 元 | ≈0.016元/次 | |
| Level2 | 20000次 | 310.00 元 | ≈0.0155元/次 | |
| Level3 | 50000次 | 700.00 元 | ≈0.014元/次 | |
| Level4 | 100000次 | 1300.00 元 | ≈0.013元/次 | |
| * 包月套餐和计次套餐不可同时购买,不可叠加使用。 | ||||
| 包月套餐 | 套餐规格 | 价格 | ||
|---|---|---|---|---|
| Level1 特惠  |  1000次/天 | 46.00元 | ≈0.00153元/次 | |
| Level2 | 3000次/天 | 244.00元 | ≈0.00271元/次 | |
| Level3 | 6000次/天 | 458.00元 | ≈0.00254元/次 | |
| Level4 | 10000次/天 | 704.00元 | ≈0.00235元/次 | |
| * 套餐使用时限为订购之日起30日。 | ||||
对“203 该条码已下市(扣次数)”和“204 该条码已注册,但编码信息未按规定通报(扣次数)”计费。


© 2015-2025 杭州极速互联科技有限公司 版权所有 浙ICP备17047587号-4 浙公网安备33010502005096 增值电信业务经营许可证:浙B2-20190875