Skip to content

歌手热门 50 首歌曲 ​

调用此接口,可获取歌手热门 50 首歌曲

接口信息 ​

项目值
接口地址/artist/top/song
请求方式GET / POST
需要登录否
对应模块artist_top_song
文档分类歌手

请求参数 ​

参数类型必填默认值说明
idstring✅-歌手 id

HTTP 示例 ​

bash
GET /artist/top/song?id=6452

编程式调用 ​

ts
import { artistTopSong } from 'hana-music-api';

const result = await artistTopSong({
  id: '6452',
});

console.log(result.body);

返回内容 ​

body.songs 是歌手的热门歌曲,每首歌的字段见 返回体结构 里的“歌曲”;正文还声明了宽松的 more。只有 code、songs、songs[].id 收紧,其余字段宽松。结构定义和类型是 ArtistTopSongBody。

补充说明 ​

说明 : 调用此接口,可获取歌手热门 50 首歌曲

必选参数 :

id : 歌手 id

接口地址 : /artist/top/song

调用例子 : /artist/top/song?id=6452

Released under the MIT License.