Singapore weather API providing real-time observations and radar rain data from government sources.
This is a rewrite of rain-geojson-sg.
Returns real-time weather data from stations across Singapore.
Response:
[
{
"id": "S109",
"name": "Ang Mo Kio Avenue 5",
"lng": 103.8492,
"lat": 1.3764,
"temp_celcius": 31.2,
"relative_humidity": 70.3,
"rain_mm": 0.0,
"wind_direction": 97,
"wind_speed": 7.3
},
{
"id": "S124",
"name": "Upper Changi Road North",
"lng": 103.9823,
"lat": 1.3678,
"wbgt": 28.6,
"heat_stress": "low"
}
]Returns processed radar images with rain coverage data and ASCII visualization.
Query Parameters:
dt(optional) - Datetime inYYYYMMDDHHMMformat (Singapore timezone), e.g.202412151430for Dec 15, 2024 at 2:30 PM SGT
Response:
{
"id": "202412151200",
"dt": 202412151200,
"coverage_percentage": {
"all": 15.25,
"sg": 12.80
},
"width": 480,
"height": 480,
"radar": "ASCII representation..."
}npm install
npm start # Vercel dev server at localhost:3000
npm test # Run test suite- Rain area radar images © Meteorological Service Singapore © National Environment Agency
- Singapore region boundary, under Singapore Open Data License
- Code under MIT.