Stops by line

STIB: brussels metro, tram and bus operator

Format
JSON
Updates
Daily
Latest snapshot
Snapshots stored
about 168
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" "https://api.mobilitytwin.brussels/stib/stops-by-line"

The ordered list of stops for each STIB/MIVB line, per direction.

Which days have data

Data from 29 Apr 2026 to 2 Nov 2026, on 185 days. 30 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

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
results[].destinationstring
results[].directionstring
results[].lineidstring
results[].pointsstring

Python example

import requests
import json

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/stib/stops-by-line"

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

# Display the route of a specific line
for route in data['results']:
    if route['lineid'] == '1':
        dest = json.loads(route['destination'])
        stops = json.loads(route['points'])
        print(f"Line {route['lineid']} → {dest['fr']} ({route['direction']})")
        print(f"  {len(stops)} stops: {stops[0]['id']} → {stops[-1]['id']}")