获取歌手描述
调用此接口,传入歌手 id, 可获得歌手描述
接口信息
| 项目 | 值 |
|---|---|
| 接口地址 | /artist/desc |
| 请求方式 | GET / POST |
| 需要登录 | 否 |
| 对应模块 | artist_desc |
| 文档分类 | 歌手 |
请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
id | string | ✅ | - | 歌手 id |
HTTP 示例
bash
GET /artist/desc?id=6452编程式调用
ts
import { artistDesc } from 'hana-music-api';
const result = await artistDesc({
id: '6452',
});
console.log(result.body);返回内容
body.code 和歌手介绍条目 body.introduction 收紧;briefDesc 是摘要、count 是计数(empty 录制里是 7 而 introduction 是空数组)、topicData 是相关专栏,都是宽松字段。topicData 里的专栏、专栏正文和创建者编号不收紧,原样保留。歌手没有介绍条目时 introduction 是空数组(录制 artist_desc.empty.json)。结构定义和类型是 ArtistDescBody,见 返回体结构。
补充说明
说明 : 调用此接口,传入歌手 id, 可获得歌手描述
必选参数 : id: 歌手 id
接口地址 : /artist/desc
调用例子 : /artist/desc?id=6452 ( 周杰伦 )