首页 > 其他分享 >震坤行根据ID取商品详情 API

震坤行根据ID取商品详情 API

时间:2023-06-15 16:57:54浏览次数:43  
标签:style AH0990 BIG item API error 震坤行 ID

item_get-根据ID取商品详情 注册开通

zhenkunhang.item_get

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

请求参数:num_iid=AH0990

参数说明:num_iid:商品ID

响应参数

Version: Date:

名称类型必须示例值描述
item item[] 1   宝贝详情数据
请求示例
	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/zhenkunhang/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=AH0990"
响应示例
{
    "item": {
        "detail_url": "https://www.zkh.com/item/AH0990.html?",
        "crumbs": "",
        "title": "AMMEX/爱马斯 一次性深蓝色丁腈手套 APFNCHD44100 M 无粉麻面 1盒",
        "desc_short": "",
        "model": "APFNCHD44100",
        "starting_batch": "1",
        "minimum_packaging": "1",
        "brandId": "",
        "specifications": "100只/盒 10盒/箱",
        "cid": "-1",
        "feature": "",
        "pic_url": "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_01.jpg?x-oss-process=style/common_style_600&amp;timestamp=1673462318000",
        "item_imgs": {
            "url": "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_01.jpg?x-oss-process=style/common_style_600&amp;timestamp=1673462318000"
        },
        "nick": "",
        "num": 200,
        "num_iid": "AH0990",
        "price": "40.90",
        "orginal_price": "36.19",
        "desc": "<div><img src=\"https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_01.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000\"></div><div><img src=\"https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_02.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000\"></div><div><img src=\"https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_03.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000\"></div><div><img src=\"https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_04.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000\"></div><div><img src=\"https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_05.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000\"></div><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-3.64705503a711f&p=1778788018&k=i_key&t=1685083397\" style=\"display:none\" />",
        "props_list": [],
        "seller_info": {
            "item_score": "",
            "shop_name": "AMMEX/爱马斯",
            "title": "AMMEX/爱马斯",
            "shop_id": 197570,
            "zhuy": "https://www.zkh.com/list/b-197570.html",
            "company_name": ""
        },
        "props": [
            {
                "name": "箱规",
                "value": "100只/盒 10盒/箱"
            },
            {
                "name": "尺码",
                "value": "M"
            },
            {
                "name": "颜色",
                "value": "深蓝色"
            }
        ],
        "desc_img": [
            "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_01.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000",
            "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_02.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000",
            "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_03.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000",
            "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_04.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000",
            "https://private.zkh.com/PRODUCT/BIG/BIG_AH0990_05.jpg?x-oss-process=style/common_style_600&timestamp=1673462318000"
        ],
        "props_img": [],
        "format_check": "ok",
        "sales": 0,
        "shop_item": [],
        "relate_items": []
    },
    "error": "",
    "secache": "72883b891667bd3a5db39accaabaa32e",
    "secache_time": 1685083397,
    "secache_date": "2023-05-26 14:43:17",
    "translate_status": "",
    "translate_time": 0,
    "language": {
        "default_lang": "cn",
        "current_lang": "cn"
    },
    "reason": "",
    "error_code": "0000",
    "cache": 0,
    "api_info": "today:37 max:10100 all[98=37+28+33];expires:2030-12-31",
    "execution_time": "2.05",
    "server_time": "Beijing/2023-05-26 14:43:17",
    "client_ip": "106.6.38.178",
    "call_args": {
        "num_iid": "AH0990"
    },
    "api_type": "zhenkunhang",
    "translate_language": "zh-CN",
    "translate_engine": "baidu",
    "server_memory": "3.08MB",
    "request_id": "gw-3.64705503a711f",
    "last_id": "1764784088"
}
异常示例
{
        "error": "item-not-found",
        "reason": "商品没找到",
        "error_code": "2000",
        "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": "zhengkunhang",
        "request_id": "15ee0ffc041242"}
相关资料  
错误码解释
状态代码(error_code)状态信息详细描述是否收费
0000 success 接口调用成功并返回相关数据
2000 Search success but no result 接口访问成功,但是搜索没有结果
4000 Server internal error 服务器内部错误
4001 Network error 网络错误
4002 Target server error 目标服务器错误
4003 Param error 用户输入参数错误 忽略
4004 Account not found 用户帐号不存在 忽略
4005 Invalid authentication credentials 授权失败 忽略
4006 API stopped 您的当前API已停用 忽略
4007 Account stopped 您的账户已停用 忽略
4008 API rate limit exceeded 并发已达上限 忽略
4009 API maintenance API维护中 忽略
4010 API not found with these values API不存在 忽略
4012 Please add api first 请先添加api 忽略
4013 Number of calls exceeded 调用次数超限 忽略
4014 Missing url param 参数缺失 忽略
4015 Wrong pageToken 参数pageToken有误 忽略
4016 Insufficient balance 余额不足 忽略
4017 timeout error 请求超时
5000 unknown error 未知错误

