# 精选头像API接口

摘要

随机输出一张精选头像图片

接口地址:

https://api.vvhan.com/api/avatar/rand

请求方式:

GET

返回格式:

JSON

请求示例:

https://api.vvhan.com/api/avatar/rand

图片输出:

https://api.vvhan.com/api/avatar/rand

JSON输出:

https://api.vvhan.com/api/avatar/rand?type=json

请求参数:
名称必填说明

typeJSON输出:json

返回状态:
名称必填说明

success成功:true,失败:false

message返回状态描述信息

返回示例:

{"success":true,"type":"精选头像","url":"https://i0.wp.com/web-static.4ce.cn/storage/bucket/v1/019d69ddaa6d51362b33fe3aa18f3aa0.webp"}