Should you be worried today?

Water, heat, rain and typhoon risks for your barangay, in plain words.

Open tubig.rjhon.net

Cyclone alerts

PAGASA's cyclone alerts, read and rated for Metro Manila.

GET /v1/history/cyclone-alerts
curl "https://tubig-api.rjhon.net/v1/history/cyclone-alerts?limit=2"

5 calls a minute per visitor. Follow next for more.

Parameters

NameInTypeDefaultWhat it does
limitqueryinteger, 1 to 500100Items per call, at most 500
cursorquerystring or nullThe cursor from a previous response's next link
fromquerydate (YYYY-MM-DD) or nullManila date, YYYY-MM-DD
toquerydate (YYYY-MM-DD) or nullManila date, YYYY-MM-DD

Response

An object with items (the fields below), next (the next page, or null) and sources (whom to credit).

FieldTypeWhat it is
identifierstringPAGASA's CAP identifier
stormstring or nullThe storm's local name and class (Typhoon Queenie)
international_namestring or nullIts international name (SURIGAE)
sentdatetime (UTC, ISO 8601)When PAGASA sent the alert (UTC)
expiresdatetime (UTC, ISO 8601) or nullWhen it expires (UTC)
severitystring or nullPAGASA's CAP severity
latnumber or nullLatitude of the centre
lonnumber or nullLongitude of the centre
max_wind_kmhinteger or nullMaximum sustained winds, km/h
gust_kmhinteger or nullGusts, km/h
movingstring or nullDirection of movement (north-northeast)
speed_kmhinteger or nullSpeed of movement, km/h
land_outlookstring or nullPAGASA's hazards-affecting-land text
metro_manilaobject or nullTubig's reading of the alert for Metro Manila
metro_manila.levelstringTubig's rating for Metro Manila: low, moderate, high or severe
metro_manila.affectstrue or falseTrue when PAGASA's land outlook names Metro Manila
metro_manila.distance_kmintegerDistance from Metro Manila to the centre, km
metro_manila.bearingstringDirection from Metro Manila to the centre (e.g. north-northeast)
metro_manila.approachingtrue or false or nullWhether its heading points toward Metro Manila; null when no heading is given
urlstringThe alert's CAP file

Live example

No example yet. One appears here once Tubig has recorded data for this endpoint.