🚨 Alert-JP API

Real-time emergency alert delivery for Japan

-- alerts delivered

Last updated: Loading...

⚠️ Important Notice

This API is not a substitute for official emergency alerts. Always check the JMA official information.

πŸ“‘ Data Sources

Collecting alert data from multiple reliable sources

πŸ“– API Documentation

Base URL

https://api.alert-jp.org

πŸš€ Key Endpoints

GET /api/v1/alerts - Latest alert list
SSE /api/v1/stream/alerts - Real-time stream
WS wss://api.alert-jp.org/api/v1/ws/alerts - WebSocket
GET /api/v1/feed/rss - RSS feed
GET /stats - Statistics

⚑ Quick Start

// REST API
fetch('https://api.alert-jp.org/api/v1/alerts?limit=10')
  .then(res => res.json())
  .then(data => console.log(data));

// Server-Sent Events
const es = new EventSource('https://api.alert-jp.org/api/v1/stream/alerts');
es.addEventListener('alert', (e) => console.log(JSON.parse(e.data)));

// WebSocket
const ws = new WebSocket('wss://api.alert-jp.org/api/v1/ws/alerts');
ws.onmessage = (e) => console.log(JSON.parse(e.data));

πŸ§ͺ Connection Tests

Verify each connection method

πŸ”— Links