Agent and developer resources

RISE Sri Lanka public data APIs

These read-only JSON endpoints provide current disaster-readiness data. Responses may be cached briefly and can include stale-state metadata when an upstream source is unavailable.

ResourceEndpointResponse contract
River observations/api/gaugesRecords are under records.
NBRO rainfall/api/rainfallStation records are under stations.
Air quality/api/air-qualityStation records are under stations.
English weather forecast/api/meteoUses title, issued, body, and fetched_at.
Disaster alerts/api/alertsAlert records are under items.
Flood-risk analysis/api/flood-riskCheck data_status before using items.
District weather/api/weatherDistrict records are under locations.

Flood-risk safety rule

Never interpret an empty items array as “no flood risk.” Check data_status first and surface status_message when classifications are unavailable.