Developers: public haze data endpoints (JSON)
The endpoints are public, need no key, allow cross-origin requests and are cached for about 5 minutes. Please do not poll aggressively, and credit the data sources.
Endpoints
/api/now?place=sg | Reading, weather, causes, advice and trend for a city |
|---|---|
/api/now?lat=1.35&lon=103.82 | Any coordinates (inside Singapore it uses the nearest NEA region) |
/api/news | Aggregated haze headlines (title, outlet, link) |
/api/map/grid?lat=1.35&lon=103.82 | Regional PM2.5 model grid (-12 h to +24 h) and 1.5 km wind |
/api/map/hotspots | Last-24-hour fire detections [lat, lon, power] |
curl "https://haze.day/api/now?place=sg" | jq '{pm25, basis, advice: [.advice[] | {id, verdict}]}'Units: PM2.5 in µg/m³. basis is official or modelled (a model estimate, not official).
Attribution and terms
- Singapore readings: NEA / data.gov.sg (Singapore Open Data Licence).
- Fires: NASA FIRMS. Weather and model: Open-Meteo (CC BY 4.0, non-commercial use).
- News is headline, outlet and link only; copyright belongs to the publishers.
- Provided as is without availability guarantees; not medical advice.
Each data source is explained on the data sources pages; an index for AI tools is at llms.txt.