Skip to content

获取歌手单曲 ​

调用此接口,传入歌手 id, 可获得歌手部分信息和热门歌曲

接口信息 ​

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

请求参数 ​

参数类型必填默认值说明
idstring✅-歌手 id, 可由搜索接口获得

HTTP 示例 ​

bash
GET /artists?id=6452

编程式调用 ​

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

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

console.log(result.body);

返回内容 ​

正文带 code、附带信息 artist、热门歌曲 hotSongs 和 more。只有 code、hotSongs、hotSongs[].id 收紧;artist、more 和歌曲里的其他字段宽松。结构定义和类型是 ArtistsBody,见 返回体结构。

补充说明 ​

说明 : 调用此接口,传入歌手 id, 可获得歌手部分信息和热门歌曲

必选参数 : id: 歌手 id, 可由搜索接口获得

接口地址 : /artists

调用例子 : /artists?id=6452

Released under the MIT License.