• 淘宝/天猫获取淘宝直播分类id接口 API 返回值说明


    item_videolist_cat-获取淘宝直播分类id接口 [查看演示API测试工具 注册开通

    onebound.taobao.item_videolist_cat

    公共参数

    请求地址: https://api-gw.onebound.cn/taobao/item_videolist_cat

    名称类型必须描述
    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版本

    请求参数

    请求参数:q=

    参数说明:q:视频分类

    响应参数

    Version: Date:

    名称类型必须示例值描述

    title

    String0衣服面料很好 穿起来很舒服 衣服挺合适的!标题

    channelId

    String013分类ID

    请求示例

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

    响应示例

    1. {"q": "",
    2. "page_size": 18,
    3. "real_total_results": 18,
    4. "total_results": 18,
    5. "pagecount": 1,
    6. "data_from": "app",
    7. "item": [
    8. {
    9. "title": "吃货力荐",
    10. "channelId": "13"
    11. },
    12. {
    13. "title": "亲子萌娃",
    14. "channelId": "9"
    15. },
    16. {
    17. "title": "花鸟市场",
    18. "channelId": "60"
    19. },
    20. {
    21. "title": "时髦穿搭",
    22. "channelId": "7"
    23. },
    24. {
    25. "title": "珠光宝气",
    26. "channelId": "29"
    27. },
    28. {
    29. "title": "居家生活",
    30. "channelId": "69"
    31. },
    32. {
    33. "title": "家乡好货",
    34. "channelId": "65"
    35. },
    36. {
    37. "title": "全球扫货",
    38. "channelId": "12"
    39. },
    40. {
    41. "title": "男神潮范",
    42. "channelId": "14"
    43. },
    44. {
    45. "title": "潮电数码",
    46. "channelId": "81"
    47. },
    48. {
    49. "title": "汽车嗨购",
    50. "channelId": "97"
    51. },
    52. {
    53. "title": "一起变美",
    54. "channelId": "8"
    55. },
    56. {
    57. "title": "产地直供",
    58. "channelId": "49"
    59. },
    60. {
    61. "title": "大牌精选",
    62. "channelId": "61"
    63. },
    64. {
    65. "title": "乐活时光",
    66. "channelId": "11"
    67. },
    68. {
    69. "title": "医美医疗",
    70. "channelId": "88"
    71. },
    72. {
    73. "title": "吃喝玩乐",
    74. "channelId": "72"
    75. },
    76. {
    77. "title": "旅行优选",
    78. "channelId": "31"
    79. }
    80. ],
    81. "error": "",
    82. "reason": "",
    83. "error_code": "0000",
    84. "cache": 0,
    85. "api_info": "today:8 max:10000",
    86. "execution_time": 1.338,
    87. "server_time": "Beijing/2021-01-20 13:58:12",
    88. "client_ip": "115.151.186.91",
    89. "call_args": [],
    90. "api_type": "taobao",
    91. "translate_language": "zh-CN",
    92. "translate_engine": "google_cn",
    93. "server_memory": "5.34MB",
    94. "request_id": "gw-4.6007c67325f90"
    95. }

    异常示例

    {
      "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": "taobao",
      "request_id": "15ee0ffc041242"}

    相关资料

    错误码解释

    状态代码(error_code)状态信息详细描述是否收费
    0000success接口调用成功并返回相关数据
    2000Search success but no result接口访问成功,但是搜索没有结果
    4000Server internal error服务器内部错误
    4001Network error网络错误
    4002Target server error目标服务器错误
    4003Param error用户输入参数错误忽略
    4004Account not found用户帐号不存在忽略
    4005Invalid authentication credentials授权失败忽略
    4006API stopped您的当前API已停用忽略
    4007Account stopped您的账户已停用忽略
    4008API rate limit exceeded并发已达上限忽略
    4009API maintenanceAPI维护中忽略
    4010API not found with these valuesAPI不存在忽略
    4012Please add api first请先添加api忽略
    4013Number of calls exceeded调用次数超限忽略
    4014Missing url param参数缺失忽略
    4015Wrong pageToken参数pageToken有误忽略
    4016Insufficient balance余额不足忽略
    4017timeout error请求超时
    5000unknown error未知错误

     

  • 相关阅读:
    centos7配置
    【微信小程序】粤语教学平台-粤言粤语
    动态规划 | 不同路径、整数拆分、不同的二叉搜索树 | leecode刷题笔记
    【附源码】计算机毕业设计JAVA教学辅助系统
    CDC Schemes
    5 个用于复古图像着色的开源 Python 工具
    Java之转换流的详细解析
    大模型日报|今日必读的7篇大模型论文
    PyInstaller库—Python第三方库—程序打包
    css学习心得
  • 原文地址:https://blog.csdn.net/Noah_ZX/article/details/125885254