在 K 歌场景中,你可以调用 ListHotMusic
接口,指定热歌榜类型,查询热歌榜单。
歌曲排行统计时间为前一天凌晨 00:00 到 当天凌晨 00:00。
该接口请求接入地址仅支持 rtc.volcengineapi.com
。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListHotMusic | 接口名称。当前 API 的名称为 ListHotMusic 。 |
Version | String | 是 | 2020-12-01 | 接口版本。当前 API 的版本为 2020-12-01 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
AppId | String | 是 | 661e****543cf | 你的音视频应用的唯一标志,参看获取 AppId。 |
HotTypes | Integer[] | 否 | [1,2,3] | 热歌榜类型。
|
CustomHotListId | String[] | 否 | 8bc10835-0a23-ba30-9ae6f73722f8 | 自定义热歌榜ID 列表 |
下表仅列出本接口特有的返回参数,公共返回参数请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
HotList | Object[] | - | 热歌榜单详情 |
HotType | Integer | 1 | 热歌榜单 ID |
HotName | String | 火山内容中心热歌榜 | 热歌榜单名称 |
HotSong | Object[] | - | 歌曲详情 |
CustomHotListId | String | Your_CustomHotListId | 自定义热歌榜 ID |
CustomHotListName | String | Your_CustomHotListName | 自定义热歌榜名 |
POST https://rtc.volcengineapi.com?Action=ListHotMusic&Version=2020-12-01
{
"AppId": "661e****543cf",
"CustomHotListId": [
"8bc10835-0a23-ba30-9ae6f73722f8"
]
}
{
"ResponseMetadata": {
"RequestId": "202405161117523****BACA9CFE708927C",
"Action": "",
"Version": "",
"Service": "rtc",
"Region": "cn"
},
"Result": {
"HotList": [
{
"HotType": 3,
"HotName": "自定义热歌榜",
"HotSong": [
{
"SongId": "12e0c7cd05d8565b1a9a2eea13c014d9",
"VendorId": 1,
"VendorName": "Vendor1",
"Songname": "告白气球",
"Singer": "周杰伦",
"LyricType": [
0
],
"SceneType": 0,
"PitchType": 1,
"RecordType": 1,
"RegionType": 0,
"Segment": "[54.912, 136.32]",
"Duration": 297,
"Rank": 1,
"BgmType": 2,
"PosterUrl": "http://www.com/xxx.jpg"
}
]
}
],
"CustomHotListId": "8bc10835-0a23-ba30-9ae6f73722f8",
"CustomHotListName": "测试热歌榜"
}
}