接口线路类型一[集群IP接口-免费]
[接口地址1] :当前负载【】 接口通讯【正常

复制

测速 

[接口地址2] :当前负载【】 接口通讯【正常

复制

测速 

[接口地址3] :当前负载【】 接口通讯【正常

复制

测速 

说明:直接访问https://api.apihz.cn/getapi.php获取当前最优接口地址,IP接口省去域名解析步骤,速度较快。集群IP接口并非永久有效,且容易遭受攻击,建议定期获取当前最优IP接口地址做容错处理,或直接使用域名接口或彩钻接口。IP直链接口CC防火墙严格。
接口线路类型二[域名接口-免费]
[接口地址] :[自动分发到集群接口服务器,但可能因网络运营商DNS缓存如果某个集群节点发生故障会造成个别地区有1天左右的故障期。CC防火墙适中。]

复制

测速 

接口线路类型三[超高稳定-最低24¥/月]
[彩钻接口] :[专属集群+普通集群+备用集群,自动负载均衡,自动故障切换,抗攻击,全球智能CDN加速。超高稳定性!CC防火墙宽松。登录后购买。]

复制

测速 

请求示例
[GET]请求示例:(以下为公共KEY,共享每分钟调用频次,请登录后使用自己的KEY独享频次)

复制全部

复制参数 

[POST]请求示例(请根据开发语言自行POST)

请求参数说明
注意:请求编码为UTF8,否则带中文请求可能失败。一般参数不能带+号,会被自动替换为空格。
提示:如发现接口有BUG,可加服务QQ群500700444,及时向我们反馈。
提示:请求参数里的开发者ID与KEY,登录后台菜单【个人资料】里查看。
名称 参数 必填 说明
开发者IDid用户中心的数字ID,例:id=10000000
开发者KEYkey用户中心通讯秘钥,例:key=15he5h15ty854j5sr152hs2
动态秘钥dkey开发者开启动态秘钥验证后需传此参数,主要针对直接在客户端调用接口的场景。请在官网后台菜单【个人资料】里配置。例:dkey=0cd2a494831736587c33f30d1e544371
用户IPuip接口调用者IP,用于后台统计IP地域分布,ISP运营商,时段IP数统计等,如不传该参数则默认为接口请求端IP,该参数主要用于使用后端服务器/中间件请求接口的方式使用。例:uip=123.123.123.123。该参数彩钻会员和炫钻会员专享。
返回参数说明
名称 参数 说明
状态码code200成功,400错误
消息内容msg如果状态码返回400则msg返回错误信息提示。
数据集data数据集
缓存时间data.hctime数据在接口盒子的缓存时间
地震等级data.leve地震等级
地震时间data.addtime地震发生时间
纬度data.weidu纬度
经度data.jingdu经度
深度data.shendu地震深度,单位千米
地震位置data.weizhi地震位置
返回数据示例
示例:{"code":400,"msg":"查询失败,请重试。"}
示例:{
    "code": 200,
    "data": [{
        "addtime": "2025-08-14 11:57:55",
        "leve": "3.2",
        "weidu": "32.53",
        "jingdu": "93.67",
        "shendu": "10",
        "weizhi": "西藏那曲市巴青县",
        "hctime": "2025-08-14 12:10:20"
    }, {
        "addtime": "2025-08-14 11:16:06",
        "leve": "3.1",
        "weidu": "44.10",
        "jingdu": "86.96",
        "shendu": "14",
        "weizhi": "新疆昌吉州呼图壁县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-14 00:13:12",
        "leve": "3.3",
        "weidu": "33.03",
        "jingdu": "118.68",
        "shendu": "12",
        "weizhi": "江苏淮安市盱眙县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-12 16:24:24",
        "leve": "6.3",
        "weidu": "-2.10",
        "jingdu": "138.95",
        "shendu": "10",
        "weizhi": "印尼巴布亚省",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-12 14:56:25",
        "leve": "3.0",
        "weidu": "25.81",
        "jingdu": "98.47",
        "shendu": "10",
        "weizhi": "缅甸",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-12 14:01:18",
        "leve": "3.1",
        "weidu": "39.74",
        "jingdu": "114.63",
        "shendu": "12",
        "weizhi": "河北张家口市蔚县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-11 10:21:01",
        "leve": "5.8",
        "weidu": "15.10",
        "jingdu": "-94.20",
        "shendu": "10",
        "weizhi": "墨西哥沿岸近海",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-11 00:53:46",
        "leve": "6.3",
        "weidu": "39.20",
        "jingdu": "27.95",
        "shendu": "10",
        "weizhi": "土耳其",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-10 14:03:36",
        "leve": "4.5",
        "weidu": "23.73",
        "jingdu": "121.60",
        "shendu": "10",
        "weizhi": "台湾花莲县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-10 12:56:48",
        "leve": "5.9",
        "weidu": "13.15",
        "jingdu": "145.75",
        "shendu": "10",
        "weizhi": "马里亚纳群岛",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-10 04:40:58",
        "leve": "6.0",
        "weidu": "13.60",
        "jingdu": "-92.30",
        "shendu": "10",
        "weizhi": "危地马拉沿岸近海",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-09 22:04:05",
        "leve": "6.0",
        "weidu": "50.00",
        "jingdu": "160.05",
        "shendu": "10",
        "weizhi": "千岛群岛以东海域",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-09 03:31:21",
        "leve": "3.1",
        "weidu": "32.28",
        "jingdu": "88.04",
        "shendu": "10",
        "weizhi": "西藏那曲市双湖县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-08 02:31:07",
        "leve": "3.3",
        "weidu": "22.56",
        "jingdu": "101.93",
        "shendu": "10",
        "weizhi": "云南普洱市江城县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-08 00:33:59",
        "leve": "5.9",
        "weidu": "-4.30",
        "jingdu": "152.85",
        "shendu": "10",
        "weizhi": "巴布亚新几内亚",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-07 15:45:05",
        "leve": "5.4",
        "weidu": "24.50",
        "jingdu": "123.00",
        "shendu": "80",
        "weizhi": "台湾以东海域",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-06 18:43:11",
        "leve": "5.7",
        "weidu": "51.60",
        "jingdu": "159.40",
        "shendu": "10",
        "weizhi": "堪察加东岸远海",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-06 18:35:08",
        "leve": "5.8",
        "weidu": "51.65",
        "jingdu": "159.50",
        "shendu": "10",
        "weizhi": "堪察加东岸远海",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-06 14:20:01",
        "leve": "3.0",
        "weidu": "38.59",
        "jingdu": "100.17",
        "shendu": "8",
        "weizhi": "甘肃张掖市肃南县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-05 13:06:43",
        "leve": "5.3",
        "weidu": "28.20",
        "jingdu": "59.00",
        "shendu": "30",
        "weizhi": "伊朗",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-04 12:20:53",
        "leve": "6.2",
        "weidu": "48.65",
        "jingdu": "157.00",
        "shendu": "10",
        "weizhi": "千岛群岛以东海域",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-04 09:33:27",
        "leve": "3.3",
        "weidu": "39.94",
        "jingdu": "113.45",
        "shendu": "8",
        "weizhi": "山西大同市云州区",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-04 04:52:08",
        "leve": "3.0",
        "weidu": "42.05",
        "jingdu": "88.13",
        "shendu": "21",
        "weizhi": "新疆吐鲁番市托克逊县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 22:26:49",
        "leve": "5.6",
        "weidu": "52.50",
        "jingdu": "160.60",
        "shendu": "20",
        "weizhi": "堪察加东岸远海",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 13:37:55",
        "leve": "6.7",
        "weidu": "50.55",
        "jingdu": "157.80",
        "shendu": "40",
        "weizhi": "千岛群岛附近海域",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 11:46:59",
        "leve": "3.6",
        "weidu": "29.76",
        "jingdu": "92.59",
        "shendu": "10",
        "weizhi": "西藏林芝市工布江达县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 11:03:21",
        "leve": "3.0",
        "weidu": "42.31",
        "jingdu": "84.81",
        "shendu": "10",
        "weizhi": "新疆巴音郭楞州轮台县",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 06:12:45",
        "leve": "3.1",
        "weidu": "39.95",
        "jingdu": "113.47",
        "shendu": "10",
        "weizhi": "山西大同市云州区",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-03 01:58:48",
        "leve": "5.8",
        "weidu": "17.45",
        "jingdu": "-96.05",
        "shendu": "70",
        "weizhi": "墨西哥",
        "hctime": "2025-08-14 11:45:44"
    }, {
        "addtime": "2025-08-02 23:57:51",
        "leve": "4.0",
        "weidu": "40.49",
        "jingdu": "77.23",
        "shendu": "11",
        "weizhi": "新疆克孜勒苏州阿图什市",
        "hctime": "2025-08-14 11:45:44"
    }]
}
更新记录
2025-08-14 12:26:44 - 新增大量历史地震数据。调整了某些返回字段名。

