Skip to content

歌手粉丝数量 ​

调用此接口,传入歌手 id, 可获取歌手粉丝数量

接口信息 ​

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

请求参数 ​

参数类型必填默认值说明
idstring✅-歌手 id
limitnumber | string—20取出粉丝数量,默认为 20
offsetnumber | string—-偏移数量,用于分页,如:(评论页数 - 1)*10, 其中 10 为 limit 的值

HTTP 示例 ​

bash
GET /artist/follow/count?id=2116

编程式调用 ​

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

const result = await artistFollowCount({
  id: '2116',
});

console.log(result.body);

返回内容 ​

body.code 和计数对象 body.data 收紧;isFollow、follow、fansCnt、followCnt、followDay、followDayCnt 都是宽松字段。未知歌手 id 返回 code: 404 和 data: null(录制 artist_follow_count.unknown.json,资源未找到),SDK 按业务拒绝原样转交,不会报 502。结构定义和类型是 ArtistFollowCountBody,见 返回体结构。

补充说明 ​

说明 : 调用此接口,传入歌手 id, 可获取歌手粉丝数量

必选参数 : id : 歌手 id

可选参数 : limit: 取出粉丝数量,默认为 20

offset: 偏移数量,用于分页,如:(评论页数 - 1)*10, 其中 10 为 limit 的值

接口地址 : /artist/follow/count

调用例子 : /artist/follow/count?id=2116

Released under the MIT License.