https://xxyh.xiaoli.icu/api/p_earthquake.phphttps://xxyh.xiaoli.icu/api/p_earthquake.php?range=day&limit=20从 USGS 公开地震源获取全球地震列表,支持 range=hour/day/week/month,可按最小震级过滤、限制返回条数。
返回震级、地点、时间(UTC+8)、震源深度、经纬度、USGS 详情页与海啸标记,按时间倒序。数据缓存 5 分钟,来源为美国地质调查局,震级为矩震级 Mw。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
range |
string | 选填 | day | hour / day / week / month,默认 day |
min_mag |
string | 选填 | — | 最小震级,如 4.5 |
limit |
int | 选填 | 20 | 返回条数 1~100,默认 20 |
https://xxyh.xiaoli.icu/api/p_earthquake.php
此处将显示接口返回结果…
{
"code": 200,
"msg": "ok",
"data": {
"range": "day",
"count": 20,
"max_mag": 5.4,
"list": [
{ "mag": 5.4, "place": "xxx", "time": "2026-11-28 10:12:00", "depth_km": 35.2, "tsunami": 0 }
],
"source": "USGS earthquake feed"
}
}
—