条形码查询 中国物品编码中心等权威数据源

与 中国物品编码中心 等权威数据源同步,100%准确
独家支持8位缩短码、UPC条码、ISBN书号、进口商品条码

数据来源 source

顺序数据源说明
1gs1cn中国物品编码中心
2upc美国商品统一代码
3isbn国际标准书号
4other其他

系统按照以上顺序调用数据源,首选中国物品编码中心。
当中国物品编码中心无相关条码数据时,自动调用其他权威数据源。

条码类型 type

EAN-1313位标准码
EAN-88位缩短码
UPCUPC条码
ISBNISBN书号

自动识别条码类型

请求参数

参数位置必填
keyheaderkey
barcodeurl商品条码(8-14位数字)
8/12/13/14位

key in request header or url

13位标准码 EAN-13

{
	"code": 0,
	"data": {
		"barcode": "6937913311241",  //条码
		"type": "EAN-13",  //类型
		"name": "润肠胶囊",  //商品名称
		"spec": "12粒*2板/盒",  //规格
		"description": "",  //说明
		"price": "",  //价格(建议零售价)
		"brand": "碧生源",  //品牌(商标)
		"country": "中国",  //国家、地区或应用领域
		"company": "吉林省银诺克药业有限公司",  //公司(发布厂家)
		"addr": "",  //公司地址
		"image": "https:/www.gds.org.cn/userfile/20201010/672731255.png",  //商品图片
		"detail": {  //商品详情
			"url": "http://search.anccnet.com/goodsDetail.aspx?base_id=DD7D9F9DAA7E7EC3B7BA26229CFE40058998F17F11A215220EC23B8C5DD0341FC8C4BC3ACE0B5A4C",
			"text": [
				"银诺克",
				"2018-10-10",
				"0.4",
				"中国",
				"12粒*2板/盒",
				"YBZ02342006-2009Z",
				"吉林省银诺克药业有限公司",
				"国药准字Z20060075",
				"碧生源",
				"润肠胶囊",
				"10005845(药物)",
				"中国"
			]
		},
		"prefix": "69379133",  //厂商识别代码
		"gtin": "http://bc.3023data.com:8080/barcode4j/gensvg?type=ean13&msg=6937913311241&fmt=png&hrsize=5pt&hrfont=song&qz=0.2cm&wf=1&mw=0.17mm&height=1cm",  //条码图片
		"source": "gs1cn"  //数据来源
	}
}

8位缩短码 EAN-8

{
	"code": 0,
	"data": {
		"barcode": "69021220",
		"type": "EAN-8",
		"name": "绿箭口香糖",
		"spec": "3g×15片",
		"description": "复合纸",  //包装
		"price": "",
		"brand": "绿箭",
		"country": "中国",
		"company": "玛氏箭牌糖果(中国)有限公司",
		"addr": "",
		"image": "",
		"detail": {
			"url": "",
			"text": ""
		},
		"prefix": "69021220",
		"gtin": "http://bc.3023data.com:8080/barcode4j/gensvg?type=ean8&msg=69021220&fmt=png&hrsize=5pt&hrfont=song&qz=0.2cm&wf=1&mw=0.17mm&height=0.6cm",
		"source": "gs1cn"
	}
}

ISBN书号 ISBN

{
	"code": 0,
	"data": {
		"barcode": "9787020002207",
		"type": "ISBN",
		"name": "红楼梦",  //标题
		"spec": "1606页",  //页数
		"description": "平装",  //装帧
		"price": "59.70元",  //定价
		"brand": "[清] 曹雪芹 著",  //作者
		"country": "图书",  //应用领域
		"company": "人民文学出版社",  //出版社
		"addr": "",
		"image": "https://img1.doubanio.com/view/subject/m/public/s1070959.jpg",  //封面图片
		"detail": {
			"url": "",
			"text": ""
		},
		"prefix": "97870200",
		"gtin": "http://bc.3023data.com:8080/barcode4j/gensvg?type=ean13&msg=9787020002207&fmt=png&hrsize=5pt&hrfont=song&qz=0.2cm&wf=1&mw=0.17mm&height=0.6cm",
		"source": "isbn"
	}
}

如需查询图书详细数据,请使用 ISBN书号查询 接口

进口商品

{
	"code": 0,
	"data": {
		"barcode": "9555655005265",
		"type": "EAN-13",
		"name": "麦可利槟城香辣虾汤面",
		"spec": "420克",
		"description": "",
		"price": "",
		"brand": "麦可利",
		"country": "马来西亚",
		"company": "制造商:Sky Thomas Food Industries Sdn Bhd/进口商:上海擎鹏商贸有限公司",
		"addr": "",
		"image": "https:/www.gds.org.cn/userfile/importcpfile/202009091158156459679039074.jpg",
		"detail": {
			"url": "http://search.anccnet.com/goodsdetail2.aspx?gtin=DD7D9F9DAA7E7EC3C2E5A196095E02F7688402FAFD1E10713CBEFAB2281C0BDA8AEB460B4D56515B",
			"text": [
				"杭州裕联贸易有限公司",
				"上海擎鹏商贸有限公司",
				"09555655005265",
				"麦可利槟城香辣虾汤面",
				"麦可利",
				"420克",
				"(458)",
				"(10000590)",
				"Sky Thomas Food Industries Sdn Bhd"
			]
		},
		"prefix": "95556550",
		"gtin": "http://bc.3023data.com:8080/barcode4j/gensvg?type=ean13&msg=9555655005265&fmt=png&hrsize=5pt&hrfont=song&qz=0.2cm&wf=1&mw=0.17mm&height=1cm",
		"source": "gs1cn"
	}
}

数据库结构 MySQL

CREATE TABLE `barcode` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `barcode` varchar(13) NOT NULL,
  `name` varchar(512) NOT NULL,
  `spec` varchar(512) DEFAULT NULL,
  `brand` varchar(512) DEFAULT NULL,
  `company` varchar(512) DEFAULT NULL,
  `description` varchar(512) DEFAULT NULL,
  `price` varchar(512) DEFAULT NULL,
  `addr` varchar(512) DEFAULT NULL,
  `image` varchar(512) DEFAULT NULL,
  `detail` text,
  `url` varchar(512) DEFAULT NULL,
  `source` varchar(32) DEFAULT NULL,
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `barcode` (`barcode`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8

错误码

302311条码错误
302312条码无效
302313繁忙
不扣费,稍后重试
302314其他错误
不扣费,错误原因(message)
302303余额不足

以上为接口错误码,公共错误码见帮助中心