首页 > 其他分享 >快手根据ID取商品详情 API 返回值说明

快手根据ID取商品详情 API 返回值说明

时间:2023-07-11 15:12:22浏览次数:48  
标签:快手 price id item API error ID 407236546

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

ks.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=79356974

参数说明:num_iid:商品ID ; delist_time不为空代表商品已下架;数据会获取异常。

响应参数

Version: Date:2023-05-29

名称类型必须示例值描述

item

item[] 1   商品详情数据

请求示例

	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/ks/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=79356974"

响应示例

{
        "item": {
            "num_iid": "20046611202546",
            "title": "重磅200克男款休闲百搭【招财猫】纯棉短袖T恤",
            "desc_short": "",
            "price": 19.9,
            "total_price": 0,
            "suggestive_price": 0,
            "orginal_price": 0,
            "nick": "达人丽丽教搭配",
            "num": 0,
            "min_num": 0,
            "detail_url": "https://app.kwaixiaodian.com/page/kwaishop-goods-detail-h5-vue/detail?id=20046611202546",
            "pic_url": "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-515f399e73df4f228b0171dff65cef9a.jpg",
            "brand": "其他/other",
            "brandId": null,
            "rootCatId": 0,
            "cid": 0,
            "crumbs": [],
            "created_time": "",
            "modified_time": "",
            "delist_time": "",
            "desc": [
                "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_DETAIL_IMAGE-407236546-2fd76963ba6e41b4bb52982191a97daf.jpg",
                "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_DETAIL_IMAGE-407236546-56e029ac29624b3bb984bc11730bfe12.jpg",
            ],
            "desc_img": [],
            "item_imgs": [
                {
                    "url": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-515f399e73df4f228b0171dff65cef9a.jpg"
                },
                {
                    "url": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-68b7ad1802a9475e929adad9efe06bf2.jpg"
                }
            ],
            "item_weight": "",
            "item_size": "",
            "location": "",
            "post_fee": "",
            "express_fee": "",
            "ems_fee": "",
            "shipping_to": "",
            "has_discount": "",
            "video": [],
            "is_virtual": "",
            "sample_id": "",
            "is_promotion": "",
            "props_name": null,
            "prop_imgs": {
                "prop_img": []
            },
            "property_alias": "",
            "props": [
                {
                    "name": "品牌",
                    "value": "其他/other"
                },
                {
                    "name": "主材质",
                    "value": "棉"
                }
            ],
            "total_sold": "",
            "skus": {
                "sku": [
                    {
                        "price": 19.9,
                        "total_price": 0,
                        "orginal_price": 0,
                        "properties": "20601742184:20601742196",
                        "properties_name": "20601742184:20601742196:白色:4XL 170-185斤;",
                        "quantity": 679,
                        "sku_id": 70581398202546
                    },
                    {
                        "price": 19.9,
                        "total_price": 0,
                        "orginal_price": 0,
                        "properties": "20601742184:20601742197",
                        "properties_name": "20601742184:20601742197:白色:5XL 185-200斤;",
                        "quantity": 685,
                        "sku_id": 70581398203546
                    }
                ]
            },
            "seller_id": 407236546,
            "sales": "311",
            "shop_id": 407236546,
            "props_list": [],
            "seller_info": {
                "nick": "达人丽丽教搭配",
                "shop_type": null,
                "user_num_id": 407236546,
                "sid": 407236546,
                "title": "达人丽丽教搭配",
                "zhuy": "https://app.kwaixiaodian.com/page/kwaishop-c-shoplist?layoutType=4&enableWK=1&id=407236546",
                "shop_name": "达人丽丽教搭配"
            },
            "tmall": "false",
            "warning": "",
            "url_log": [],
            "shop_name": "达人丽丽教搭配",
            "_ddf": "jf",
            "props_img": [],
            "format_check": "fail"
        },
        "error": "",
        "translate_status": "",
        "translate_time": 0,
        "language": {
            "default_lang": "cn",
            "current_lang": "cn"
        },
        "reason": "",
        "error_code": "0000",
        "cache": 0,
        "api_info": "today:5 max:30000 all[7=5+0+2];expires:2024-05-20",
        "execution_time": "0.579",
        "server_time": "Beijing/2023-05-29 11:21:26",
        "client_ip": "106.6.37.94",
        "call_args": {
            "num_iid": "20046611202546"
        },
        "api_type": "ks",
        "translate_language": "zh-CN",
        "translate_engine": "baidu",
        "server_memory": "3.08MB",
        "request_id": "1.64741a35a4d99",
        "last_id": "1770033004"}

