Zum Inhalt springen
GET /v1/gauge

Latest live observation for a USGS gauge

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/streamflow-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}