GET
数据查询
地震预警
地震预警,点击查看详细参数与调用示例。
累计调用 7
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/dz
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| page | int | 可选 | 翻页 | 1 |
| begtime | int | 可选 | 自动提取的参数 | 暂无 |
| endtime | int | 可选 | 自动提取的参数 | 暂无 |
| minM | int | 可选 | 自动提取的参数 | 暂无 |
| maxM | int | 可选 | 自动提取的参数 | 暂无 |
| minLon | int | 可选 | 自动提取的参数 | 暂无 |
| maxLon | int | 可选 | 自动提取的参数 | 暂无 |
| minLat | int | 可选 | 自动提取的参数 | 暂无 |
| maxLat | int | 可选 | 自动提取的参数 | 暂无 |
| minDepths | int | 可选 | 自动提取的参数 | 暂无 |
| maxDepths | int | 可选 | 自动提取的参数 | 暂无 |
| location | int | 可选 | 自动提取的参数 | 暂无 |
| locationselect | int | 可选 | 自动提取的参数 | 暂无 |
响应示例
200 OK
{
"status": "success",
"data": [
{
"number": "无数据"
}
],
"pagination": {
"current_page": 1,
"per_page": 20
}
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/dz?page=1&begtime=%E6%9A%82%E6%97%A0&endtime=%E6%9A%82%E6%97%A0&minM=%E6%9A%82%E6%97%A0&maxM=%E6%9A%82%E6%97%A0&minLon=%E6%9A%82%E6%97%A0&maxLon=%E6%9A%82%E6%97%A0&minLat=%E6%9A%82%E6%97%A0&maxLat=%E6%9A%82%E6%97%A0&minDepths=%E6%9A%82%E6%97%A0&maxDepths=%E6%9A%82%E6%97%A0&location=%E6%9A%82%E6%97%A0&locationselect=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/dz?page=1&begtime=%E6%9A%82%E6%97%A0&endtime=%E6%9A%82%E6%97%A0&minM=%E6%9A%82%E6%97%A0&maxM=%E6%9A%82%E6%97%A0&minLon=%E6%9A%82%E6%97%A0&maxLon=%E6%9A%82%E6%97%A0&minLat=%E6%9A%82%E6%97%A0&maxLat=%E6%9A%82%E6%97%A0&minDepths=%E6%9A%82%E6%97%A0&maxDepths=%E6%9A%82%E6%97%A0&location=%E6%9A%82%E6%97%A0&locationselect=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/dz?page=1&begtime=%E6%9A%82%E6%97%A0&endtime=%E6%9A%82%E6%97%A0&minM=%E6%9A%82%E6%97%A0&maxM=%E6%9A%82%E6%97%A0&minLon=%E6%9A%82%E6%97%A0&maxLon=%E6%9A%82%E6%97%A0&minLat=%E6%9A%82%E6%97%A0&maxLat=%E6%9A%82%E6%97%A0&minDepths=%E6%9A%82%E6%97%A0&maxDepths=%E6%9A%82%E6%97%A0&location=%E6%9A%82%E6%97%A0&locationselect=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/dz?page=1&begtime=%E6%9A%82%E6%97%A0&endtime=%E6%9A%82%E6%97%A0&minM=%E6%9A%82%E6%97%A0&maxM=%E6%9A%82%E6%97%A0&minLon=%E6%9A%82%E6%97%A0&maxLon=%E6%9A%82%E6%97%A0&minLat=%E6%9A%82%E6%97%A0&maxLat=%E6%9A%82%E6%97%A0&minDepths=%E6%9A%82%E6%97%A0&maxDepths=%E6%9A%82%E6%97%A0&location=%E6%9A%82%E6%97%A0&locationselect=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())