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
| Name | Meaning |
|---|---|
timestamp | Return 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
| Field | Type |
|---|---|
base | string |
clouds.all | integer |
cod | integer |
coord.lat | number |
coord.lon | number |
dt | integer |
id | integer |
main.feels_like | number |
main.humidity | integer |
main.pressure | integer |
main.temp | number |
main.temp_max | number |
main.temp_min | number |
name | string |
sys.country | string |
sys.id | integer |
sys.sunrise | integer |
sys.sunset | integer |
sys.type | integer |
timezone | integer |
visibility | integer |
weather[].description | string |
weather[].icon | string |
weather[].id | integer |
weather[].main | string |
wind.deg | integer |
wind.speed | number |
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")