Retrieve bus arrival timings in Singapore with LTA Datamall

Tags: #<Tag:0x00007fc3f2baedd0> #<Tag:0x00007fc3f2baed08> #<Tag:0x00007fc3f2baec40>

Hello! I would like to share my first python project :smile:

One of the most common ways to travel around in Singapore is by public transport, of which buses being the most popular. The double decker buses in Singapore are similar to those in London. The Land Transport Authority has a public bus API that can be used to track and determine the bus timings for specified bus stops.

I made a custom component to retrieve all the bus timings for a specified bus stop. It can also be installed via HACS:

The API however requires an API key, which can be requested on Datamall.

There may be a few bugs here and there, but generally the component should work fine. I would appreciate feedback and suggestions to improve.


thanks. trying it out.

How is the api key entered in HA?
Any format if it is in configuration.yaml?


  • platform: lta
    bus_stop_code: ‘XXXXX’
    api_key: $API_KEY

Will add it in the

To real-time, minute-by-minute JSON about bus arrival times from every LTA Data Mall API is to register and account and get an API key.

It works!!! Thanks for your taking your time to write this out, hormat!!

Works really well! Looking forward to seeing the multi-stop! Thanks again