Should you be worried today?
Water, heat, rain and typhoon risks for your barangay, in plain words.
Open tubig.rjhon.netRiver gauges
River gauges with their alert, alarm and critical levels.
Request
All endpointsGET /v1/history/rivers
curl "https://tubig-api.rjhon.net/v1/history/rivers"
5 calls a minute per visitor. Follow next for more.
Parameters
None. It always returns the whole list.
Response
An object with items (the fields below), next (the next page, or null) and sources (whom to credit).
| Field | Type | What it is |
|---|---|---|
code | string | The gauge's code, for /rivers/{code}/readings |
name | string | The gauge's name |
agency | string or null | PAGASA or MMDA |
river | string or null | The river it is on |
alert_m | number or null | Alert level, metres |
alarm_m | number or null | Alarm level, metres |
critical_m | number or null | Critical level, metres |
used_by_flood_rules | true or false | False for a gauge whose levels Tubig leaves out (a dam, or mismatched levels) |
Live example
Open in the browserThe first 2 items of what Tubig holds now.
{
"items": [
{
"code": "11105201",
"name": "Angono",
"agency": "MMDA",
"river": "Laguna de Bay",
"alert_m": null,
"alarm_m": null,
"critical_m": null,
"used_by_flood_rules": true
},
{
"code": "11102203",
"name": "Burgos",
"agency": "PAGASA",
"river": "Marikina",
"alert_m": 27.4,
"alarm_m": 27.9,
"critical_m": 28.4,
"used_by_flood_rules": true
}
],
"next": null,
"sources": [
{
"name": "PAGASA Pasig-Marikina-Tullahan flood forecasting and warning system",
"url": "https://pasig-marikina-tullahanffws.pagasa.dost.gov.ph/",
"licence": null
}
]
}