PASAR API
Keyless real-time PSI and PM2.5 readings across Singapore's north/south/east/west/central regions, the canonical source for haze conditions. SG-first.
View docs ↗ More Data & enrichment APIscurl 'https://api.data.gov.sg/v1/environment/psi'
I'm building an app using a free Singapore API (no auth needed). API: NEA PSI & Air Quality (data.gov.sg) ~ live haze readings Provider: National Environment Agency (NEA) via data.gov.sg Endpoint: GET https://api.data.gov.sg/v1/environment/psi It returns JSON (live data). Source: National Environment Agency (NEA) via data.gov.sg (https://guide.data.gov.sg/developer-guide/api-overview) Source type: Official public feed Endpoint type: Direct public JSON endpoint Integration difficulty: Copy-paste ready Production caveat: Still handle downtime, changing fields, empty responses, and rate limits before shipping user-facing alerts. Help me fetch this and build a simple page that displays it nicely. Include basic production safeguards for errors, empty responses, schema changes, caching, and rate limits.