π‘ Data Sources
Collecting alert data from multiple reliable sources
π API Documentation
π
Swagger UI
Interactive API
π
ReDoc
Detailed documentation
π
OpenAPI Spec
YAML/JSON format
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