/v1/gauge
Latest live observation for a USGS gauge
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/streamflow-api/v1/gauge" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/streamflow-api/v1/gauge", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/streamflow-api/v1/gauge");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/streamflow-api/v1/gauge",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA",
"site": "01646500",
"state": "MD",
"source": "USGS Water Services",
"latitude": 38.94977778,
"longitude": -77.12763889,
"observed_at": "2026-05-31T01:50:00.000-04:00",
"gauge_height_m": 1.64,
"streamflow_cfs": 25900,
"streamflow_m3s": 733.405,
"gauge_height_ft": 5.38
},
"meta": {
"timestamp": "2026-05-31T06:28:06.661Z",
"request_id": "0ec9e7ad-b933-497a-9711-4e9a51fe5ae4"
},
"status": "ok",
"message": "Gauge observation retrieved",
"success": true
}