Daily Weather Forecast

The Daily Weather Forecast section provides access to a daily weather forecast. All data undergoes thorough aggregation and processing using optimal spatiotemporal interpolation methods, which significantly improves the accuracy and consistency of the forecasts. Reliable meteorological models and formulas, adapted to specific regional conditions, are used to calculate the values, ensuring high reliability of the forecast data.

Some parameters, such as temperature, are provided as the maximum and minimum for the day because the average value does not always accurately reflect daily fluctuations. However, for parameters that are less sensitive to extreme values, the daily average is more appropriate. Examples of such parameters include air humidity, atmospheric pressure, and wind speed, where daily variations are not as pronounced and average values provide useful information on trends throughout the day.

Request Parameters

  • slug | lat and lon: Location parameters.
  • days: The number of days for which the forecast is requested. For instance, the value 4 means that data will be provided for four days, starting from the current day. The maximum allowable value depends on your tariff plan and the data provided by the service.
  • key: Your unique API token required to authorize the request. The API token can be obtained from your personal account after registration and token creation.

Search Methods

Search by Slug

This method uses the slug parameter to specify a unique location identifier.

Example:

curl
Go
php
python
curl --location 'https://api.meteoflow.com/v2/forecast/by-days/?slug=united-kingdom-london&days=4&key=TOKEN'
Description:

A unique location identifier encoded as a string. For example, united-kingdom-london indicates London, United Kingdom. This parameter allows the API to precisely determine for which city or region the forecast is being requested.

Search by Coordinates

This method allows you to specify the location using geographic coordinates.

Parameters:
  • lat: Latitude in decimal degrees.
  • lon: Longitude in decimal degrees.

Example:

curl
Go
php
python
curl --location 'https://api.meteoflow.com/v2/forecast/by-days/?lat=51.5072&lon=-0.1275&days=4&key=TOKEN'
Description:

By providing the lat and lon parameters, you directly specify the exact location for which the forecast is required.

Description of the Response Structure

All successful API responses return with an HTTP status of 200 OK and contain data in JSON format.

FieldDescriptionFormat
placeLocality.Object
dailyDaily weather forecast.Object
astronomyAstronomy.]Object

Object place

FieldDescriptionFormat
countryCountry code.String
timezone_offsetTimezone offset from UTC in seconds.Number
latitudeLongitude.Number
longitudeLatitude.Number
city_nameName of the locality.String
country_nameCountry name.String
region_nameRegion name.String

Object daily

The daily object describes the weather forecast for a specific day, including key parameters such as maximum and minimum temperature, precipitation probability, wind speed, and other indicators characteristic of that day.

FieldDescriptionFormat
dateDate.String
temperature_airAir temperature.Object
descriptionDescription of the day's weather.String
precipitationPrecipitation.Object
cloudnessCloudiness.Object
iconIcon.Object
uvindexUV index.Object
pressurePressure.Object
humidityHumidity.Object
visibilityVisibility.Object
windWind.Object

Object temperature_air

FieldDescriptionFormat
maxMaximum for the day.Number
minMinimum for the day.Number

Object precipitation

FieldDescriptionFormat
typeType of precipitation. Possible values:
none – no precipitation.
rain – rain.
rain-snow – rain with snow.
snow – snow.
String
mmAmount of precipitation in millimeters.Number | Null

Object cloudness

FieldDescriptionFormat
typeCloudiness. Possible values:
clear – clear.
partly cloudy – partly cloudy.
cloudy – overcast.
String

Object icon

FieldDescriptionFormat
codeSymbolic code for the weather icon.String
urlURL of the weather icon.String

Object uvindex

FieldDescriptionFormat
valMaximum value.Number
descriptionDescription.String

Object pressure

FieldDescriptionFormat
maxMaximum for the day.Number
minMinimum for the day.Number

Object humidity

FieldDescriptionFormat
maxMaximum for the day, in percentage.Number
minMinimum for the day, in percentage.Number

Object visibility

The forecasted visibility range during the day, measured in meters. This parameter helps assess visibility conditions, which is particularly important for transportation and outdoor activities. The visibility value takes into account factors such as fog, precipitation, and other weather conditions affecting visibility at the given location.

FieldDescriptionFormat
maxMaximum for the day, in meters.Number | Null
minMinimum for the day, in meters.Number | Null

Object wind

FieldDescriptionFormat
speedMaximum wind speed.Number
degreeWind direction in meteorological degrees (0° = North, 90° = East, 180° = South, 270° = West).Number
gustMaximum wind gust speed.Number

Object astronomy

FieldDescriptionFormat
sunriseSunrise time in UTC format (ISO 8601), indicating the exact moment the day begins.Number
sunsetSunset time in UTC format (ISO 8601), indicating the moment when daylight ends.Number
day_lengthDuration of the daylight in minutes, calculated as the difference between sunset and sunrise.Number
moon_angleThe current angle of the Moon in the sky, measured in degrees (0° to 360°).Number
moon_illuminationThe percentage of the Moon's surface illuminated by the Sun (0% = new moon, 100% = full moon).Number
moon_phase_codeNumeric code for the Moon's phase (0–7).Number
moon_phase_descTextual description of the Moon's phase.string