NEA 2-Hour Weather Forecast
Governmentby NEA via data.gov.sg
Area-level weather forecast for the next 2 hours across 47 Singapore planning areas, refreshed every 30 minutes. Returns forecast text (e.g. Thundery Showers) plus label coordinates per area.
How to authenticate
- 1No key needed; the endpoint is public.
- 2Optional: create an account at data.gov.sg and request an API key for higher rate limits.
- 3If you have a key, send it in the x-api-key header.
Example request
curl 'https://api-open.data.gov.sg/v2/real-time/api/two-hr-forecast'Example response
{"code":0,"data":{"area_metadata":[{"name":"Ang Mo Kio","label_location":{"longitude":103.839,"latitude":1.375}}]}}Notes for AI agents
v2 (api-open.data.gov.sg) is the current API; the older v1 at api.data.gov.sg/v1/environment/2-hour-weather-forecast still works too. Add ?date=YYYY-MM-DD for historical.
Machine-readable version: /api/apis/nea-2hr-weather-forecast
Related APIs
NEA 24-Hour Weather Forecast
NEA via data.gov.sg
General 24-hour outlook for Singapore with per-region (north, south, east, west, central) forecasts in time blocks, plus temperature, humidity and wind ranges. Updated multiple times a day.
NEA Dengue Clusters (GeoJSON)
NEA via data.gov.sg
Current dengue cluster boundaries as GeoJSON, published by NEA and refreshed on data.gov.sg. Fetch via the dataset poll-download API which returns a signed S3 download URL.
NEA PSI (Pollutant Standards Index)
NEA via data.gov.sg
Hourly PSI and pollutant concentration readings (PM2.5, PM10, SO2, CO, O3, NO2) for the five regions of Singapore. The go-to source during haze season.
NEA Real-Time Air Temperature
NEA via data.gov.sg
Air temperature readings in degrees Celsius from island-wide NEA stations, updated every minute. Useful for hyperlocal current conditions.