Expected JSON Response Schema
Copy Schema
{
"events": [
{
"id": "evt_98421",
"type": "ddos", // "ddos" | "malware" | "bruteforce" | "exploit" | "phishing"
"sourceIp": "185.220.101.42",
"origin": { "city": "Frankfurt", "country": "Germany", "code": "DE", "lat": 50.11, "lon": 8.68 },
"target": { "city": "Ashburn", "country": "United States", "code": "US", "lat": 39.04, "lon": -77.49 },
"port": "UDP/53",
"severity": "CRIT", // "CRIT" | "HIGH" | "MED" | "LOW"
"timestamp": "2026-11-28T01:27:00Z"
}
]
}
Deploy tip: Place a Cloudflare Pages Function at functions/api/threats.js in your repository to proxy live threat feeds without exposing API keys to the browser.