Forecast Response Schema
Response body for the forecast endpoint
Example
{ "location": { "lat": 40.7128, "lon": -74.006, "name": "New York", "admin": "New York", "country": "United States", "iso2": "US", "timezone": "America/New_York" }, "daily": [ { "date": "2026-02-21", "temp_min": 18, "temp_max": 28.5, "feels_like_min": 15, "feels_like_max": 26, "precipitation": { "rain": 1.5, "snow": 1.5, "freezing_rain": 1.5, "sleet": 1.5, "ice_pellets": 1.5 }, "clouds_avg": 45, "pop": 60, "wind_speed_max": 15.3, "wind_gust_max": 22.1, "description": { "code": 520, "name": "Rain" }, "sunrise": 1112356800, "sunset": 1112400000 }, ... ], "hourly": [ { "time": "2026-02-20T12:00:00Z", "temp": 25.5, "feels_like": 22.3, "dew": 15.2, "humidity": 65, "wind_speed": 12.1, "wind_gust": 18.5, "wind_deg": 270, "wind_dir": "N", "pressure": 101.33, "vis": 24, "clouds": 35, "pop": 50, "precip_amount": 0, "precip_type": "rain", "description": { "code": 520, "name": "Rain" } }, ... ], "units": { "temp": "celsius", "feels_like": "celsius", "dew": "celsius", "wind_speed": "kilometers_per_hour", "wind_gust": "kilometers_per_hour", "pressure": "kilopascals", "vis": "kilometers", "rain": "millimeters", "snow": "centimeters" } }
Attributes
-
location
objectDescribes a point on Earth
Object Properties
Property Type Description Schema latnumberLatitude in decimal degreesExample:
40.7128Min:
-90Max:90lonnumberLongitude in decimal degreesExample:
-74.006Min:
-180Max:180namestringCity or locality nameExample:
New YorkadminstringAdministrative region (e.g. state or province)Example:
New YorkcountrystringFull country nameExample:
United Statesiso2stringISO 3166-1 alpha-2 country codeExample:
UStimezonestringIANA timezone identifierExample:
America/New_York -
daily
arrayDaily forecast records
Array of: Daily Forecast -
hourly
arrayHourly forecast records. Omitted if
hourswas not requestedArray of: Weather Data Object -
units
objectUnit types for each measurement in the response.
Object Properties
Property Type Description Schema tempstringUnit type for all temperature values returned by the APIExample:
celsiusAllowed values:celsiusfahrenheit
feels_likestringUnit type for all apparent temperature values returned by the APIExample:
celsiusAllowed values:celsiusfahrenheit
dewstringUnit type for all dew point values returned by the APIExample:
celsiusAllowed values:celsiusfahrenheit
wind_speedstringUnit type for all wind speeds returned by the APIExample:
kilometers_per_hourAllowed values:kilometers_per_hourmiles_per_hour
wind_guststringUnit type for all wind gusts returned by the APIExample:
kilometers_per_hourAllowed values:kilometers_per_hourmiles_per_hour
pressurestringUnit type for all atmospheric pressure values returned by the APIExample:
kilopascalsAllowed values:kilopascalsinches_of_mercury
visstringUnit type for all visibility distances returned by the APIExample:
kilometersAllowed values:kilometersmiles
rainstringUnit type for all rainfall amounts returned by the APIExample:
millimetersAllowed values:millimetersinches
snowstringUnit type for all snowfall amounts returned by the APIExample:
centimetersAllowed values:centimetersinches