最近闲着无聊,发现了酷狗的一个开放接口😘,通过该接口用户可以获取酷狗歌手写真😍
接下来我将对该接口进行使用讲解:
请求方式 | GET | |
参数列表 | authorimg_type | 4,5 获取手机端歌手写真 |
2,3 获取PC端歌手写真 | ||
entity_id | 歌手id |
返回数据:
{ "error_code": 0, "msg": "", "data": [ { "__status": 1, "base": { "author_id": 3520, "author_name": "周杰伦", "is_publish": 1, "language": "华语", "avatar": "http://singerimg.kugou.com/uploadpic/softhead/{size}/20230510/20230510173043311.jpg", "identity": 15, "type": 1, "country": "中国", "birthday": "1979-01-18" }, "imgs": [ { "id": 551578, "file": "http://imge.kugou.com/v2/mobile_portrait/2cfe9ac7f88d968ed09a8e422b493388.jpg", "hash": "2cfe9ac7f88d968ed09a8e422b493388", "publish_time": "2015-01-01", "source": 0, "type": 4 }, { "id": 4999620, "file": "http://imge.kugou.com/v2/mobile_portrait/8c0247d610c292b975e713df5a9a2217.jpg", "hash": "8c0247d610c292b975e713df5a9a2217", "publish_time": "2012-01-01", "source": 0, "type": 4 }, ... ] } ], "status": 1 }
示例图像:
趁着酷小狗🐶还没发现,快去用起来吧😍