作者:重庆互联网小徐 发布时间:2024-09-14 浏览:20413 赞(1950) 收藏 评论(0)
请求地址:https://{BASE_URL}/xwcloudapi/resources?resource_type=xxxx
请求参数:对于请求音乐资源接口,由于音乐资源地区版权问题,Q音要求请求需要携带客户端ip,判断客户所在地区。对应请求参数需要增加用户客户端ip client_addr字段,如果无法获取用户客户端ip,请与小微商务进行提前沟通。
区分音乐资源的: ?resource_type=xxxx
其中xxx 代表的请求资源类型。总计支持下列几种资源请求类型,其中请求参数和字段分别如下:
url参数: resource_type=top_list
请求参数 :无
示例:
{ "请求接口基础参数":{xxxxx} // 详见**请求接口基础参数说明**章节 "client_addr":"10.12.123.21"}
返回值:
{ "code": 0, "data": [ { "group_id": 0, "group_name": "巅峰榜", "group_top_list": [ { "listen_num": 19200000, "show_time": "2021-04-01", "song_list": [ { "rank": 1, "singer_id": 7960818, "singer_mid": "001frvj430X7HW", "singer_name": "王赫野", "song_id": 300836597, "song_name": "大风吹" }, { "rank": 2, "singer_id": 1113580, "singer_mid": "001DgngT3YCu7G", "singer_name": "宇宙少女 (우주소녀)", "song_id": 304000031, "song_name": "UNNATURAL" }, { "rank": 3, "singer_id": 199515, "singer_mid": "0003ZpE43ypssl", "singer_name": "张碧晨", "song_id": 304010757, "song_name": "光的方向" } ], "top_banner_pic": "http://y.gtimg.cn/music/photo_new/T003R500x500M000003gNBUa20nmWp.jpg", "top_desc": "", "top_header_pic": "http://y.gtimg.cn/music/photo_new/T002R300x300M000000gPVkb4VnhwL.jpg", "top_id": 62, "top_name": "飙升榜", "top_type": 0, "total_num": 100 }, ......// 省略信息 { "listen_num": 19900000, "show_time": "2021-04-01", "song_list": [ { "rank": 1, "singer_id": 2716679, "singer_mid": "002sT7040IAT6z", "singer_name": "大籽", "song_id": 291911135, "song_name": "白月光与朱砂痣" }, { "rank": 2, "singer_id": 4605080, "singer_mid": "002wl8GA0aBbGI", "singer_name": "是七叔呢", "song_id": 284726298, "song_name": "踏山河" }, { "rank": 3, "singer_id": 6016498, "singer_mid": "002YetSZ06c9c9", "singer_name": "王靖雯不胖", "song_id": 299515847, "song_name": "沦陷" } ], "top_banner_pic": "http://y.gtimg.cn/music/photo_new/T003R500x500M000001pnfxM4L2V5i.jpg", "top_desc": "", "top_header_pic": "http://y.gtimg.cn/music/photo_new/T002R300x300M000000dt9Py0BrReK.jpg", "top_id": 26, "top_name": "热歌榜", "top_type": 0, "total_num": 300 } ] }, ......// 省略排行榜信息 { "group_id": 3, "group_name": "全球榜", "group_top_list": [ { "listen_num":4369840, "show_time":"2021-03-31", "song_list":[ { "rank":1, "singer_id":16257, "singer_mid":"002DYpxl3hW3EP", "singer_name":"Justin Bieber/Daniel Caesar/Giveon", "song_id":300113884, "song_name":"Peaches (Explicit)" }, { "rank":2, "singer_id":1227276, "singer_mid":"003KiJMA3QCdjW", "singer_name":"Cardi B", "song_id":297259945, "song_name":"Up (Explicit)" }, { "rank":3, "singer_id":21414, "singer_mid":"001F1svH2tTpsC", "singer_name":"Bruno Mars/Anderson .Paak/Silk Sonic", "song_id":300213969, "song_name":"Leave The Door Open" } ], "top_banner_pic":"http://y.gtimg.cn/music/photo_new/T003R500x500M000002UkBD63JwEk5.jpg", "top_desc":"", "top_header_pic":"http://y.gtimg.cn/music/photo_new/T003R300x300M000002XfMnF0RYwV1.jpg", "top_id":108, "top_name":"美国公告牌榜", "top_type":1, "total_num":100 }, ......// 省略信息 { "listen_num":229106, "show_time":"2021-03-29", "song_list":[ { "rank":1, "singer_id":3261008, "singer_mid":"002p1bn538A19D", "singer_name":"Pooh Shiesty/Lil Durk", "song_id":283349986, "song_name":"Back In Blood(feat. Lil Durk) (Explicit)" }, { "rank":2, "singer_id":2394979, "singer_mid":"000OKtrZ1hbQao", "singer_name":"Coi Leray", "song_id":294374735, "song_name":"No More Parties (Explicit)" }, { "rank":3, "singer_id":1227276, "singer_mid":"003KiJMA3QCdjW", "singer_name":"Cardi B", "song_id":297259945, "song_name":"Up (Explicit)" } ], "top_banner_pic":"http://y.gtimg.cn/music/photo_new/T003R500x500M000002T87Aj0BfKAA.jpg", "top_desc":"", "top_header_pic":"http://y.gtimg.cn/music/photo_new/T003R300x300M000002HsHYh1PQM0q.jpg", "top_id":128, "top_name":"YouTube音乐排行榜", "top_type":1, "total_num":100 } ] } ], "debug_data": null, "msg": ""}
重庆互联网项目从2004年开始为各行各业提供互联网发展解决方案,专业从事网站、小程序、微信公众号、APP、电商平台、系统等互联网平台开发,帮助企业实现从传统行业到互联网的完美转型。截止目前,重庆互联网合作的企业遍布全国各地,20年的开发经验和完善的售后服务体系获得合作客户的高度认可!
关注重庆互联网官方公众号,即可获取粉丝专享福利!
欢迎广大用户为此页面进行评价,评价成功将获得积分奖励!