接口地址
https://ffapi.cn/int/v1/ipinfo
返回格式
json/image
请求方式
get
请求示例
https://ffapi.cn/int/v1/ipinfo?format=json&text=飞飞api接口:www.ffapi.cn&color=00BFFF&type=6
参数说明
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| type | 否 | string | 背景样式(1-6)不填随机切换 |
| format | 否 | string | 数据格式, 可选值 json 默认返回图片 |
| text | 否 | string | 生成签名的内容 |
| color | 否 | string | 签名字体颜色代码 (如:color=0000FF) |
返回数据
{
"code": 1,
"msg": "success",
"data": {
"imgurl": "base64编码的图片"
}
}
示例代码
<img src="https://ffapi.cn/int/v1/ipinfo?format=json&text=飞飞api接口:www.ffapi.cn&color=00BFFF&type=6">