Tunnels

Traffic: counters, message signs, events and car parks

Format
JSON
Updates
Every minute
Latest snapshot
Snapshots stored
about 1,080,111
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" "https://api.mobilitytwin.brussels/traffic/tunnels"

Live vehicle counts, speed and occupancy from the detectors in the Brussels tunnels, keyed by detector. Only the 1-minute bins are filled. For positions, join with tunnel-devices on traverse_name.

Which days have data

Data from 21 Aug 2024 to 2 Nov 2026, on 793 days. 30 of the last 30 days have data. A typical day holds 1368 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
data.{DEVICE_ID_STRING}.results.15m.t1.countinteger
data.{DEVICE_ID_STRING}.results.15m.t1.end_timestring
data.{DEVICE_ID_STRING}.results.15m.t1.occupancynumber
data.{DEVICE_ID_STRING}.results.15m.t1.speednumber
data.{DEVICE_ID_STRING}.results.15m.t1.start_timestring
data.{DEVICE_ID_STRING}.results.15m.t2.countinteger
data.{DEVICE_ID_STRING}.results.15m.t2.end_timestring
data.{DEVICE_ID_STRING}.results.15m.t2.occupancynumber
data.{DEVICE_ID_STRING}.results.15m.t2.speednumber
data.{DEVICE_ID_STRING}.results.15m.t2.start_timestring
data.{DEVICE_ID_STRING}.results.1m.t1.countinteger
data.{DEVICE_ID_STRING}.results.1m.t1.end_timestring
data.{DEVICE_ID_STRING}.results.1m.t1.occupancynumber
data.{DEVICE_ID_STRING}.results.1m.t1.speednumber
data.{DEVICE_ID_STRING}.results.1m.t1.start_timestring
data.{DEVICE_ID_STRING}.results.1m.t2.countinteger
data.{DEVICE_ID_STRING}.results.1m.t2.end_timestring
data.{DEVICE_ID_STRING}.results.1m.t2.occupancynumber
data.{DEVICE_ID_STRING}.results.1m.t2.speednumber
data.{DEVICE_ID_STRING}.results.1m.t2.start_timestring
data.{DEVICE_ID_STRING}.results.5m.t1.countinteger
data.{DEVICE_ID_STRING}.results.5m.t1.end_timestring
data.{DEVICE_ID_STRING}.results.5m.t1.occupancynumber
data.{DEVICE_ID_STRING}.results.5m.t1.speednumber
data.{DEVICE_ID_STRING}.results.5m.t1.start_timestring
data.{DEVICE_ID_STRING}.results.5m.t2.countinteger
data.{DEVICE_ID_STRING}.results.5m.t2.end_timestring
data.{DEVICE_ID_STRING}.results.5m.t2.occupancynumber
data.{DEVICE_ID_STRING}.results.5m.t2.speednumber
data.{DEVICE_ID_STRING}.results.5m.t2.start_timestring
data.{DEVICE_ID_STRING}.results.60m.t1.countinteger
data.{DEVICE_ID_STRING}.results.60m.t1.end_timestring
data.{DEVICE_ID_STRING}.results.60m.t1.occupancynumber
data.{DEVICE_ID_STRING}.results.60m.t1.speednumber
data.{DEVICE_ID_STRING}.results.60m.t1.start_timestring
data.{DEVICE_ID_STRING}.results.60m.t2.countinteger
data.{DEVICE_ID_STRING}.results.60m.t2.end_timestring
data.{DEVICE_ID_STRING}.results.60m.t2.occupancynumber
data.{DEVICE_ID_STRING}.results.60m.t2.speednumber
data.{DEVICE_ID_STRING}.results.60m.t2.start_timestring
requestDatestring

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/traffic/tunnels"

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

# Show real-time traffic per tunnel device
for device_id, device_data in data['data'].items():
    results = device_data['results']
    # Get 15-minute aggregate
    r = results['15m']
    for lane, stats in r.items():
        if stats['speed'] is None:          # no measurement for this lane in the period
            continue
        print(f"{device_id} ({lane}): {stats['count']} vehicles, "
              f"speed={stats['speed']:.0f} km/h, occupancy={stats['occupancy']:.1f}%")