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.
Endpoint
Section titled “Endpoint”POST /weather
Request Parameters
Section titled “Request Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| city | string | Yes | The city name (e.g., “Paris”, “New York”). |
Example Usage
Section titled “Example Usage”const res = await fetch('https://heavstal.com.ng/api/v1/weather', {method: 'POST',headers: { 'x-api-key': 'YOUR_KEY' },body: JSON.stringify({ city: 'Lagos' })});Successful Response
Section titled “Successful Response”{"status": "success","creator": "HEAVSTAL TECH","data": { "location": "Lagos, Nigeria", "temp_c": "28", "temp_f": "82", "condition": "Partly cloudy", "humidity": "75%", "wind": "15 km/h"}}