Skip to content

Global Weather

Heavstal Weather provides real-time atmospheric data and forecasts. It resolves city names automatically and returns temperature (C/F), humidity, wind speed, and conditions.

POST /weather

FieldTypeRequiredDescription
citystringYesThe city name (e.g., “Paris”, “New York”).
const res = await fetch('https://heavstal.com.ng/api/v1/weather', {
method: 'POST',
headers: { 'x-api-key': 'YOUR_KEY' },
body: JSON.stringify({ city: 'Lagos' })
});
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"location": "Lagos, Nigeria",
"temp_c": "28",
"temp_f": "82",
"condition": "Partly cloudy",
"humidity": "75%",
"wind": "15 km/h"
}
}