李经理:15682290831

通用服务端
视频编辑SDK
K歌SDK

功能说明

此接口会根据接入用户的平台音乐使用数据、音乐行业热度数据综合计算,向接入平台推荐符合平台调性的热门音乐内容。

请求方法

GET

Header

以下请求参数列表仅列出了部分公共参数,完整公共参数列表见 公共参数列表

请求参数

请求示例

                 HFClient client = new DefaultHFClient(url, appkey, secret);
 HFBaseHotRequest request = new HFBaseHotRequest();
 request.setMethod(HFRequest.METHOD_GET);
 request.setPage(1);
 request.setPageSize(10);
 request.setStartTime(1594639058L);
 request.setDuration(183);
 request.setLevels("MUSIC_EFFECT");
 request.setClientId("hf2y7jk19a56qetq05");
 try {
    HFBaseHotResponse response = client.execute(request);
    System.out.println(JSON.toJSON(response));
 } catch (ApiException e) {
     e.printStackTrace();
 }
              

响应数据

        curl -G https://gateway-open.haifanwu.com -H "Authorization:HF3-HMAC-SHA1 Signature=29CF2C35817A28159D8BEBBC14A18D46" -H "X-HF-ClientId:hf2y7jk19a56qetq05" -H "X-HF-AppId:170ae316b9b14c1b9c185988771bde16" -H "X-HF-Action:BaseHot" -H "X-HF-Timestamp:1595820874901" -H "X-HF-Version:V4.2.0" -H "X-HF-Nonce:rmwSKNTGoqqBVauyldrugnWyKXroAfRz"
-X GET -d "Duration=183&Page=1&PageSize=20&StartTime=1594639058" 
  {
    "code": 10200,
    "msg": "操作成功",
    "data": {
      "record": [{
        "musicId": "4B40E8CB4",
        "musicName": "碇元初步",
        "albumId": "242016",
        "albumName": "EVA 芬克家族",
        "duration": 0,
        "bpm": 0,
        "auditionBegin": 0,
        "auditionEnd": 0,
        "tag": [{
          "tagId": 5439,
          "tagName": "流行 Pop",
          "child": []
        }, {
          "tagId": 5440,
          "tagName": "-",
          "child": []
        }],
        "cover": [{
          "url": "https://static-hifiveai-open.haifanwu.com/artwork/COPYRIGHT/4B40E8C95/4B40E8C95.jpg",
          "size": ""
        }],
        "artist": [{
          "name": "杰西",
          "code": "1D652A73C86",
          "avatar": "https://static-hifiveai-open.haifanwu.com/artist/default.png?sign=d321bfd394d017371f0da506aa4b3550&t=1595818666"
        }],
        "author": [],
        "composer": [{
          "name": "杰西",
          "code": "1D652A73C86",
          "avatar": "https://static-hifiveai-open.haifanwu.com/artist/default.png?sign=d321bfd394d017371f0da506aa4b3550&t=1595818666"
        }],
        "arranger": [],
        "version": [{
          "name": "主版本",
          "musicId": "4B40E8CB4",
          "free": 0,
          "price": 48000,
          "majorVersion": true,
          "duration": 0,
          "auditionBegin": 0,
          "auditionEnd": 0
        }]
      }, {
        "musicId": "4B40E8CBD",
        "musicName": "风吹玉米田",
        "albumId": "242016",
        "albumName": "EVA 芬克家族",
        "duration": 0,
        "bpm": 0,
        "auditionBegin": 0,
        "auditionEnd": 0,
        "tag": [{
          "tagId": 5439,
          "tagName": "流行 Pop",
          "child": []
        }, {
          "tagId": 5440,
          "tagName": "-",
          "child": []
        }],
        "cover": [{
          "url": "https://static-hifiveai-open.haifanwu.com/artwork/COPYRIGHT/4B40E8C95/4B40E8C95.jpg",
          "size": ""
        }],
        "artist": [{
          "name": "杰西",
          "code": "1D652A73C86",
          "avatar": "https://static-hifiveai-open.haifanwu.com/artist/default.png?sign=d321bfd394d017371f0da506aa4b3550&t=1595818666"
        }],
        "author": [],
        "composer": [{
          "name": "杰西",
          "code": "1D652A73C86",
          "avatar": "https://static-hifiveai-open.haifanwu.com/artist/default.png?sign=d321bfd394d017371f0da506aa4b3550&t=1595818666"
        }],
        "arranger": [],
        "version": [{
          "name": "主版本",
          "musicId": "4B40E8CBD",
          "free": 0,
          "price": 48000,
          "majorVersion": true,
          "duration": 0,
          "auditionBegin": 0,
          "auditionEnd": 0
        }]
      }],
      "meta": {
        "totalCount": 2,
        "currentPage": 1
      }
    },
    "taskId": "11ac24b6f8714833ad74e988367697b9"
  }

      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据