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
NameInRequiredDescription
city
query
YesThe city name.
units
query
NoUnits 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
}