接口地址
https://ffapi.cn/int/v1/randportrait
返回格式
json
请求方式
get
请求示例
https://ffapi.cn/int/v1/randportrait
参数说明
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| format | 否 | string | 输出壁纸格式(json、url)默认为json |
| type | 否 | string | 头像站点(1=360、2=网易、3=疼讯、4=个性) |
返回数据
{
"code": 1,
"msg": "获取成功",
"imgurl": "https://p.qpic.cn/music_cover/PiajxSqBRaEI2tGl99p8c0nicTfMD8vckt5FcKlGcXTFE/90"
}
示例代码
<img src="https://ffapi.cn/int/v1/randportrait?format=url">