Get Current Weather
Retrieve current weather conditions for a specified city.Endpoint
Query Parameters
City name (e.g., “London”, “New York”, “Tokyo”)
Example Request
Response Example
Response Fields
City name
Geographic coordinates
lat- Latitudelon- Longitude
Main weather parameters
temp- Temperature (Kelvin)feels_like- Perceived temperature (Kelvin)temp_min- Minimum temperature (Kelvin)temp_max- Maximum temperature (Kelvin)pressure- Atmospheric pressure (hPa)humidity- Humidity percentagesea_level- Atmospheric pressure at sea level (hPa)grnd_level- Atmospheric pressure at ground level (hPa)
Weather condition details
id- Weather condition IDmain- Weather parameter (Rain, Snow, Clouds, etc.)description- Weather condition descriptionicon- Weather icon ID
Wind information
speed- Wind speed (meter/sec)deg- Wind direction (degrees)gust- Wind gust speed (meter/sec)
Cloudiness information
all- Cloudiness percentage
System data
country- Country codesunrise- Sunrise time (Unix timestamp)sunset- Sunset time (Unix timestamp)
Visibility in meters
Data calculation time (Unix timestamp)
Get Weather Forecast
Retrieve weather forecast data for a specified city.Endpoint
Query Parameters
City name (e.g., “London”, “New York”, “Tokyo”)
Number of forecast entries to return (default: 40, max: 40)
Example Request
Response Example
Response Fields
City information
name- City namecountry- Country codecoord- Geographic coordinates (lat, lon)population- City populationtimezone- Timezone offset in secondssunrise- Sunrise time (Unix timestamp)sunset- Sunset time (Unix timestamp)
Number of forecast entries returned
Array of forecast entries, each containing:
Temperature values are returned in Kelvin. To convert to Celsius:
K - 273.15. To convert to Fahrenheit: (K - 273.15) × 9/5 + 32Use Cases
Weather Bots
Build Discord or Telegram weather bots
Travel Planning
Check weather before trips
Smart Home
Integrate with home automation
Mobile Apps
Add weather features to apps