PASAR API
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# 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'
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.