1688 API推荐:1688获取同行还在看接口 1688商品类目接口

本文详细介绍了1688电商平台提供的商品类目API接口,包括公共参数、请求地址、接口名称、参数说明、响应参数示例以及常见错误处理。开发者可以使用这些接口获取商品详情、搜索商品、店铺信息等数据。
摘要由CSDN通过智能技术生成

1688提供了同行还在看接口 1688商品类目的API接口,具体如下:

公共参数

请求地址:​​前往测试​​ 

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

此API目前支持以下基本接口:

item_get 获得1688商品详情
item_search 按关键字搜索商品
item_search_img 按图搜索1688商品(拍立淘)
item_search_suggest 获得搜索词推荐
item_fee 获得商品快递费用
seller_info 获得店铺详情
item_search_shop 获得店铺的所有商品
item_password 获得淘口令真实url
upload_img 上传图片到1688
item_search_seller 搜索店铺列表
img2text 图片识别商品接口
item_get_app 获取1688app上原数据
buyer_order_list 获取购买到的商品订单列表
cat_get 获得1688商品分类

请求参数

请求参数:num_iid=610947572360

参数说明:num_iid:1688商品ID

响应参数

Version: Date:

名称类型必须示例值描述

item

item[]0获得1688商品类目

 

响应示例

{
 	"item": {
		"num_iid": "610947572360",
		"item_name": "官网Qin2 pro多亲AI手机戒网瘾学生机智能助手同学防沉迷4G手机",
		"item_url": "https://detail.1688.com/offer/610947572360.html",
		"cat_id": "50903",
		"root_cat_id": "7",
		"cat_name": {
			"itme": {
				"id": "50903",
				"name": "智能手机",
				"pid": "728",
				"root_id": "728",
				"sub": []
			}
		},
		"root_cat_name": {
			"itme": {
				"id": "7",
				"name": "数码、电脑",
				"pid": 0,
				"root_id": 0,
				"sub": [
					{
						"id": 123754001,
						"name": "智能设备",
						"pid": "7",
						"root_id": 0,
						"sub": [
							{
								"id": 121624001,
								"name": "智能手表",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123756001,
								"name": "智能手环",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124580001,
								"name": "智能影音",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124734030,
								"name": "智能插座",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124744046,
								"name": "智能路由器",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124744043,
								"name": "智能排插",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124736056,
								"name": "MID电话机",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124744047,
								"name": "智能摄像机",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124740027,
								"name": "智能家教机",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 1037157,
								"name": "智能网络设备",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124582001,
								"name": "智能安防监控",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124734031,
								"name": "智能投影仪",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123756003,
								"name": "智能手镯",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123650001,
								"name": "智能防丢器",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123760002,
								"name": "智能计步器",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123648002,
								"name": "智能遥控器",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123860004,
								"name": "智能耳机",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123752002,
								"name": "智能跟踪器",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123758005,
								"name": "智能体重秤",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123752003,
								"name": "智能戒指",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123736004,
								"name": "智能项链",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124902001,
								"name": "智能按摩贴",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123758003,
								"name": "智能眼镜",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123758004,
								"name": "智能头箍",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123736005,
								"name": "智能钱包",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123754004,
								"name": "智能标签、名片",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124904002,
								"name": "智能夹子",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124908001,
								"name": "智能挂锁",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 124906001,
								"name": "智能眼罩",
								"pid": 123754001,
								"root_id": "7"
							},
							{
								"id": 123736006,
								"name": "智能肌肤测试仪",
								"pid": 123754001,
								"root_id": "7"
					

异常示例

{
  "error": "data error",
  "reason": "data error",
  "error_code": "5000",
  "success": 0,
  "cache": 0,
  "api_info": "today:0 max:10000",
  "execution_time": 0.081,
  "server_time": "Beijing/2020-06-10 23:44:00",
  "call_args": [],
  "api_type": "1688",
  "request_id": "15ee0ffc041242"}

相关资料

错误码解释

状态代码(error_code)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值