GET
图片壁纸
github仓库预览
获取仓库预览图片
累计调用 18
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/gitck
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| type | int | 可选 | 返回格式,json或者image | 暂无 |
| repo | string | 可选 | 仓库地址,例如yzdz666/AIChatApp | 暂无 |
响应示例
200 OK
{"code":404,"msg":"仓库不存在或地址错误","data":null}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/gitck?type=%E6%9A%82%E6%97%A0&repo=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/gitck?type=%E6%9A%82%E6%97%A0&repo=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/gitck?type=%E6%9A%82%E6%97%A0&repo=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/gitck?type=%E6%9A%82%E6%97%A0&repo=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())