GTFS-RT (legacy)

TEC: bus operator in wallonia, with lines into brussels

Format
GTFS-RT
Updates
No longer updated since 2026-09-21 — use gtfs-rt-trip-update; historical data only
Latest snapshot
Snapshots stored
about 2,979,231
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" -o gtfs-realtime.pb "https://api.mobilitytwin.brussels/tec/gtfs-realtime"

Legacy TEC trip-updates file, kept for its history. For current data, use gtfs-rt-trip-update, which carries the same updates from the Belgian Mobility API.

A binary GTFS Realtime message (Protocol Buffers). Decode it with gtfs-realtime-bindings.

Which days have data

Data from 21 Aug 2024 to 21 Sep 2026, on 757 days. 0 of the last 30 days have data. A typical day holds 4122 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.

Python example

import requests
from google.transit import gtfs_realtime_pb2

# Legacy feed, no longer updated since 2026-09-21: query a timestamp before that date.
# For current data use tec/gtfs-rt-trip-update.
params = {
    "timestamp": "2026-09-15T12:00:00+00:00",   # ISO accepted; epoch also works
}

url = "https://api.mobilitytwin.brussels/tec/gtfs-realtime"

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

feed = gtfs_realtime_pb2.FeedMessage()
feed.ParseFromString(data)

# The feed carries trip updates only: list cancelled trips and delays > 5 minutes
for entity in feed.entity:
    tu = entity.trip_update
    if tu.trip.schedule_relationship == gtfs_realtime_pb2.TripDescriptor.CANCELED:
        print(f"Trip {tu.trip.trip_id} on route {tu.trip.route_id} cancelled")
        continue
    for stu in tu.stop_time_update:
        delay = stu.arrival.delay if stu.HasField('arrival') else 0
        if delay > 300:
            print(f"Trip {tu.trip.trip_id} — {delay // 60}min late at stop {stu.stop_id}")