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


    item_get-根据ID取商品详情

    ks.item_get

    公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中)API接口
    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版本

    请求参数

    1. 请求参数:num_iid=79356974
    2. 参数说明:num_iid:商品ID ; delist_time不为空代表商品已下架;数据会获取异常。

    响应参数

    Version: Date:2023-05-29

    名称类型必须示例值描述

    item

    item[]1商品详情数据

    num_iid

    Bigint120046611202546商品ID

    title

    String1重磅200克男款休闲百搭【招财猫】纯棉短袖T恤宝贝标题

    desc_short

    String0商品简介

    price

    Float111.93价格

    total_price

    Float0

    orginal_price

    String011.93原价

    suggestive_price

    Float0

    nick

    String1达人丽丽教搭配掌柜昵称

    num

    Int00库存

    min_num

    Int00最小购买数

    detail_url

    String0https://app.kwaixiaodian.com/page/kwaishop-goods-detail-h5-vue/detail?id=20046611202546宝贝链接

    pic_url

    String1https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-515f399e73df4f228b0171dff65cef9a.jpg宝贝图片

    brand

    String0其他/other品牌名称

    brandId

    Int0品牌ID

    rootCatId

    Int0顶级分类ID

    cid

    Int00

    crumbs

    Mix0[]导航菜单

    desc

    String0https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_DETAIL_IMAGE-407236546-2fd76963ba6e41b4bb52982191a97daf.jpg商品详情

    desc_img

    Mix0[]商品详情图片

    item_imgs

    Mix0item_imgs[]商品图片

    props_name

    String0商品属性名

    prop_imgs

    prop_imgs[]0商品属性图片列表

    property_alias

    String0销售属性值别名

    props

    Mix0[{name: "品牌",value: "其他/other"}]商品属性

    skus

    skus[]0商品规格信息列表

    seller_id

    Int0407236546卖家ID

    shop_id

    Int0407236546店铺ID

    seller_info

    seller_info[]0卖家信息Array

    请求示例

    1. # coding:utf-8
    2. """
    3. Compatible for python2.x and python3.x
    4. requirement: pip install requests
    5. """
    6. from __future__ import print_function
    7. import requests
    8. # 请求示例 url 默认请求参数已经做URL编码
    9. url = "https://api-gw.onebound.cn/ks/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=79356974"
    10. headers = {
    11. "Accept-Encoding": "gzip",
    12. "Connection": "close"
    13. }
    14. if __name__ == "__main__":
    15. r = requests.get(url, headers=headers)
    16. json_obj = r.json()
    17. print(json_obj)

    响应示例

    1. {
    2. "item": {
    3. "num_iid": "20046611202546",
    4. "title": "重磅200克男款休闲百搭【招财猫】纯棉短袖T恤",
    5. "desc_short": "",
    6. "price": 19.9,
    7. "total_price": 0,
    8. "suggestive_price": 0,
    9. "orginal_price": 0,
    10. "nick": "达人丽丽教搭配",
    11. "num": 0,
    12. "min_num": 0,
    13. "detail_url": "https://app.kwaixiaodian.com/page/kwaishop-goods-detail-h5-vue/detail?id=20046611202546",
    14. "pic_url": "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-515f399e73df4f228b0171dff65cef9a.jpg",
    15. "brand": "其他/other",
    16. "brandId": null,
    17. "rootCatId": 0,
    18. "cid": 0,
    19. "crumbs": [],
    20. "created_time": "",
    21. "modified_time": "",
    22. "delist_time": "",
    23. "desc": [
    24. "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_DETAIL_IMAGE-407236546-2fd76963ba6e41b4bb52982191a97daf.jpg",
    25. "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_DETAIL_IMAGE-407236546-56e029ac29624b3bb984bc11730bfe12.jpg",
    26. ],
    27. "desc_img": [],
    28. "item_imgs": [
    29. {
    30. "url": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-515f399e73df4f228b0171dff65cef9a.jpg"
    31. },
    32. {
    33. "url": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/ITEM_IMAGE-407236546-68b7ad1802a9475e929adad9efe06bf2.jpg"
    34. }
    35. ],
    36. "item_weight": "",
    37. "item_size": "",
    38. "location": "",
    39. "post_fee": "",
    40. "express_fee": "",
    41. "ems_fee": "",
    42. "shipping_to": "",
    43. "has_discount": "",
    44. "video": [],
    45. "is_virtual": "",
    46. "sample_id": "",
    47. "is_promotion": "",
    48. "props_name": null,
    49. "prop_imgs": {
    50. "prop_img": []
    51. },
    52. "property_alias": "",
    53. "props": [
    54. {
    55. "name": "品牌",
    56. "value": "其他/other"
    57. },
    58. {
    59. "name": "主材质",
    60. "value": "棉"
    61. }
    62. ],
    63. "total_sold": "",
    64. "skus": {
    65. "sku": [
    66. {
    67. "price": 19.9,
    68. "total_price": 0,
    69. "orginal_price": 0,
    70. "properties": "20601742184:20601742196",
    71. "properties_name": "20601742184:20601742196:白色:4XL 170-185斤;",
    72. "quantity": 679,
    73. "sku_id": 70581398202546
    74. },
    75. {
    76. "price": 19.9,
    77. "total_price": 0,
    78. "orginal_price": 0,
    79. "properties": "20601742184:20601742197",
    80. "properties_name": "20601742184:20601742197:白色:5XL 185-200斤;",
    81. "quantity": 685,
    82. "sku_id": 70581398203546
    83. }
    84. ]
    85. },
    86. "seller_id": 407236546,
    87. "sales": "311",
    88. "shop_id": 407236546,
    89. "props_list": [],
    90. "seller_info": {
    91. "nick": "达人丽丽教搭配",
    92. "shop_type": null,
    93. "user_num_id": 407236546,
    94. "sid": 407236546,
    95. "title": "达人丽丽教搭配",
    96. "zhuy": "https://app.kwaixiaodian.com/page/kwaishop-c-shoplist?layoutType=4&enableWK=1&id=407236546",
    97. "shop_name": "达人丽丽教搭配"
    98. },
    99. "tmall": "false",
    100. "warning": "",
    101. "url_log": [],
    102. "shop_name": "达人丽丽教搭配",
    103. "_ddf": "jf",
    104. "props_img": [],
    105. "format_check": "fail"
    106. },
    107. "error": "",
    108. "translate_status": "",
    109. "translate_time": 0,
    110. "language": {
    111. "default_lang": "cn",
    112. "current_lang": "cn"
    113. },
    114. "reason": "",
    115. "error_code": "0000",
    116. "cache": 0,
    117. "api_info": "today:5 max:30000 all[7=5+0+2];expires:2024-05-20",
    118. "execution_time": "0.579",
    119. "server_time": "Beijing/2023-05-29 11:21:26",
    120. "client_ip": "106.6.37.94",
    121. "call_args": {
    122. "num_iid": "20046611202546"
    123. },
    124. "api_type": "ks",
    125. "translate_language": "zh-CN",
    126. "translate_engine": "baidu",
    127. "server_memory": "3.08MB",
    128. "request_id": "1.64741a35a4d99",
    129. "last_id": "1770033004"}

  • 相关阅读:
    同源策略、跨域及通过JSONP实现跨域数据请求
    Redis主从复制
    初涉Django(创建第一个Django项目)
    java计算机毕业设计社区卫生预约挂号系统源码+系统+数据库+lw文档+mybatis+运行部署
    LINQ to SQL (Group By/Having/Count/Sum/Min/Max/Avg操作符)
    基于spring boot的私人健身与教练预约管理系统
    沙盒软件-软件多开-命令行-运行参数-进程通信-运行和评估
    数据结构——图的遍历
    yrm 使用
    Go 语言的垃圾回收机制:自动化内存管理
  • 原文地址:https://blog.csdn.net/Anzexi123/article/details/132760139