• 获得店铺的所有商品 API 返回值说明


    为了进行此平台API的调用,首先我们需要做下面几件事情。

    1、 获取一个KEY。

    2、 参考API文档里的接入方式和示例。

    3、查看测试工具是否有需要的接口,响应实例的返回字段是否符合参数要求。

    4、利用平台的文档中心和API测试工具,对接口进行测试、程序获取。

    更多API调用展示以及获取Key和secret请移步

    公共参数

    名称类型必须描述
    keyString调用key  点击获取测试key和secret
    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. 请求参数:seller_nick=b2b-2200733087881719de&start_price=0&end_price=0&q=&page=1&cid=
    2. 参数说明:seller_nick:店铺昵称或sid(目前只支持sid))
    3. sort:排序[bid,_bid,_sale,_credit]
    4.   (bid:总价(升序)_bid:总价(降序),sale:销量,默认综合排序,time:新品)
    5. sort=new为店铺上新数据,格式不统一,请注意
    6. page:页数

    响应参数

    Version: Date:

    名称类型必须示例值描述

    items

    items[]0店铺的所有商品

    num_iid

    Bigint0628675986215宝贝ID

    title

    String0圆形服装店吊牌定做女装衣服吊卡订制800g加厚烘培礼品花卉卡片商品标题

    pic_url

    String0https://cbu01.alicdn.com/img/ibank/2020/386/208/22202802683_1873238575.search.jpg宝贝图片

    price

    Float0138.00价格

    detail_url

    String0https://detail.1688.com/offer/628675986215.html商品链接

    响应参数

    1. {
    2. "user": {
    3. "id": null,
    4. "nick": null,
    5. "good_num": null,
    6. "level": null,
    7. "created": null,
    8. "shop_type": null,
    9. "user_num_id": null,
    10. "company_id": null,
    11. "company_dj": null,
    12. "company_time": null,
    13. "company_info": null,
    14. "cid": "-1",
    15. "sid": null,
    16. "pic_url": null,
    17. "video": null,
    18. "title": null,
    19. "address": null,
    20. "phone": null,
    21. "zhuy": "./page/contactinfo.htm",
    22. "fh_score": null,
    23. "hm_score": null,
    24. "xy_score": null,
    25. "ht_score": null,
    26. "menu": null
    27. },
    28. "items": {
    29. "item": [
    30. {
    31. "num_iid": "629206406356",
    32. "title": "天语欧博信米图手机X27S Mate30 P40 Pro个性简约时尚手机壳批发",
    33. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/782/417/21694714287_2101792098.jpg",
    34. "price": "19.9",
    35. "detail_url": "https://m.1688.com/offer/629206406356.html"
    36. },
    37. {
    38. "num_iid": "606991177049",
    39. "title": "大容量10000毫安全新爆款移动电源自带线充电宝礼品厂家直销",
    40. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/517/800/12487008715_2101792098.jpg",
    41. "price": "39.9",
    42. "detail_url": "https://m.1688.com/offer/606991177049.html"
    43. },
    44. {
    45. "num_iid": "603067013582",
    46. "title": "P3跨境新爆款现货6.5寸水滴大屏全网通4G智能手机海外代发OEM定制",
    47. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/492/814/12111418294_2101792098.jpg",
    48. "price": "52.0",
    49. "detail_url": "https://m.1688.com/offer/603067013582.html"
    50. },
    51. {
    52. "num_iid": "613515982791",
    53. "title": "5.8寸大屏工作室root纯净版2+16G云群控抖音快手微信手机OEM批发",
    54. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/270/438/13682834072_2101792098.jpg",
    55. "price": "66.0",
    56. "detail_url": "https://m.1688.com/offer/613515982791.html"
    57. },
    58. {
    59. "num_iid": "637339319017",
    60. "title": "P40 Pro品牌爆款6.5寸水滴大屏8+256G全网通5G安卓智能手机批代发",
    61. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/278/368/16085863872_2101792098.jpg",
    62. "price": "298.0",
    63. "detail_url": "https://m.1688.com/offer/637339319017.html"
    64. },
    65. {
    66. "num_iid": "632168014097",
    67. "title": "新款30pro 7.5寸水滴大屏8+256G全网通5G低价智能手机正品代批发",
    68. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/048/299/12073992840_2101792098.jpg",
    69. "price": "298.0",
    70. "detail_url": "https://m.1688.com/offer/632168014097.html"
    71. },
    72. {
    73. "num_iid": "624579363633",
    74. "title": "mate30 pro新款6.5英寸水滴大屏8+256G全网通5G低价智能手机批发",
    75. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/285/407/17053704582_2101792098.jpg",
    76. "price": "298.0",
    77. "detail_url": "https://m.1688.com/offer/624579363633.html"
    78. },
    79. {
    80. "num_iid": "624015201074",
    81. "title": "新款X27 6.5寸全面水滴大屏8+128G全网通5G安卓智能手机批代发",
    82. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/469/649/11428946964_2101792098.jpg",
    83. "price": "298.0",
    84. "detail_url": "https://m.1688.com/offer/624015201074.html"
    85. },
    86. {
    87. "num_iid": "634673693747",
    88. "title": "真新款mate40 pro 7.2寸水滴大屏8+256G全网通5G低价智能手机批发",
    89. "pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01vYUdfL1ZrAfnyJVZy_!!6000000003247-0-cib.jpg",
    90. "price": "299.0",
    91. "detail_url": "https://m.1688.com/offer/634673693747.html"
    92. },
    93. {
    94. "num_iid": "634599513272",
    95. "title": "新款mate40 pro 7.2寸水滴大屏10+256G全网通5G低价智能手机批发",
    96. "pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01hXorlV24Cdi8vAod4_!!6000000007355-0-cib.jpg",
    97. "price": "299.0",
    98. "detail_url": "https://m.1688.com/offer/634599513272.html"
    99. },
    100. {
    101. "num_iid": "589766232746",
    102. "title": "新款X27 6.5寸全面水滴大屏8+128G全网通5G安卓智能手机批代发",
    103. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/976/670/13387076679_2101792098.jpg",
    104. "price": "308.0",
    105. "detail_url": "https://m.1688.com/offer/589766232746.html"
    106. },
    107. {
    108. "num_iid": "636684457600",
    109. "title": "爆款hviv mate30 pro6.8寸水滴大屏256G全网通低价智能手机批代发",
    110. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/610/814/19520418016_2101792098.jpg",
    111. "price": "398.0",
    112. "detail_url": "https://m.1688.com/offer/636684457600.html"
    113. },
    114. {
    115. "num_iid": "622583886323",
    116. "title": "爆款Hviv Mate40Pro+6.8寸水滴大屏512G全网通低价智能手机批代发",
    117. "pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01O9vUUY285Y3UOWbWL_!!2200733087881-0-cib.jpg",
    118. "price": "399.0",
    119. "detail_url": "https://m.1688.com/offer/622583886323.html"
    120. },
    121. {
    122. "num_iid": "589984649469",
    123. "title": "6.5寸大屏安卓9.0工作室root纯净版4+64G云群控抖音快手阅读手机",
    124. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/242/368/10339863242_902098348.jpg",
    125. "price": "469.0",
    126. "detail_url": "https://m.1688.com/offer/589984649469.html"
    127. },
    128. {
    129. "num_iid": "617854475887",
    130. "title": "电视话购物工作室root纯净版4+64G云群控抖音快手微信手机OEM批发",
    131. "pic_url": "https://cbu01.alicdn.com/img/ibank/2019/382/361/12287163283_2101792098.jpg",
    132. "price": "698.0",
    133. "detail_url": "https://m.1688.com/offer/617854475887.html"
    134. },
    135. {
    136. "num_iid": "624494524174",
    137. "title": "爆款hviv mate30 pro6.8寸水滴大屏256G全网通低价智能手机批代发",
    138. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/876/517/19593715678_2101792098.jpg",
    139. "price": "998.0",
    140. "detail_url": "https://m.1688.com/offer/624494524174.html"
    141. },
    142. {
    143. "num_iid": "630981381989",
    144. "title": "品牌P40 Pro+7.5寸水滴大屏10+256G全网通低价智能手机正品代批发",
    145. "pic_url": "https://cbu01.alicdn.com/img/ibank/2020/062/412/20219214260_2101792098.jpg",
    146. "price": "1199.0",
    147. "detail_url": "https://m.1688.com/offer/630981381989.html"
    148. }
    149. ],
    150. "total_results": "17",
    151. "page_size": 20,
    152. "pagecount": 1,
    153. "page": "1",
    154. "url": null
    155. },
    156. "error": "",
    157. "secache": "3bbcb618f225b45561bbb1686d15b91c",
    158. "secache_time": 1615280560,
    159. "secache_date": "2021-03-09 17:02:40",
    160. "translate_status": "",
    161. "translate_time": 0,
    162. "language": {
    163. "default_lang": "cn",
    164. "current_lang": "cn"
    165. },
    166. "reason": "",
    167. "error_code": "0000",
    168. "cache": 0,
    169. "api_info": "today:8 max:10000",
    170. "execution_time": 7.492,
    171. "server_time": "Beijing/2021-03-09 17:02:40",
    172. "client_ip": "106.6.35.144",
    173. "call_args": {
    174. "nick": "b2b-2200733087881719de"
    175. },
    176. "api_type": "1688",
    177. "translate_language": "zh-CN",
    178. "translate_engine": "google_cn",
    179. "server_memory": "3.56MB",
    180. "request_id": "gw-4.604739a9443f6"
    181. }

  • 相关阅读:
    【go零基础】go-zero从零基础学习到实战教程 - 2项目初始化
    Linux快速入门之文件和目录
    华秋电子余宁荣获2022年PCB行业先进科技工作者奖项
    重庆理工大学小自考本科费用一般是多少?
    基于SpringBoot的在线商城系统设计与实现
    一步步撸脚本监控
    关于爬虫!看这一篇就够了!
    CMMI和进化论
    安卓TextView的lineHeight*lineCount!=height问题,解决不支持滚动的系统下对多页Text进行分页
    absolute和relative元素层级问题
  • 原文地址:https://blog.csdn.net/weixin_49929204/article/details/126340044