NEA 2-Hour Weather Forecast

Government

by 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

  1. 1No key needed; the endpoint is public.
  2. 2Optional: create an account at data.gov.sg and request an API key for higher rate limits.
  3. 3If you have a key, send it in the x-api-key header.

Example request

Request
curl 'https://api-open.data.gov.sg/v2/real-time/api/two-hr-forecast'

Example response

Response (truncated)
{"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