Zum Inhalt springen
GET /v1/volume

Tank water volume

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/aquarium-api/v1/volume" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/aquarium-api/v1/volume", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/aquarium-api/v1/volume");
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/aquarium-api/v1/volume",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "net": {
            "litres": 67.96,
            "uk_gallons": 14.949,
            "us_gallons": 17.953,
            "cubic_inches": 4147.2
        },
        "note": "Net volume applies a fill factor (default 0.9) for substrate, decor and freeboard. Gross is the full geometric volume.",
        "gross": {
            "litres": 75.51,
            "uk_gallons": 16.61,
            "us_gallons": 19.948,
            "cubic_inches": 4608
        },
        "input": {
            "unit": "in",
            "shape": "rectangular",
            "width": 12,
            "height": 16,
            "length": 24,
            "fill_factor": 0.9
        }
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:12.861Z",
        "request_id": "9d68ada2-04e5-45c0-8e15-f3a3b44fac64"
    },
    "status": "ok",
    "message": "Tank volume",
    "success": true
}