Weather API
Provides real-time weather data for any location. Includes current weather, forecasts, and historical data.
Weather
Base Path: /v1/weather
GET/v1/weather/current
Retrieves the current weather conditions for a specified location.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
| city | query | Yes | The city name. |
| units | query | No | Units of measurement. |
Responses
Status:
200
- Successful response{
"location": "London, UK",
"temperature": 15,
"unit": "celsius",
"condition": "Cloudy",
"humidity": 82
}Status:
404
- City not found{
"error": "City not found"
}Try it out
Simulate a request to this endpoint.
Simulated Response
{
"location": "London, UK",
"temperature": 15,
"unit": "celsius",
"condition": "Cloudy",
"humidity": 82
}