最近闲着无聊,发现了酷狗的一个开放接口😘,通过该接口用户可以获取酷狗歌手写真😍

https://openapicdnretry.kugou.com/kmr/v1/author/extend?fields_pack=allimages&authorimg_type=4,5&entity_id=

接下来我将对该接口进行使用讲解:

参数列表
请求方式GET
参数列表authorimg_type4,5        获取手机端歌手写真
2,3        获取PC端歌手写真
entity_id歌手id

示例:https://openapicdnretry.kugou.com/kmr/v1/author/extend?fields_pack=allimages&authorimg_type=4,5&entity_id=3520

返回数据:

{
  "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
}

示例图像:

 趁着酷小狗🐶还没发现,快去用起来吧😍

 

Logo

加入社区!打开量化的大门,首批课程上线啦!

更多推荐