API for retrieving weather information, including current conditions, forecasts, and historical data.
- Server 1:https://api.example.com/weather/v1
Main API server
API for retrieving weather information, including current conditions, forecasts, and historical data.
Main API server
Operations related to weather data
Retrieves current weather conditions for a specified location.
Location for which to retrieve weather data.
Successful operation
Location of the weather data.
Current temperature in Celsius.
Current humidity percentage.
Current wind speed in km/h.
Description of the current weather conditions.
Provides a 7-day weather forecast for a given location.
Location for which to retrieve the forecast.
Maximum number of items to return
Default:7
>= 1<= 7
Number of items to skip
Default:0
>= 0
Successful operation
Example:{"date":"2024-07-08","high_temperature":22,"low_temperature":14,"condition":"Sunny"}
Fetches historical weather data for a specific location and date range.
Location for which to retrieve historical weather data.
Start date for the historical data (YYYY-MM-DD).
End date for the historical data (YYYY-MM-DD).
Maximum number of items to return
Default:20
>= 1<= 100
Number of items to skip
Default:0
>= 0
Successful operation
Example:{"date":"2024-07-01","temperature":20,"humidity":75,"wind_speed":10,"description":"Sunny"}