所有端点均需 X-API-Key 请求头。在 GlobMaps 控制台获取您的密钥。
https://api.globmaps.com需要 X-API-Key,按计划限速。
https://app.globmaps.com/api会话认证。供控制台 UI 使用。
| Level | Description | Score | SPEI-1 |
|---|---|---|---|
| 🟡 D0 | Abnormally Dry | ≥40 | -0.5 to -0.8 |
| 🟠 D1 | Moderate Drought | ≥50 | -0.8 to -1.3 |
| 🔴 D2 | Severe Drought | ≥65 | -1.3 to -1.6 |
| 🚨 D3 | Extreme Drought | ≥80 | -1.6 to -2.0 |
| ⛔ D4 | Exceptional Drought | ≥95 | < -2.0 |
任意坐标的综合风险评分。干旱使用真实 ERA5/SPEI 数据,其他类型使用聚合实时数据。
/api/risk-map/scoreREAL DATA获取任意坐标的综合风险评分。支持干旱(ERA5/SPEI 真实数据)、洪水、野火、热浪和风暴风险类型。
latnumberreqlngnumberreqriskTypestringreqincludeHistoricalbooleanopttimeframestringoptcurl -X POST "https://api.globmaps.com/api/risk-map/score" \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"lat": 13.7563,
"lng": 100.5018,
"riskType": "drought",
"timeframe": "30d"
}'{
"success": true,
"data": {
"location": { "lat": 13.7563, "lng": 100.5018 },
"riskType": "drought",
"riskScore": 67,
"riskLevel": "high",
"summary": "Drought severity: D2 (SPEI-1: -1.42). 3.2km from nearest grid point.",
"details": {
"currentConditions": {
"spei1": -1.42, "spei3": -1.18, "spei6": -0.91, "spei12": -0.54,
"severity": "D2", "distanceKm": 3.2, "month": "2026-04"
}
},
"dataSources": ["ERA5 Climate Reanalysis", "GlobMaps Drought Pipeline"],
"timestamp": "2026-05-10T08:00:00Z"
}
}/api/risk-map/score?format=geojson与上方相同,但返回 GeoJSON Feature 格式——可直接用于 QGIS、ArcGIS、Mapbox 和 Kepler.gl。
curl -X POST "https://api.globmaps.com/api/risk-map/score" \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"lat": 13.7563,
"lng": 100.5018,
"riskType": "drought"
}'{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [100.5018, 13.7563] },
"properties": {
"riskType": "drought",
"riskScore": 67,
"riskLevel": "high",
"summary": "Drought severity: D2 (SPEI-1: -1.42).",
"spei1": -1.42, "spei3": -1.18,
"dataSources": ["ERA5 Climate Reanalysis", "GlobMaps Drought Pipeline"],
"timestamp": "2026-05-10T08:00:00Z"
}
}基于 ERA5 再分析数据的完整 SPEI/SPI 干旱情报。支持格网级和省级查询。
/api/risk-map/droughtREAL DATA查询任意坐标的干旱指数(SPEI-1/3/6/12、SPI-1、MCDI)。返回最近格网点及完整气候学详情。
latnumberreqlngnumberreqmonthstringoptcurl "https://api.globmaps.com/api/risk-map/drought?lat=13.7563&lng=100.5018" \ -H "X-API-Key: <your_api_key>"
{
"success": true,
"data": {
"location": {
"requestedLat": 13.7563, "requestedLng": 100.5018,
"gridId": "THA_1234", "gridLat": 13.75, "gridLng": 100.50,
"distanceKm": 0.8, "country": "THA"
},
"period": {
"month": "2026-04",
"climatologyBaseline": "1991-2020"
},
"drought": {
"score": 67, "level": "high",
"indices": { "spei1": -1.42, "spei3": -1.18, "spei6": -0.91, "spei12": -0.54, "spi1": -1.31, "mcdi": -1.05 },
"severity": { "spei1": "D2" }
}
}
}/api/risk-map/drought/provinceREAL DATA按省份名称查询干旱数据。目前支持泰国全部 77 个府(country=THA)。
namestringreqcountrystringoptmonthstringoptcurl "https://api.globmaps.com/api/risk-map/drought/province?name=Chiang+Mai&country=THA" \ -H "X-API-Key: <your_api_key>"
GET /api/risk-map/drought/province?name=Chiang+Mai&country=THA
{
"success": true,
"data": {
"province": "Chiang Mai",
"country": "THA",
"month": "2026-04",
"score": 72,
"level": "high",
"indices": { "spei1": -1.61, "spei3": -1.32, "spei6": -1.08 },
"severity": { "spei1": "D3" }
}
}一次调用处理多个位置。GeoJSON 输出可直接用于 GIS 工具。
/api/risk-map/batchREAL DATA单次请求最多处理 100 个位置,返回每个坐标的干旱指数。支持 JSON 和 GeoJSON FeatureCollection 输出。
locationsarrayreqriskTypestringreqformatstringoptcurl -X POST "https://api.globmaps.com/api/risk-map/batch" \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"riskType": "drought",
"format": "json",
"locations": [
{ "id": "bkk", "lat": 13.7563, "lng": 100.5018 },
{ "id": "cnx", "lat": 18.7883, "lng": 98.9853 },
{ "id": "hkt", "lat": 7.8804, "lng": 98.3923 }
]
}'{
"success": true,
"data": {
"count": 3,
"riskType": "drought",
"results": [
{ "id": "bkk", "lat": 13.7563, "lng": 100.5018, "riskScore": 67, "riskLevel": "high", "severity": "D2", "spei1": -1.42 },
{ "id": "cnx", "lat": 18.7883, "lng": 98.9853, "riskScore": 78, "riskLevel": "high", "severity": "D3", "spei1": -1.68 },
{ "id": "hkt", "lat": 7.8804, "lng": 98.3923, "riskScore": 22, "riskLevel": "low", "severity": null, "spei1": 0.31 }
],
"timestamp": "2026-05-10T08:00:00Z"
}
}由 WHO EIOS、CDC FluNet、ProMED 和 HealthMap 驱动的疾病监测情报。
/api/outbreak-radar/query任意坐标的疾病监测情报。由 WHO EIOS、CDC FluNet、ProMED 和 HealthMap 数据源驱动。
latnumberreqlngnumberreqdiseaseTypestringreqtimeframestringoptcurl -X POST "https://api.globmaps.com/api/outbreak-radar/query" \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"lat": 13.7563,
"lng": 100.5018,
"diseaseType": "dengue",
"timeframe": "30d"
}'{
"success": true,
"data": {
"location": { "lat": 13.7563, "lng": 100.5018 },
"diseaseType": "dengue",
"riskScore": 78,
"riskLevel": "high",
"outbreakStatus": "warning",
"activeClusters": 3,
"caseEstimate": 1240,
"trend": "increasing",
"summary": "Elevated dengue activity confirmed in Bangkok metro area.",
"details": {
"intelligence": "WHO EIOS monitoring confirms elevated dengue activity...",
"keyFindings": [
"Risk score: 78/100 based on WHO EIOS + CDC FluNet",
"3 active clusters within 100km radius",
"Trend: increasing — 30-day rolling average"
]
},
"dataSources": ["WHO EIOS", "CDC FluNet", "ProMED", "HealthMap", "ECDC"],
"timestamp": "2026-05-10T08:00:00Z"
}
}来自 AIS 和 UN Comtrade 的港口拥堵、船舶追踪、ETA 延误及贸易中断情报。
/api/supply-chain/query港口拥堵、船舶数量、ETA 延误及贸易中断情报。提供坐标或 UN/LOCODE 港口代码。
latnumberoptlngnumberoptportCodestringoptqueryTypestringreqcurl -X POST "https://api.globmaps.com/api/supply-chain/query" \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"portCode": "THLCH",
"queryType": "congestion"
}'{
"success": true,
"data": {
"port": { "code": "THLCH", "name": "Laem Chabang" },
"queryType": "congestion",
"congestionIndex": 54,
"vesselCount": 18,
"avgDwellDays": 3.2,
"etaDelayHours": 14,
"disruptionRisk": "medium",
"summary": "Moderate congestion at Laem Chabang — above baseline threshold.",
"details": {
"keyFindings": [
"Congestion index: 54/100 — above baseline of 40",
"18 vessels at anchor — 4 bulk carriers, 9 container ships, 5 tankers",
"ETA delay: +14 hours average vs scheduled arrival"
]
},
"dataSources": ["AIS Real-time (MarineTraffic)", "VesselsValue", "UN Comtrade"],
"timestamp": "2026-05-10T08:00:00Z"
}
}