Skip to content

Weather Forecast

This API provides real-time atmospheric data and forecasts. It resolves city names and returns temperatures (C/F), humidity, wind speed, and weather conditions.

POST /api/v1/weather

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
citystringYesThe city name (e.g., “Paris”, “New York”, “Lagos”).
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/weather \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"city": "Lekki"}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"location": "Lekki, Lagos, Nigeria",
"temp_c": "28",
"temp_f": "82",
"condition": "Partly cloudy",
"humidity": "75%",
"wind": "15 km/h"
}
}