稳定、快速、免费的 API 接口服务
通过id获取哔哩哔哩粉丝和关注
接口地址: https://apis.jxcxin.cn/api/blfs
返回格式: JSON
请求方式: GET
请求示例: https://apis.jxcxin.cn/api/blfs?id=100277722
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
id | 是 | string | 需要查询的哔哩哔哩ID |
type | 否 | string | 返回参数类型,type=json则输出json类型,不填写则直接输出文本类型 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
code | string | 返回的状态码 |
message | string | 返回查询信息 |
ttl | string | 查询通道 |
data | string | 返回查询的详细信息 |
mid | string | 返回查询的哔哩哔哩用户ID |
following | string | 返回关注数量 |
follower | string | 返回粉丝数量 |
返回示例:
{ "code":0, "message":"0", "ttl":1, "data":{ "mid":100277722, "following":4, "whisper":0, "black":0, "follower":26 } }
请求参数设置:
参数名称 | 参数值 | 操作 |
---|---|---|
{ "code":0, "message":"0", "ttl":1, "data":{ "mid":100277722, "following":4, "whisper":0, "black":0, "follower":26 } }
错误码格式说明:
名称 | 类型 | 说明 |
---|---|---|
-1 | string | 参数缺失 |
3200 | string | apiKey为空 |
3201 | string | apiKey错误 |
3202 | string | apiKey过期 |
3203 | string | 请求频繁 |
代码示例: