Weather API

REST API documentation and examples.

Endpoint

GET /api/weather?city=Moscow&date=2026-09-08

Response (JSON)

{
  "city": "Moscow",
  "date": "2026-09-08",
  "temperature": 18,
  "humidity": 65,
  "wind_speed": 3.2,
  "precipitation": "cloudy"
}

Error codes

CodeDescription
400Invalid parameters
404Data not found