• 淘宝官方订单API接口,商品分类属性


    淘宝/天猫商品分类属性 API 返回值说明

    seller_cat_props-商品分类属性

    公共参数

    请求地址: https://console.open.onebound.cn/console/?i=Anzexi

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

    请求参数

    请求参数:token=891d5886994b339992161df4bf9780c9&catid=203301

    参数说明:
    token值为小饼干获取的数据
    catid为分类ID
    本接口为C类接口,请访问API服务器API-2

    响应参数

    Version: Date:

    名称类型必须示例值描述
    official_dataofficial_data{}0json分类详尽属性
    codeString0返回代码
    errMsgString0错误提示
    successbool0true成功提示
    datadata{}0json数据

    请求示例

    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://api-gw.onebound.cn/taobao/seller_cat_props/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&token=891d5886994b339992161df4bf9780c9&catid=203301"
    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. official_data: {
    3. errorLevel: "",
    4. httpStatus: "200",
    5. metadata: [ ],
    6. msg: "",
    7. code: "",
    8. errMsg: "",
    9. data: {
    10. propvalues: [
    11. {
    12. modifiedType: "",
    13. nameAlias: "DREAMAGIC/魔法星梦",
    14. isParent: null,
    15. cid: 203301,
    16. modifiedTime: null,
    17. propName: "品牌",
    18. sortOrder: -1,
    19. vid: 1497138153,
    20. pid: 20000,
    21. features: [ ],
    22. name: "DREAMAGIC/魔法星梦",
    23. status: "normal"
    24. },
    25. {
    26. modifiedType: "",
    27. nameAlias: "FREE ARMY",
    28. isParent: null,
    29. cid: 203301,
    30. modifiedTime: null,
    31. propName: "品牌",
    32. sortOrder: -1,
    33. vid: 19512119,
    34. pid: 20000,
    35. features: [ ],
    36. name: "FREE ARMY",
    37. status: "normal"
    38. },
    39. {
    40. modifiedType: "",
    41. nameAlias: "GEVJON/戈芙琼恩",
    42. isParent: null,
    43. cid: 203301,
    44. modifiedTime: null,
    45. propName: "品牌",
    46. sortOrder: -1,
    47. vid: 978788438,
    48. pid: 20000,
    49. features: [ ],
    50. name: "GEVJON/戈芙琼恩",
    51. status: "normal"
    52. },
    53. {
    54. modifiedType: "",
    55. nameAlias: "GREEDLAND/贪婪大陆",
    56. isParent: null,
    57. cid: 203301,
    58. modifiedTime: null,
    59. propName: "品牌",
    60. sortOrder: -1,
    61. vid: 1119294840,
    62. pid: 20000,
    63. features: [ ],
    64. name: "GREEDLAND/贪婪大陆",
    65. status: "normal"
    66. },
    67. {
    68. modifiedType: "",
    69. nameAlias: "HABBER & DASHER",
    70. isParent: null,
    71. cid: 203301,
    72. modifiedTime: null,
    73. propName: "品牌",
    74. sortOrder: -1,
    75. vid: 307064924,
    76. pid: 20000,
    77. features: [ ],
    78. name: "HABBER & DASHER",
    79. status: "normal"
    80. },
    81. {
    82. modifiedType: "",
    83. nameAlias: "JD/间云凡度",
    84. isParent: null,
    85. cid: 203301,
    86. modifiedTime: null,
    87. propName: "品牌",
    88. sortOrder: -1,
    89. vid: 114941969,
    90. pid: 20000,
    91. features: [ ],
    92. name: "JD/间云凡度",
    93. status: "normal"
    94. },
    95. {
    96. modifiedType: "",
    97. nameAlias: "MOE AS ALWAYS/萌若初时",
    98. isParent: null,
    99. cid: 203301,
    100. modifiedTime: null,
    101. propName: "品牌",
    102. sortOrder: -1,
    103. vid: 1061386267,
    104. pid: 20000,
    105. features: [ ],
    106. name: "MOE AS ALWAYS/萌若初时",
    107. status: "normal"
    108. },
    109. {
    110. modifiedType: "",
    111. nameAlias: "Magik Party/奇幻派对",
    112. isParent: null,
    113. cid: 203301,
    114. modifiedTime: null,
    115. propName: "品牌",
    116. sortOrder: -1,
    117. vid: 151217282,
    118. pid: 20000,
    119. features: [ ],
    120. name: "Magik Party/奇幻派对",
    121. status: "normal"
    122. },
    123. {
    124. modifiedType: "",
    125. nameAlias: "OHCOS",
    126. isParent: null,
    127. cid: 203301,
    128. modifiedTime: null,
    129. propName: "品牌",
    130. sortOrder: -1,
    131. vid: 1004496139,
    132. pid: 20000,
    133. features: [ ],
    134. name: "OHCOS",
    135. status: "normal"
    136. },
    137. {
    138. modifiedType: "",
    139. nameAlias: "SAKURAJAM/樱酱",
    140. isParent: null,
    141. cid: 203301,
    142. modifiedTime: null,
    143. propName: "品牌",
    144. sortOrder: -1,
    145. vid: 1409621956,
    146. pid: 20000,
    147. features: [ ],
    148. name: "SAKURAJAM/樱酱",
    149. status: "normal"
    150. },
    151. {
    152. modifiedType: "",
    153. nameAlias: "Selebritee",
    154. isParent: null,
    155. cid: 203301,
    156. modifiedTime: null,
    157. propName: "品牌",
    158. sortOrder: -1,
    159. vid: 10527684,
    160. pid: 20000,
    161. features: [ ],
    162. name: "Selebritee",
    163. status: "normal"
    164. },
    165. {
    166. modifiedType: "",
    167. nameAlias: "UCOSER",
    168. isParent: null,
    169. cid: 203301,
    170. modifiedTime: null,
    171. propName: "品牌",
    172. sortOrder: -1,
    173. vid: 93916348,
    174. pid: 20000,
    175. features: [ ],
    176. name: "UCOSER",
    177. status: "normal"
    178. },
    179. {
    180. modifiedType: "",
    181. nameAlias: "cosyoyo",
    182. isParent: null,
    183. cid: 203301,
    184. modifiedTime: null,
    185. propName: "品牌",
    186. sortOrder: -1,
    187. vid: 778060781,
    188. pid: 20000,
    189. features: [ ],
    190. name: "cosyoyo",
    191. status: "normal"
    192. },
    193. {
    194. modifiedType: "",
    195. nameAlias: "sixcos",
    196. isParent: null,
    197. cid: 203301,
    198. modifiedTime: null,
    199. propName: "品牌",
    200. sortOrder: -1,
    201. vid: 112174531,
    202. pid: 20000,
    203. features: [ ],
    204. name: "sixcos",
    205. status: "normal"
    206. },
    207. {
    208. modifiedType: "",
    209. nameAlias: "withcity",
    210. isParent: null,
    211. cid: 203301,
    212. modifiedTime: null,
    213. propName: "品牌",
    214. sortOrder: -1,
    215. vid: 4539858,
    216. pid: 20000,
    217. features: [ ],
    218. name: "withcity",
    219. status: "normal"
    220. },
    221. {
    222. modifiedType: "",
    223. nameAlias: "三分妄想",
    224. isParent: null,
    225. cid: 203301,
    226. modifiedTime: null,
    227. propName: "品牌",
    228. sortOrder: -1,
    229. vid: 554904174,
    230. pid: 20000,
    231. features: [ ],
    232. name: "三分妄想",
    233. status: "normal"
    234. },
    235. {
    236. modifiedType: "",
    237. nameAlias: "三次元绅士",
    238. isParent: null,
    239. cid: 203301,
    240. modifiedTime: null,
    241. propName: "品牌",
    242. sortOrder: -1,
    243. vid: 928926442,
    244. pid: 20000,
    245. features: [ ],
    246. name: "三次元绅士",
    247. status: "normal"
    248. },
    249. {
    250. modifiedType: "",
    251. nameAlias: "不眠夜",
    252. isParent: null,
    253. cid: 203301,
    254. modifiedTime: null,
    255. propName: "品牌",
    256. sortOrder: -1,
    257. vid: 79822486,
    258. pid: 20000,
    259. features: [ ],
    260. name: "不眠夜",
    261. status: "normal"
    262. },
    263. {
    264. modifiedType: "",
    265. nameAlias: "依依小天使",
    266. isParent: null,
    267. cid: 203301,
    268. modifiedTime: null,
    269. propName: "品牌",
    270. sortOrder: -1,
    271. vid: 560218574,
    272. pid: 20000,
    273. features: [ ],
    274. name: "依依小天使",
    275. status: "normal"
    276. },
    277. {
    278. modifiedType: "",
    279. nameAlias: "依媚",
    280. isParent: null,
    281. cid: 203301,
    282. modifiedTime: null,
    283. propName: "品牌",
    284. sortOrder: -1,
    285. vid: 6348155,
    286. pid: 20000,
    287. features: [ ],
    288. name: "依媚",
    289. status: "normal"
    290. },
    291. {
    292. modifiedType: "",
    293. nameAlias: "公主衣橱",
    294. isParent: null,
    295. cid: 203301,
    296. modifiedTime: null,
    297. propName: "品牌",
    298. sortOrder: -1,
    299. vid: 10419362,
    300. pid: 20000,
    301. features: [ ],
    302. name: "公主衣橱",
    303. status: "normal"
    304. },
    305. {
    306. modifiedType: "",
    307. nameAlias: "动漫世家",
    308. isParent: null,
    309. cid: 203301,
    310. modifiedTime: null,
    311. propName: "品牌",
    312. sortOrder: -1,
    313. vid: 142020492,
    314. pid: 20000,
    315. features: [ ],
    316. name: "动漫世家",
    317. status: "normal"
    318. },
    319. {
    320. modifiedType: "",
    321. nameAlias: "印之心",
    322. isParent: null,
    323. cid: 203301,
    324. modifiedTime: null,
    325. propName: "品牌",
    326. sortOrder: -1,
    327. vid: 109698756,
    328. pid: 20000,
    329. features: [ ],
    330. name: "印之心",
    331. status: "normal"
    332. },
    333. {
    334. modifiedType: "",
    335. nameAlias: "可依",
    336. isParent: null,
    337. cid: 203301,
    338. modifiedTime: null,
    339. propName: "品牌",
    340. sortOrder: -1,
    341. vid: 129209027,
    342. pid: 20000,
    343. features: [ ],
    344. name: "可依",
    345. status: "normal"
    346. },
    347. {
    348. modifiedType: "",
    349. nameAlias: "君乐多多",
    350. isParent: null,
    351. cid: 203301,
    352. modifiedTime: null,
    353. propName: "品牌",
    354. sortOrder: -1,
    355. vid: 575164056,
    356. pid: 20000,
    357. features: [ ],
    358. name: "君乐多多",
    359. status: "normal"
    360. },
    361. {
    362. modifiedType: "",
    363. nameAlias: "啊哇",
    364. isParent: null,
    365. cid: 203301,
    366. modifiedTime: null,
    367. propName: "品牌",
    368. sortOrder: -1,
    369. vid: 308116946,
    370. pid: 20000,
    371. features: [ ],
    372. name: "啊哇",
    373. status: "normal"
    374. },
    375. {
    376. modifiedType: "",
    377. nameAlias: "喵屋小铺",
    378. isParent: null,
    379. cid: 203301,
    380. modifiedTime: null,
    381. propName: "品牌",
    382. sortOrder: -1,
    383. vid: 554668026,
    384. pid: 20000,
    385. features: [ ],
    386. name: "喵屋小铺",
    387. status: "normal"
    388. },
    389. {
    390. modifiedType: "",
    391. nameAlias: "天使之羽",
    392. isParent: null,
    393. cid: 203301,
    394. modifiedTime: null,
    395. propName: "品牌",
    396. sortOrder: -1,
    397. vid: 4587584,
    398. pid: 20000,
    399. features: [ ],
    400. name: "天使之羽",
    401. status: "normal"
    402. },
    403. {
    404. modifiedType: "",
    405. nameAlias: "希薇妮",
    406. isParent: null,
    407. cid: 203301,
    408. modifiedTime: null,
    409. propName: "品牌",
    410. sortOrder: -1,
    411. vid: 125090407,
    412. pid: 20000,
    413. features: [ ],
    414. name: "希薇妮",
    415. status: "normal"
    416. },
    417. {
    418. modifiedType: "",
    419. nameAlias: "戈洛尼",
    420. isParent: null,
    421. cid: 203301,
    422. modifiedTime: null,
    423. propName: "品牌",
    424. sortOrder: -1,
    425. vid: 290922766,
    426. pid: 20000,
    427. features: [ ],
    428. name: "戈洛尼",
    429. status: "normal"
    430. },
    431. ```
    432. ```
  • 相关阅读:
    win10怎么设置不睡眠熄屏?win10设置永不睡眠的方法
    二叉苹果树——树形dp问题
    LEADTOOLS 入门教程: 配置和运行文档服务 - .NET Core
    微软总裁:元宇宙概念应避免炒作,科技行业需配合监管机构
    基于北方苍鹰优化的BP神经网络(分类应用) - 附代码
    Maven打Jar包,启动报NoClassDefFoundError错误
    Mysql 存储引擎简介
    【GIT版本控制】--常见问题与解决方案
    Git系列,自定义 git 命令,用 shell 脚本帮助你更好的实现 git 版本控制
    内存 地址转换、分段、空闲空间管理
  • 原文地址:https://blog.csdn.net/api_Anzexi/article/details/126424329