异常示例

{
            "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": "ks",
            "request_id": "20046611202546"}
    }

相关资料

错误码解释

状态代码(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 未知错误

标签:快手,price,id,item,API,error,ID,407236546
From: https://www.cnblogs.com/Noah-1723045498/p/17544702.html

相关文章

  • docker pull拉 x509: certificate has expired or is not yet valid:
    [[email protected]]#dockerpullXXXcode-analysis:centos7.3-1.0Errorresponsefromdaemon:Get"XXXX":x509:certificatehasexpiredorisnotyetvalid:currenttime2023-07-11T14:27:37+08:00isafter2018-08-22T11:54:50Z x509:c......
  • Selenium Grid
       用于在不同机器,不同浏览器的并行测试工具工作原理:seleniumscripts发送请求调用hub节点,然后通过hub节点分发到具体的测试用例到node节点执行环境搭建:1、文件准备https://selenium-release.storage.googleapis.com/index.html下载selenium-server-standalone的jar包(安......
  • 10个 API 开发的最佳实践
    API是一套规则,定义了应用程序或设备的用户友好性。它是一个软件中介,使应用程序之间可以互动。它可以是基于网络的系统、数据库系统等。像Netflix、Facebook和Github这样的科技巨头在这方面处于领导地位。他们雇佣API开发人员利用API处理其应用程序的数据,并为用户提供最......
  • IDEA远程Debug调试
    查看虚拟机ip选择EditConfigurations..点击Addnew选择RemoteJVMDebug配置服务名称,主机地址,端口以Resin服务为例,须在Resin服务的JVM参数中新增JVM参数配置Resin低版本相关配置文件目录为Resin/conf/resin.conf<jvm-arg>-agentlib:jdwp=transport=dt_socket,serve......
  • Android广播机制
    copy:https://www.cnblogs.com/lwbqqyumidi/p/4168017.html一、Android广播机制概述Android广播分为两个方面:广播发送者和广播接收者,通常情况下,BroadcastReceiver指的就是广播接收者(广播接收器)。广播作为Android组件间的通信方式,可以使用的场景如下:1.同一app内部的同一组件内的消息......
  • BOSHIDA DC电源模块短路保护的机制
    BOSHIDADC电源模块短路保护的机制DC电源模块短路保护是指在输出端短路时,电源自动保护以避免损坏。该保护机制通常包括以下几个方面:1.过流保护当输出端短路时,电源输出电流会急剧增大,如果超过电源额定电流,就会触发过流保护机制,使电源自动关闭输出。2.数字保护现代DC电源模块......
  • AppSpider Pro 7.4.053 for Windows - Web 应用程序安全测试
    AppSpiderPro7.4.053forWindows-Web应用程序安全测试Rapid7DynamicApplicationSecurityTesting(DAST)请访问原文链接:https://sysin.org/blog/appspider/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.orgappspider没有任何应用程序未经测试,没有未知风险......
  • frida hook工具使用——用于os api注入分析还是不错的
    准备:pipinstallfridapipinstallfrida-tools 开始:1、创建child-gating1.pyimportosimportthreadingfromfrida_tools.applicationimportReactorimportfridaimportargparseclassApplication:def__init__(self,log_location):self.fpat......
  • 一篇文章看懂 Apipost IDEA插件怎么用
    Apipost最近也是推出了IDEA插件,只需要右键upload一下即可自动解析代码注解并快速生成API文档,小编也是试了试,这篇文章给大家带来详细的使用教程。安装ApipostHelper安装Apipost-Helper:打开IDEA,在右侧Plugin中搜索Apipost点击Install下载安装。配置方法:安装成功后要将IDEA内的......
  • Android studio 安装应用出现 The application could not be installed: INSTALL_FAIL
    错误详情Installationdidnotsucceed.Theapplicationcouldnotbeinstalled:INSTALL_FAILED_USER_RESTRICTEDListofapks:[0]'/Users/topjoy/git/git/ZeusSDK/Android/ZeusSDK/app/build/outputs/apk/debug/app-debug.apk'InstallationviaUSBisdisabl......