2025-03-26 23:29:18 - 加强三通道线路,大大优化了更新最新地震数据的稳定性。同时优化了数据模版,解决了可能造成长时间获取失败的BUG。

2024-07-22 14:18:22 - 新增接口。

 天气预报-全球最新地震信息[正式测定]-2025-08-14 12:26:44

获取最新全球地震发生地,经度,纬度,地震深度等信息。注意该接口数据为中国地震台网官方正式测定数据,发布时间可能较震情速报慢,可配合全球最新地震信息[震情速报]接口使用。

调用限制
单价/次 免费[无上限]
瞬时并发[单IP] 20
单日[所有用户之和] 999999999
1分钟并发[所有用户之和] 999999999
1小时并发[所有用户之和] 999999999
频次限制[注册用户] 10次/分钟|每日无上限
频次限制[钻石会员] 最高+1500次/分钟|每日无上限
频次限制[定制频次] 联系我们定制
调用方法
请求方式 GET/POST
返回格式 JSON
编码格式 UTF-8
调用信息
浏览量 2484
今日总计调用 3374
昨日总计调用 21995
历史总计调用 21271747
今日排名 13
总排名 10
自检信息

自检日志

自检启用状态 已启用
自检节点 上海
自检线路 彩钻接口线路
自检时间 2025-09-01 03:48:23
自检耗时 178 毫秒
自检状态 正常
历史自检成功数 171376 次
历史自检失败数 65 次
历史自检成功率 99.96 %
今日自检成功数 63 次
今日自检失败数 0 次
今日自检成功率 100.00 %