← 返回主页
骚福瑞 API
总调用
0
您的 IP
216.73.216.197
随机一言
GEThttps://api.骚福瑞.top/sjyy.php
参数类型必填说明
typestringa=动画 b=文学 c=诗词 d=哲学 e=影视 f=网络 g=其他
charsetstringutf-8 / gbk,默认 utf-8
返回字段类型说明
hitokotostring一言正文
fromstring出处
creatorstring投稿者
typestring分类标识
调用示例
curl https://api.骚福瑞.top/sjyy.php?type=a

fetch('https://api.骚福瑞.top/sjyy.php')
  .then(r=>r.json()).then(console.log)
Minecraft 服务器状态
GEThttps://api.骚福瑞.top/mcstatus.php?server=...
参数类型必填说明
serverstring服务器地址,域名(如 hypixel.net)或 IP:端口(缺省 25565)
返回字段说明
online是否在线
players在线人数 / 最大人数
version服务端版本
motd服务器 MOTD
调用示例
curl "https://api.骚福瑞.top/mcstatus.php?server=hypixel.net"

fetch('https://api.骚福瑞.top/mcstatus.php?server=mc.example.com:25565')
  .then(r=>r.json()).then(console.log)
天气查询
GEThttps://api.骚福瑞.top/weather.php?city=...
参数类型必填说明
citystring城市名称,支持中文(北京)和英文(Tokyo);不传则 IP 定位
adcodestring行政区划代码(如 110000),优先级高于 city
langstringzh(默认)/ en;生活指数仅支持中文
返回字段说明
city城市名
weather / text天气状况
temperature实时气温
humidity湿度
wind风向 / 风力
indices生活指数(仅 zh)
调用示例
curl "https://api.骚福瑞.top/weather.php?city=北京"

curl "https://api.骚福瑞.top/weather.php?adcode=110000&lang=zh"

fetch('https://api.骚福瑞.top/weather.php?city=Tokyo&lang=en')
  .then(r=>r.json()).then(console.log)