标签:style,AH0990,BIG,item,API,error,震坤行,ID
From: https://www.cnblogs.com/Noah-1723045498/p/17483362.html

相关文章

  • 针对android/ios/linux/windows等平台的多端跨平台的开发技术
    有许多跨平台开发技术可以用于Android、iOS、Linux和Windows平台。以下是一些常见的跨平台开发技术:ReactNative:ReactNative可以用JavaScript和React构建原生应用程序,可同时针对Android和iOS平台进行开发。Flutter:Flutter是Google推出的一个框架,可以用Dar......
  • wsl编译android13源码并刷入pixel6
    wsl编译环境环境依赖参考编译android10时设置的环境https://www.cnblogs.com/revercc/p/16826591.html,这里注意wsl使用的ext4文件系统,此文件系统区分大小写,而windows由于历史原因使用的是NTFS文件系统,此文件系统默认是不区分大小写的。所以在wsl的共享目录中需要开启区分大小写......
  • mormot1.18 THttpApiServer
    mormot1.18THttpApiServer官方已经推荐使用mormot2,mormot1.18已经进入只修正bug的阶段。THttpApiServer是对windowshttp.sys通信的封装,因此只适用于windows。//cxg2023-2-12//mormot1.18http.sys适用于WINDOWS2003,XPSP2及以后版本unitsock.httpsys;interfaceus......
  • wxWidgets layout
    运行官方示例直接运行官方工程打开wxWidgets源码目录中的samples\layout\layout_vc9.vcproj,然后F5运行复制黏贴官方demo使用项目模板创建一个项目,并将layout.h和layout.cpp复制到项目,改个名字MyApp.h和MyApp.cppMyApp.h#ifndef_MY_APP_H_#define_MY_AP......
  • C语言—— void 的使用
    1、voidfunc(inta,char*b)  当函数不需要返回值值时,必须使用void限定,这就是我们所说的第一种情况。2、intfunc(void)  当函数不允许接受参数时,必须使用void限定,这就是我们所说的第二种情况。3、void指针的使用规则void指针可以指向任意类型的数据,就是说可以用任意类型......
  • IDEA Spring Boot Maven 多环境
    源码地址:GiteeGitHub后端https://gitee.com/linjiabin100/pi-admin.githttps://github.com/zengpi/pi-admin.git前端https://gitee.com/linjiabin100/pi-admin-web.githttps://github.com/zengpi/pi-admin-web.git多环境的作用在于允许在不同的运行环境中......
  • npm publish 发包报错npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/
    如果出现在发布的时候报这个错,说明你在package.json中登记的name已近被采用了。重名了,所以你得换一个。我们在发布一个包之前,最好拿着这个登记的name去搜一下,如果已近有了,那就要换一个。......
  • 1688通过API接口按关键字搜索商品
    作为阿里巴巴旗下的B2B平台,1688无疑是商家在寻找商品时的绝佳选择。同时,平台也提供了一系列API接口,方便开发人员或商家通过编写代码实现按关键字搜索商品。本文将重点介绍如何通过API接口在1688中按关键字搜索商品。以下是具体的步骤:第一步:获取应用AppKey和AppSecret在使用A......
  • 拼多多通过API接口按关键字搜索商品
    拼多多是一家以社交电商为主的电商平台,近年来飞速发展,成为了国内最受欢迎的电商平台之一。为了满足不同消费者的购物需求,拼多多提供了多种方式让消费者搜索商品,其中最常用的方式是通过关键字搜索。为了让商家能够更好地推广自己的商品,拼多多也提供了API接口,让商家通过API接口按照......
  • 如何在Spring Boot中使用Hibernate Natural ID
    首先,让我们关注所需类的实现。完成所有这些后,我们将能够为具有自然ID的实体提供存储库。用自然ID编写实体让我们考虑以下具有自动生成ID和自然ID(code列)的实体。这只是一个使用一个自然ID的典型实体@NaturalId:@实体publicclassProductimplementsSerializable{priva......