当前位置:   article > 正文

小红书商城店铺所有商品接口(整店商品API接口)_小红书公共接口

小红书公共接口

小红书商城店铺所有商品接口(整店商品API接口)代码对接如下:

1.公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中,点击获取请求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版本

2.请求参数

请求参数:sid=5ef8696821adbc000127fad1&page=&sort=&

参数说明: sid:sellerid page:页码
sort: 新品:new_arrival 综合:default 销量:sale 种草:fav_count 价格降序:bid 价格升序:_bid 

3.响应参数

 

 4.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…) 

  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://wx19970108018/smallredbook/item_search_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&sid=5ef8696821adbc000127fad1&page=&sort=&"
  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)

5.响应示例

  1. {
  2. "items": {
  3. "sid": "5ef8696821adbc000127fad1",
  4. "page": 1,
  5. "page_size": 20,
  6. "real_total_results": 2000,
  7. "total_results": 2000,
  8. "pagecount": 100,
  9. "data_from": "smallredbook",
  10. "item": [
  11. {
  12. "title": "斑马纹衬衣",
  13. "desc": "Heydress 斑马纹衬衫女秋款长袖法式小众设计感上衣早秋复古印花条纹衬衣 花色",
  14. "num_iid": "5f32603f0cf9a14647c5d094",
  15. "price": 326,
  16. "orginal_price": null,
  17. "promotion_price": 326,
  18. "pic_url": "https://qimg.xiaohongshu.com/ffa0fd9add2f8dc8b48ee156c73d24fc37c08495?itemId=5f32603f0cf9a14647c5d094&imageView2/1/w/320/h/320/q/90.jpg",
  19. "sales": 0,
  20. "seller_id": "5ef8696821adbc000127fad1",
  21. "seller_nick": "Heydress旗舰店",
  22. "detail_url": "www.xiaohongshu.com/goods/5f32603f0cf9a14647c5d094"
  23. },
  24. {
  25. "title": "伞摆褶裥半身裙",
  26. "desc": "Heydress 半身裙秋冬女中长款高腰垂坠感a字裙设计感松紧腰显瘦气质半裙 黑色 XS",
  27. "num_iid": "5f7e7551ee883218a99ec3ec",
  28. "price": 399,
  29. "orginal_price": null,
  30. "promotion_price": 399,
  31. "pic_url": "https://qimg.xiaohongshu.com/35b585ee9c4628ff59f4043f96024ed5e8b50da4?itemId=5f7e7551ee883218a99ec3ec&imageView2/1/w/320/h/320/q/90.jpg",
  32. "sales": 0,
  33. "seller_id": "5ef8696821adbc000127fad1",
  34. "seller_nick": "Heydress旗舰店",
  35. "detail_url": "www.xiaohongshu.com/goods/5f7e7551ee883218a99ec3ec"
  36. },
  37. {
  38. "title": "方格收腰羽绒服",
  39. "desc": "Heydress 白鹅绒羽绒服女冬季珠光绗线菱格小翻领腰部抽绳设计收腰轻薄外套 黑色 S",
  40. "num_iid": "5fa7fb91e5985000011daa5a",
  41. "price": 699,
  42. "orginal_price": null,
  43. "promotion_price": 699,
  44. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/deebe1ef78cfb347b94713e14003a9c51c746366?itemId=5fa7fb91e5985000011daa5a&imageView2/1/w/320/h/320/q/90.jpg",
  45. "sales": 0,
  46. "seller_id": "5ef8696821adbc000127fad1",
  47. "seller_nick": "Heydress旗舰店",
  48. "detail_url": "www.xiaohongshu.com/goods/5fa7fb91e5985000011daa5a"
  49. },
  50. {
  51. "title": "亮丝开叉连衣裙",
  52. "desc": "Heydress 金丝绒连衣裙女秋冬法式方领赫本风小黑裙 黑色 XS",
  53. "num_iid": "5fcb508c2c96d20001616db5",
  54. "price": 443,
  55. "orginal_price": null,
  56. "promotion_price": 443,
  57. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/0fc15ccb808b4469d5886da71f84e33aaac63072?itemId=5fcb508c2c96d20001616db5&imageView2/1/w/320/h/320/q/90.png",
  58. "sales": 0,
  59. "seller_id": "5ef8696821adbc000127fad1",
  60. "seller_nick": "Heydress旗舰店",
  61. "detail_url": "www.xiaohongshu.com/goods/5fcb508c2c96d20001616db5"
  62. },
  63. {
  64. "title": "蕾丝领褶裥连衣裙",
  65. "desc": "Heydress 丝绒小黑裙连衣裙女秋冬黑白撞色褶皱泡泡袖中裙复古气质礼服裙子 黑色 XS",
  66. "num_iid": "5f9a6f3a68bf58000170812c",
  67. "price": 469,
  68. "orginal_price": null,
  69. "promotion_price": 469,
  70. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/f0ae2457b98de2e6d0628196fa85c299f363e34f?itemId=5f9a6f3a68bf58000170812c&imageView2/1/w/320/h/320/q/90.jpg",
  71. "sales": 0,
  72. "seller_id": "5ef8696821adbc000127fad1",
  73. "seller_nick": "Heydress旗舰店",
  74. "detail_url": "www.xiaohongshu.com/goods/5f9a6f3a68bf58000170812c"
  75. },
  76. {
  77. "title": "自发热牛仔裤",
  78. "desc": "Heydress 黑科技薄绒自发热牛仔裤女秋冬高腰修身直筒加绒黑色裤子 黑色 S",
  79. "num_iid": "5fa8de15cb581a0001551426",
  80. "price": 399,
  81. "orginal_price": null,
  82. "promotion_price": 399,
  83. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/4fe54df6fb7b98b490a60dd242690d3a0a29952e?itemId=5fa8de15cb581a0001551426&imageView2/1/w/320/h/320/q/90.jpg",
  84. "sales": 0,
  85. "seller_id": "5ef8696821adbc000127fad1",
  86. "seller_nick": "Heydress旗舰店",
  87. "detail_url": "www.xiaohongshu.com/goods/5fa8de15cb581a0001551426"
  88. },
  89. {
  90. "title": "圆领麻花羊毛套头",
  91. "desc": "Heydress 纯羊毛圆领麻花毛衣女秋冬复古经典百搭宽松外穿套头慵懒风上衣 咖色 M(165/88A)",
  92. "num_iid": "5fc88d916c5194000179dce8",
  93. "price": 420,
  94. "orginal_price": null,
  95. "promotion_price": 420,
  96. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/ce832b817c41a8ca7fdeb03038aae687033d8ac4?itemId=5fc88d916c5194000179dce8&imageView2/1/w/320/h/320/q/90.jpg",
  97. "sales": 0,
  98. "seller_id": "5ef8696821adbc000127fad1",
  99. "seller_nick": "Heydress旗舰店",
  100. "detail_url": "www.xiaohongshu.com/goods/5fc88d916c5194000179dce8"
  101. },
  102. {
  103. "title": "黑白格拼片半裙",
  104. "desc": "Heydress 黑白格子半身裙女秋冬拼接设计中长款复古高腰伞裙a字不规则半裙 花色",
  105. "num_iid": "5f5227250cf9a172eb3843d0",
  106. "price": 399,
  107. "orginal_price": null,
  108. "promotion_price": 399,
  109. "pic_url": "https://qimg.xiaohongshu.com/09d44c3e10ff5ce8000b47510d7900006a797356?itemId=5f5227250cf9a172eb3843d0&imageView2/1/w/320/h/320/q/90.jpg",
  110. "sales": 0,
  111. "seller_id": "5ef8696821adbc000127fad1",
  112. "seller_nick": "Heydress旗舰店",
  113. "detail_url": "www.xiaohongshu.com/goods/5f5227250cf9a172eb3843d0"
  114. },
  115. {
  116. "title": "复古插肩毛呢大衣",
  117. "desc": "Heydress 毛呢外套气质奶茶驼色女秋冬法式复古中长款茧型羊绒双面呢子大衣 驼色",
  118. "num_iid": "5f8ea374616976000149e467",
  119. "price": 980,
  120. "orginal_price": null,
  121. "promotion_price": 980,
  122. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/5625d3a22b165e75bc4a9c65b65a948fc0c0d0fa?itemId=5f8ea374616976000149e467&imageView2/1/w/320/h/320/q/90.png",
  123. "sales": 0,
  124. "seller_id": "5ef8696821adbc000127fad1",
  125. "seller_nick": "Heydress旗舰店",
  126. "detail_url": "www.xiaohongshu.com/goods/5f8ea374616976000149e467"
  127. },
  128. {
  129. "title": "宽松针织连衣裙",
  130. "desc": "Heydress 针织连衣裙女秋冬新款轻奢兔绒直筒宽松显瘦长裙开叉减龄长袖裙子 米杏色 S",
  131. "num_iid": "5f56e5eea09141267ee6bd12",
  132. "price": 565,
  133. "orginal_price": null,
  134. "promotion_price": 565,
  135. "pic_url": "https://qimg.xiaohongshu.com/20648fe3da4bd55b5124bc5b8e336a5e7e13892c?itemId=5f56e5eea09141267ee6bd12&imageView2/1/w/320/h/320/q/90.jpg",
  136. "sales": 0,
  137. "seller_id": "5ef8696821adbc000127fad1",
  138. "seller_nick": "Heydress旗舰店",
  139. "detail_url": "www.xiaohongshu.com/goods/5f56e5eea09141267ee6bd12"
  140. },
  141. {
  142. "title": "V领短款针织马甲",
  143. "desc": "Heydress 秋冬气质叠搭高级感v领针织马甲短款女秋款百搭外穿宽松背心毛衣 咖啡色",
  144. "num_iid": "5f5214945305655f86beb67d",
  145. "price": 249,
  146. "orginal_price": null,
  147. "promotion_price": 249,
  148. "pic_url": "https://qimg.xiaohongshu.com/b608788787e41eb2cdfeea7556cd1a98b4401a70?itemId=5f5214945305655f86beb67d&imageView2/1/w/320/h/320/q/90.jpg",
  149. "sales": 0,
  150. "seller_id": "5ef8696821adbc000127fad1",
  151. "seller_nick": "Heydress旗舰店",
  152. "detail_url": "www.xiaohongshu.com/goods/5f5214945305655f86beb67d"
  153. },
  154. {
  155. "title": "鹅绒收腰长款羽绒",
  156. "desc": "Heydress 鹅绒羽绒服女冬季中长款轻羽绒时尚白色长款过膝轻薄收腰大衣外套 白色 M",
  157. "num_iid": "5fc8af085233240001b8358b",
  158. "price": 1480,
  159. "orginal_price": null,
  160. "promotion_price": 1480,
  161. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/82285e77cc51fbafda89aa4a869e8b35fd4672f6?itemId=5fc8af085233240001b8358b&imageView2/1/w/320/h/320/q/90.png",
  162. "sales": 0,
  163. "seller_id": "5ef8696821adbc000127fad1",
  164. "seller_nick": "Heydress旗舰店",
  165. "detail_url": "www.xiaohongshu.com/goods/5fc8af085233240001b8358b"
  166. },
  167. {
  168. "title": "多色菱形格羽绒服",
  169. "desc": "Heydress 黑色羽绒服2020年新款女短款小个子白鸭绒时尚宽松廓形冬季外套 皮粉色 L",
  170. "num_iid": "5f9bce1abcb26d0001dd2073",
  171. "price": 875,
  172. "orginal_price": null,
  173. "promotion_price": 875,
  174. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/e53669b206ff3af844660d69af4539921ad4ef5f?itemId=5f9bce1abcb26d0001dd2073&imageView2/1/w/320/h/320/q/90.jpg",
  175. "sales": 0,
  176. "seller_id": "5ef8696821adbc000127fad1",
  177. "seller_nick": "Heydress旗舰店",
  178. "detail_url": "www.xiaohongshu.com/goods/5f9bce1abcb26d0001dd2073"
  179. },
  180. {
  181. "title": "粗花呢斜裁半裙",
  182. "desc": "Heydress 半身裙女春秋粗花呢针织中长款高腰a字鱼尾裙流苏半裙裙子 咖啡色 M",
  183. "num_iid": "5f522b8981d4c125e5011527",
  184. "price": 399,
  185. "orginal_price": null,
  186. "promotion_price": 399,
  187. "pic_url": "https://qimg.xiaohongshu.com/78023bd51c96e6722d69b64c2a1fa8ab02d29bfd?itemId=5f522b8981d4c125e5011527&imageView2/1/w/320/h/320/q/90.jpg",
  188. "sales": 0,
  189. "seller_id": "5ef8696821adbc000127fad1",
  190. "seller_nick": "Heydress旗舰店",
  191. "detail_url": "www.xiaohongshu.com/goods/5f522b8981d4c125e5011527"
  192. },
  193. {
  194. "title": "浅灰拼接连衣裙",
  195. "desc": "Heydress 假两件连衣裙女心机露背2020年秋季新款针织拼接赫本风优雅裙子 灰色 S",
  196. "num_iid": "5f843e3aa091412e10e4ecf3",
  197. "price": 369,
  198. "orginal_price": null,
  199. "promotion_price": 369,
  200. "pic_url": "https://qimg.xiaohongshu.com/bcb31535944527ae8b4acdd414be24c9f8ed821b?itemId=5f843e3aa091412e10e4ecf3&imageView2/1/w/320/h/320/q/90.jpg",
  201. "sales": 0,
  202. "seller_id": "5ef8696821adbc000127fad1",
  203. "seller_nick": "Heydress旗舰店",
  204. "detail_url": "www.xiaohongshu.com/goods/5f843e3aa091412e10e4ecf3"
  205. },
  206. {
  207. "title": "花边领百褶小黑裙",
  208. "desc": "Heydress 小黑裙连衣裙女秋季赫本风泡泡袖立领木耳边气质百褶显瘦长袖裙子 黑色",
  209. "num_iid": "5f696db681d4c12266ab6eff",
  210. "price": 449,
  211. "orginal_price": null,
  212. "promotion_price": 449,
  213. "pic_url": "https://qimg.xiaohongshu.com/bf40896c2cf7aebd28950536e9870ab75c5fc5e9?itemId=5f696db681d4c12266ab6eff&imageView2/1/w/320/h/320/q/90.jpg",
  214. "sales": 0,
  215. "seller_id": "5ef8696821adbc000127fad1",
  216. "seller_nick": "Heydress旗舰店",
  217. "detail_url": "www.xiaohongshu.com/goods/5f696db681d4c12266ab6eff"
  218. },
  219. {
  220. "title": "尖领单排扣大衣",
  221. "desc": "Heydress 长毛绒双面呢大衣女冬季极简风直筒焦糖色两色中长款保暖毛呢外套 焦糖色",
  222. "num_iid": "5fa80d5be5985000011dabcd",
  223. "price": 1299,
  224. "orginal_price": null,
  225. "promotion_price": 1299,
  226. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/ff23e41549924f7ea249101a05a3ff07d889d4e2?itemId=5fa80d5be5985000011dabcd&imageView2/1/w/320/h/320/q/90.jpg",
  227. "sales": 0,
  228. "seller_id": "5ef8696821adbc000127fad1",
  229. "seller_nick": "Heydress旗舰店",
  230. "detail_url": "www.xiaohongshu.com/goods/5fa80d5be5985000011dabcd"
  231. },
  232. {
  233. "title": "修身松紧腰连衣裙",
  234. "desc": "Heydress 复古丝绒小黑裙女秋冬华丽经典中长款连衣裙收腰设计感礼服裙裙子 黑色 XS",
  235. "num_iid": "5fa80736fb33f3000185e1ad",
  236. "price": 439,
  237. "orginal_price": null,
  238. "promotion_price": 439,
  239. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/86a506f32f105643673a5b93573f418762ca8bcf?itemId=5fa80736fb33f3000185e1ad&imageView2/1/w/320/h/320/q/90.jpg",
  240. "sales": 0,
  241. "seller_id": "5ef8696821adbc000127fad1",
  242. "seller_nick": "Heydress旗舰店",
  243. "detail_url": "www.xiaohongshu.com/goods/5fa80736fb33f3000185e1ad"
  244. },
  245. {
  246. "title": "多色羊毛打底衫",
  247. "desc": "Heydress 可机洗针织衫女秋季气质焦糖色半高领打底衫羊毛毛衣修身内搭上衣 浅棕色 M",
  248. "num_iid": "5f6ae5c30cf9a14cff05c88e",
  249. "price": 265,
  250. "orginal_price": null,
  251. "promotion_price": 265,
  252. "pic_url": "https://qimg.xiaohongshu.com/268bced187f797824f3d6522f5c9376b4a59f26f?itemId=5f6ae5c30cf9a14cff05c88e&imageView2/1/w/320/h/427/q/90.jpg",
  253. "sales": 0,
  254. "seller_id": "5ef8696821adbc000127fad1",
  255. "seller_nick": "Heydress旗舰店",
  256. "detail_url": "www.xiaohongshu.com/goods/5f6ae5c30cf9a14cff05c88e"
  257. },
  258. {
  259. "title": "丝绒拼蕾丝连衣裙",
  260. "desc": "Heydress 蕾丝连衣裙女秋冬法式赫本风气质经典小黑裙镂空复古丝绒黑色裙子 黑色 XS",
  261. "num_iid": "5fcb55804013bb00017c0e70",
  262. "price": 398,
  263. "orginal_price": null,
  264. "promotion_price": 398,
  265. "pic_url": "https://qimg.xiaohongshu.com/arkgoods/2dab0d398663f5f701c1a2fbb8eb6757b01738b7?itemId=5fcb55804013bb00017c0e70&imageView2/1/w/320/h/320/q/90.png",
  266. "sales": 0,
  267. "seller_id": "5ef8696821adbc000127fad1",
  268. "seller_nick": "Heydress旗舰店",
  269. "detail_url": "www.xiaohongshu.com/goods/5fcb55804013bb00017c0e70"
  270. }
  271. ]
  272. },
  273. "error_code": "0000",
  274. "reason": "ok",
  275. "secache": "d703ae596073ff89d5d9282d2a1ac63f",
  276. "secache_time": 1611124322,
  277. "secache_date": "2021-01-20 14:32:02",
  278. "translate_status": "",
  279. "translate_time": 0,
  280. "language": {
  281. "default_lang": "cn",
  282. "current_lang": "cn"
  283. },
  284. "error": "",
  285. "cache": 0,
  286. "api_info": "today:0 max:5000",
  287. "execution_time": 0.68,
  288. "server_time": "Beijing/2021-01-20 14:32:02",
  289. "client_ip": "115.151.186.91",
  290. "call_args": {
  291. "seller_nick": "5ef8696821adbc000127fad1"
  292. },
  293. "api_type": "smallredbook",
  294. "translate_language": "zh-CN",
  295. "translate_engine": "baidu",
  296. "server_memory": "2.8MB",
  297. "request_id": "1.6007ce6212d54"
  298. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/720875
推荐阅读
相关标签
  

闽ICP备14008679号