TMC event codes
Traffic: counters, message signs, events and car parks
- Format
- GeoJSON
- Updates
- Weekly
- Latest snapshot
- Snapshots stored
- about 10
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" "https://api.mobilitytwin.brussels/traffic/tmc-event-codes"
TMC (Traffic Message Channel) event codes reference data used for classifying traffic events in Brussels.
Which days have data
Data from 29 Apr 2026 to 16 Nov 2026, on 10 days. 4 of the last 30 days have data. A typical day holds 1 snapshot. Days are in UTC.
2026
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
A GeoJSON FeatureCollection. Field names without a prefix are in each feature's properties.
| Field | Type |
|---|---|
datex_code | string |
descr_fr | string |
descr_nl | string |
descr_en | string |
datex1_uri | string |
datex2_class | string |
datex2_enum_value | string |
Python example
import requests
import pandas as pd
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/traffic/tmc-event-codes"
data = requests.get(url, headers={
'Authorization': 'Bearer [MY_API_KEY]'
}, params=params).json()
# Build a lookup table of TMC event codes
codes = pd.DataFrame([f['properties'] for f in data['features']])
print("TMC Event Codes:")
print(codes[['datex_code', 'descr_en', 'datex2_class']].to_string(index=False))