GET
实用工具
获取网站title和ico
获取网站title和ico
累计调用 11
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/WebInfo
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| url | string | 必填 | 链接 | 暂无 |
| type | string | 可选 | 反馈格式 | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | number | 返回提示 |
| data | array | 返回数据 |
| data.title | string | 标题 |
| data.icon | string | 网站ico |
| data.desc | string | 网站介绍 |
响应示例
200 OK
Malformed UTF-8 characters, possibly incorrectly encoded in file /www/wwwroot/oiapi.net/vendor/topthink/framework/src/think/response/Json.php line 50
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/WebInfo?url=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/WebInfo?url=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/WebInfo?url=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/WebInfo?url=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())