3 Hourly Weather

The 3-Hour Interval Forecast endpoint provides weather predictions broken down into 3-hour time steps. It is tailored for use cases requiring medium-resolution forecasts, such as agriculture, logistics, or event planning. The predictions are based on high-resolution numerical weather models, refined to ensure consistency and accuracy.

Each time block in the forecast contains the following weather parameters:

  • Air temperature, humidity, and pressure forecasted for the 3-hour interval.
  • Wind speed and direction averaged for the interval.
  • Type and volume of expected precipitation.
  • UV index and cloud conditions.
  • Astronomy data is supplied per day as an array.

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-3hours/?slug=united-kingdom-london&days=4&key=TOKEN'
Description:

A unique, string‑encoded location identifier. For example, united-kingdom-london represents London, United Kingdom. This parameter lets the API unambiguously identify the exact city or region for which the current weather data is 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-3hours/?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
forecastCurrent weather.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 current

The current object provides a real‑time snapshot of weather conditions at a given location, including key parameters such as temperature, humidity, atmospheric pressure, wind speed and direction, precipitation rate, and other indicators reflecting the present moment.

FieldDescriptionFormat
dateDate.String
temperature_airAir temperature.Number
temperature_air_feels_likeAir temperature feels like.Number
descriptionDescription of the current weather.String
precipitationPrecipitation.Object
cloudnessCloudiness.Object
iconIcon.Object
uvindexUV index.Object
pressurePressure.Number
humidityHumidity.Number
visibilityVisibility.Number
windWind.Object

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
valValue.Number
descriptionDescription.String

Object wind

FieldDescriptionFormat
speedThe average wind speed over the past 10 minutes.Number
degreeWind direction in meteorological degrees (0° = North, 90° = East, 180° = South, 270° = West).Number
gustThe maximum wind gust speed recorded over the past 10 minutes.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