Skip to main content

GET /api/weather

Retrieve current weather conditions and forecast for the Dowa district (where Dzaleka is located).
Weather data is sourced from the Malawi Meteorological Services website and updated regularly.

Query Parameters

No query parameters required.

Response Format

location
string
required
Location name (typically “Dowa”)
date
string
required
Forecast date
forecast
object
required
Weather forecast data
current
object
required
Current weather conditions
temperature
string
Maximum temperature
minTemperature
string
Minimum temperature
condition
string
Weather condition (e.g., “Sunny”, “Rain”, “Cloudy”)
rainfall
string
Expected rainfall amount
windSpeed
string
Wind speed
windDirection
string
Wind direction
time
string
Time period for forecast
hourly
array
required
Hourly forecast breakdown with same fields as current
alerts
array
required
Array of weather alerts and warnings
type
string
Alert type (“warning”, “severe”, “info”)
message
string
Alert message with details
lastUpdated
string
required
ISO 8601 timestamp of last data update

Example Request

curl https://services.dzaleka.com/api/weather

Example Response

{
  "location": "Dowa",
  "date": "March 9, 2026",
  "forecast": {
    "current": {
      "temperature": "28°C",
      "minTemperature": "18°C",
      "condition": "Partly Cloudy",
      "rainfall": "0mm",
      "windSpeed": "15 km/h",
      "windDirection": "SE",
      "time": "12:00 - 15:00"
    },
    "hourly": [
      {
        "time": "15:00 - 18:00",
        "condition": "Rain",
        "maxTemp": "24°C",
        "minTemp": "19°C",
        "rainfall": "5mm",
        "windSpeed": "20 km/h",
        "windDirection": "E"
      }
    ]
  },
  "alerts": [
    {
      "type": "warning",
      "message": "15:00 - 18:00: Rain - 5mm rainfall, 20 km/h wind"
    }
  ],
  "lastUpdated": "2026-03-09T10:30:00Z"
}

Error Responses

error
string
Error message if weather data fetch fails
500 Internal Server Error:
{
  "error": "Failed to fetch weather data"
}

Use Cases

  • Display current weather on community dashboard
  • Plan outdoor events based on forecast
  • Agriculture and farming planning
  • Community safety alerts during severe weather

Data Source

Weather data is scraped from the Malawi Meteorological Services daily forecast for Dowa district.