Serverless API 系统
纯原生实现 • 文件配置 • 极速响应
域名白名单提示:
如果 API 调用失败 (403 Forbidden),请将当前域名
...
添加到
config/domain.txt
。
访客信息 (Visitor)
GET /api/visitor
加载中...
一言 (Hitokoto)
GET /api/hitokoto
加载中...
刷新句子
接口文档 (API Documentation)
GET
/api/visitor
返回调用者的 IP 地址及地理位置信息。
{ "ip": "1.1.1.1", "country": "US", "region": "CA", "city": "Los Angeles", "ll": [34.05, -118.24], "timezone": "America/Los_Angeles" }
GET
/api/hitokoto
返回一句随机名言。
参数
说明
默认值
c
分类文件名 (如 anime)
default
format
json 或 text
text
GET
/api/image
返回随机图片。
参数
说明
默认值
c
分类文件名 (如 nature)
default
format
json 或 redirect
redirect
系统配置说明
域名白名单
/config/domain.txt
一言分类
/config/hitokoto/*.txt
图片分类
/config/image/*.txt