PASAR API

🇪🇸 TMB Barcelona ~ metro & bus iBus arrival times

← directory
Transports Metropolitans de BarcelonaTravel & mobilitytier: openauth: API keypricing: freeverified 2026-07-05

Barcelona's transit operator provides REST services for network, iBus arrivals, GTFS and multimodal routing; free app_id/app_key from the developer portal.

View docs ↗ More Travel & mobility APIs

Get started

# TMB Barcelona ~ metro & bus iBus arrival times needs an API key ~ get yours at:
# https://developer.tmb.cat/
curl 'https://api.tmb.cat/v1' \
  -H 'Authorization: Bearer YOUR_TOKEN'

AI prompt

I'm integrating a Spain API into my app.

API: TMB Barcelona ~ metro & bus iBus arrival times
Provider: Transports Metropolitans de Barcelona
Auth: requires an API key (sign up: https://developer.tmb.cat/)
Pricing: free
Base URL: https://api.tmb.cat/v1
Important note: Barcelona's transit operator provides REST services for network, iBus arrivals, GTFS and multimodal routing; free app_id/app_key from the developer portal.

Source: Transports Metropolitans de Barcelona (https://developer.tmb.cat/)
Source type: Official public feed
Endpoint type: Public feed, non-JSON
Integration difficulty: Needs API key
Last checked: 2026-07-05
Production caveat: Keep credentials server-side and confirm current limits, pricing, and webhook/error behaviour in the provider docs.

Help me set up the correct onboarding/authentication path and make the first valid request ~ explain exactly where credentials go and what must happen before production.

Related Travel & mobility APIs

LTA DataMall ~ Singapore real-time bus, train & traffic dataCarpark Availability (data.gov.sg) ~ live HDB carpark lotsTraffic Images (data.gov.sg) ~ live Singapore road camerasAviationstack Real-Time Flight DataFlightAware AeroAPIBooking.com Demand APIViator Partner APISkyscanner Travel APIKlook Open APIAmadeus Self-Service APIs ~ flight search, booking, hotels & travel data