เอกสาร

สร้างด้วย
GlobMaps API

API ภูมิสารสนเทศพร้อมใช้งานสำหรับการพยากรณ์การระบาด การทำแผนที่ความเสี่ยง และความโปร่งใสของซัพพลายเชน

บทนำ

GlobMaps provides production-ready geo-intelligence APIs for outbreak prediction, risk mapping, and supply chain visibility. All APIs return JSON responses with consistent envelopes.

การยืนยันตัวตน

Include your API key in the X-API-Key header. Get your API key from the dashboard. All requests must include a valid key.

เริ่มต้นอย่างรวดเร็ว

Make your first API call in minutes. Get risk data for Thailand with a simple GET request.

Endpoints

Explore our API endpoints for Risk Map, Outbreak Radar, and Supply Chain services.

รูปแบบการตอบกลับ

All responses follow a consistent envelope structure with requestId, asOf, data, and warnings.

การจัดการข้อผิดพลาด

Learn about error codes, validation rules, and how to handle rate limits.

ตัวอย่างโค้ด

cURL
curl -X GET "https://api.globmaps.com/v1/risk-data?regionId=TH" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json"
JavaScript
const response = await fetch('https://api.globmaps.com/v1/risk-data?regionId=TH', {
  headers: {
    'X-API-Key': 'your_api_key',
    'Content-Type': 'application/json'
  }
});
const data = await response.json();
Python
import requests

response = requests.get(
    'https://api.globmaps.com/v1/risk-data',
    params={'regionId': 'TH'},
    headers={'X-API-Key': 'your_api_key'}
)
data = response.json()

รูปแบบการตอบกลับ

{
  "requestId": "req_abc123",
  "asOf": "2026-04-19T10:30:00Z",
  "data": {},
  "warnings": []
}

พารามิเตอร์

พารามิเตอร์ประเภทรายละเอียด
localestring (ค่าเริ่มต้น: en)en | th | zh
regionIdstringCountry or province code
asOfISO8601Timestamp for historical data

รหัสสถานะ

200สำเร็จ
400ข้อผิดพลาดการตรวจสอบ
401ไม่ได้รับอนุญาต
404ไม่พบ
429จำกัดอัตรา
500ข้อผิดพลาดเซิร์ฟเวอร์

การตอบกลับข้อผิดพลาด

{
  "requestId": "req_abc123",
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid regionId",
    "details": {
      "field": "regionId"
    }
  }
}