Public APIs provided by Data.gov.sg

GET

carpark-availability

https://api.data.gov.sg/v1/transport/carpark-availability

Get the latest carpark availability in Singapore Retrieved every minute Use the date_time parameter to retrieve the latest carpark availability at that moment in time Detailed carpark information can be found at https://data.gov.sg/dataset/hdb-carpark-information

Transport

Method
Description

GET

taxi-availability

https://api.data.gov.sg/v1/transport/taxi-availability

Get locations of available taxis in Singapore Retrieved every 30 seconds from LTA's Datamall The response is a valid GeoJSON which you could insert into a mapping tool like Leaflet As LTA does not provide any kind of metadata, the timestamp provided in the response is the scrape time We recommend that this endpoint be called every minute Use the date_time parameter to retrieve the latest available data at that moment in time

GET

traffic-images

https://api.data.gov.sg/v1/transport/traffic-images

Get the latest images from traffic cameras all around Singapore Retrieved every 20 seconds from LTA's Datamall Locations of the cameras are also provided in the response We recommend that this endpoint be called every minute Use the date_time parameter to retrieve the latest available data at that moment in time

Environment

Method
Description

GET

2-hour-weather-forecast

https://api.data.gov.sg/v1/environment/2-hour-weather-forecast

Get the latest two hour weather forecast Retrieved half-hourly from NEA Forecasts are given for multiple areas in Singapore The area_metadata field in the response provides longitude/latitude information for the areas. You can use that to place the forecasts on a map Use the date_time parameter to retrieve the latest forecast issued at that moment in time Use the date parameter to retrieve all of the forecasts issued for that day

GET

24-hour-weather-forecast

https://api.data.gov.sg/v1/environment/24-hour-weather-forecast

Get the latest 24 hour weather forecast Retrieved multiple times throughout the day A general forecast for the 24 hour period is provided Forecasts for each major region in Singapore is also provided for 6/12 hour periods Use the date_time parameter to retrieve the latest forecast issued at that moment in time Use the date parameter to retrieve all of the forecasts issued for that day List of possible forecast values Mist Cloudy Drizzle Fair (Day) Fog Fair (Night) Fair & Warm Heavy Thundery Showers with Gusty Winds Heavy Rain Heavy Showers Heavy Thundery Showers Hazy Slightly Hazy Light Rain Light Showers Overcast Partly Cloudy (Day) Partly Cloudy (Night) Passing Showers Moderate Rain Showers Strong Winds, Showers Snow Strong Winds, Rain Snow Showers Sunny Strong Winds Thundery Showers Windy, Cloudy Windy Windy, Fair Windy, Rain Windy, Showers

GET

4-day-weather-forecast

https://api.data.gov.sg/v1/environment/4-day-weather-forecast

Get the latest 4 day weather forecast Retrieved twice a day from NEA The forecast is for the next 4 days Use the date_time parameter to retrieve the latest forecast issued at that moment in time Use the date parameter to retrieve all of the forecasts issued for that day

GET

air-temperature

https://api.data.gov.sg/v1/environment/air-temperature

Get air temperature readings across Singapore Has per-minute readings from NEA Use the date_time parameter to retrieve the latest available data at that moment in time

GET

pm25

https://api.data.gov.sg/v1/environment/pm25

Get the latest PM2.5 information Retrieved hourly from NEA Readings are provided for each major region in Singapore The region_metadata field in the response provides longitude/latitude information for the regions. You can use that to place the readings on a map Use the date_time parameter to retrieve the latest PM2.5 readings at that moment in time Use the date parameter to retrieve all of the readings for that day

GET

psi

https://api.data.gov.sg/v1/environment/psi

Get the latest PSI information Retrieved hourly from NEA Readings are provided for each major region in Singapore The region_metadata field in the response provides longitude/latitude information for the regions. You can use that to place the readings on a map Use the date_time parameter to retrieve the latest PSI readings at that moment in time Use the date parameter to retrieve all of the readings for that day

GET

rainfall

https://api.data.gov.sg/v1/environment/rainfall

Get rainfall readings across Singapore Has 5-minute readings from NEA Use the date_time parameter to retrieve the latest available data at that moment in time

GET

relative-humidity

https://api.data.gov.sg/v1/environment/relative-humidity

Get relative humidity readings across Singapore Has per-minute readings from NEA Use the date_time parameter to retrieve the latest available data at that moment in time

GET

uv-index

https://api.data.gov.sg/v1/environment/uv-index

Get the latest UV index information Retrieved every hour between 7 AM and 7 PM everyday The UV index value is averaged over the preceeding hour Use the date_time parameter to retrieve the latest forecast issued at that moment in time Use the date parameter to retrieve all of the forecasts issued for that day

GET

wind-direction

https://api.data.gov.sg/v1/environment/wind-direction

Get wind direction readings across Singapore Has per-minute readings from NEA Use the date_time parameter to retrieve the latest available data at that moment in time

GET

wind-speed

https://api.data.gov.sg/v1/environment/wind-speed

Get wind speed readings across Singapore Has per-minute readings from NEA Use the date_time parameter to retrieve the latest available data at that moment in time