Shapefile
STIB: brussels metro, tram and bus operator
- Format
- GeoJSON
- Updates
- Daily (derived from the STIB shapefile)
- Latest snapshot
- Snapshots stored
- about 714
curl -H "Authorization: Bearer $MOBILITYTWIN_TOKEN" "https://api.mobilitytwin.brussels/stib/shapefile"
The geometry of the STIB/MIVB network, from STIB's shapefile.
Which days have data
Data from 21 Aug 2024 to 2 Nov 2026, on 778 days. 30 of the last 30 days have data. A typical day holds 1 snapshot. 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
A GeoJSON FeatureCollection. Field names without a prefix are in each feature's properties.
| Field | Type |
|---|---|
color_hex | string |
date_debut | string |
date_fin | string |
ligne | string |
variante | integer |
Python example
import requests
import geopandas as gpd
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/shapefile"
data = requests.get(url, headers={
'Authorization': 'Bearer [MY_API_KEY]'
}, params=params).json()
gdf = gpd.GeoDataFrame.from_features(data["features"])
# Plot the full STIB network colored by line
gdf.plot(figsize=(12, 10), color=gdf['color_hex'], linewidth=1)
# List all unique lines
print("STIB lines:", sorted(gdf['ligne'].unique()))