Reliable Weather Data for Developers

RESTful API with JSON responses. Get started with your free API key. Real-time updates via WebSocket at /api/ws.

API Endpoints

GET /api/weather?city={city}&key={key}

Current weather for a city. Requires API key.

Click to test

GET /api/forecast?city={city}&days=5&key={key}

5-day forecast. JSON array of daily data.

Click to test

POST /api/auth/login

User authentication. Returns JWT token.

Click to test

WS /api/ws?key={key}

Real-time weather alerts and updates. Connect via WebSocket for push notifications.

WebSocket ready for real-time data

Pricing

Free tier: 1000 calls/day. Pro: $9/mo, unlimited. Enterprise: Custom.

Support

Email: support@weatherapi.com | Docs: Full Guide