Weather

Environment: weather from openweather, air quality from irceline

Format
JSON
Updates
Every 5 minutes
Latest snapshot
Snapshots stored
about 208,448
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" "https://api.mobilitytwin.brussels/environment/weather"

Current weather in Brussels from OpenWeather.

Which days have data

Data from 21 Aug 2024 to 2 Nov 2026, on 799 days. 30 of the last 30 days have data. A typical day holds 264 snapshots. Days are in UTC.

2026
JanFebMarAprMayJunJulAugSepOctNovDec
2025
JanFebMarAprMayJunJulAugSepOctNovDec
2024
JanFebMarAprMayJunJulAugSepOctNovDec
  • Full day
  • Partial, 50–90% of a typical day
  • Low, under 50%
  • No snapshot
  • Not expected

Click a day above, or pick a date, to get its requests.

Parameters

NameMeaning
timestampReturn the last snapshot at or before this moment, in Unix seconds or ISO 8601 (e.g. 2026-05-06T12:00:00Z). Without it, the latest snapshot is returned.

Response fields

FieldType
basestring
clouds.allinteger
codinteger
coord.latnumber
coord.lonnumber
dtinteger
idinteger
main.feels_likenumber
main.humidityinteger
main.pressureinteger
main.tempnumber
main.temp_maxnumber
main.temp_minnumber
namestring
sys.countrystring
sys.idinteger
sys.sunriseinteger
sys.sunsetinteger
sys.typeinteger
timezoneinteger
visibilityinteger
weather[].descriptionstring
weather[].iconstring
weather[].idinteger
weather[].mainstring
wind.deginteger
wind.speednumber

Python example

import requests

from datetime import datetime, timedelta, timezone

yesterday_noon = (datetime.now(timezone.utc) - timedelta(days=1)).replace(
    hour=12, minute=0, second=0, microsecond=0
)
params = {
    "timestamp": yesterday_noon.isoformat(),   # ISO accepted; epoch also works
}

url = "https://api.mobilitytwin.brussels/environment/weather"

data = requests.get(url, headers={
        'Authorization': 'Bearer [MY_API_KEY]'
}, params=params).json()

# Display current weather in Brussels
temp_c = data['main']['temp'] - 273.15
feels_like_c = data['main']['feels_like'] - 273.15
weather = data['weather'][0]['description']
print(f"Brussels: {weather}")
print(f"Temperature: {temp_c:.1f}C (feels like {feels_like_c:.1f}C)")
print(f"Humidity: {data['main']['humidity']}%, Wind: {data['wind']['speed']} m/s")
print(f"Visibility: {data['visibility'] / 1000:.1f} km")