PASAR API

🇸🇬 LTA DataMall ~ Singapore real-time bus, train & traffic data

← directory
Land Transport Authority (Singapore)Travel & mobilitytier: openauth: API keypricing: freefreq: REALTIME

Official LTA feeds: bus arrival, bus routes/stops, train service alerts, taxi availability, ERP rates, carpark availability and live traffic. Free AccountKey header via registration. SG-first.

View docs ↗ More Travel & mobility APIs

Get started

# LTA DataMall ~ Singapore real-time bus, train & traffic data needs an API key ~ get yours at:
# https://datamall.lta.gov.sg/content/datamall/en/dynamic-data.html
curl 'https://datamall2.mytransport.sg/ltaodataservice' \
  -H 'X-API-Key: YOUR_API_KEY'

AI prompt

I'm integrating a Singapore API into my app.

API: LTA DataMall ~ Singapore real-time bus, train & traffic data
Provider: Land Transport Authority (Singapore)
Auth: requires an API key (sign up: https://datamall.lta.gov.sg/content/datamall/en/dynamic-data.html)
Pricing: free
Base URL: https://datamall2.mytransport.sg/ltaodataservice
Important note: Official LTA feeds: bus arrival, bus routes/stops, train service alerts, taxi availability, ERP rates, carpark availability and live traffic. Free AccountKey header via registration. SG-first.

Source: Land Transport Authority (Singapore) (https://datamall.lta.gov.sg/content/datamall/en/dynamic-data.html)
Source type: Official public feed
Endpoint type: Direct public JSON endpoint
Integration difficulty: Needs API key
Production caveat: Your AccountKey is rate-limited and must stay server-side. Most endpoints page 500 rows at a time, live feeds can go stale during disruptions, and ERP or fare values change with policy — cache politely and handle gaps instead of showing zeros.

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

Carpark 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 dataDuffel API ~ flight & hotel search, booking & ticketing