返回 | 接口 / 图片壁纸 / 几何头像生成器
GET 图片壁纸

几何头像生成器

这是一个用于生成独特且容易识别图像(identicons)的 PHP 库,可根据任意字符串(用户名、哈希值等)生成独特的几何图形,支持输出为 SVG 和 PNG 格式。

累计调用 7 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/JdentIcon

请求参数

参数名类型必填说明示例
val string 可选 根据val生成具体的几何图形,如果为空则自动生成 无
format string 可选 返回格式,可以是png或svg png

响应示例

200 OK
无

在线测试

代码示例

cURL · GET
curl "https://itapi.top/api/JdentIcon?val=%E6%97%A0&format=png"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/JdentIcon?val=%E6%97%A0&format=png");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/JdentIcon?val=%E6%97%A0&format=png");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/JdentIcon?val=%E6%97%A0&format=png", timeout=10)
print(r.json())
返回接口列表