Zum Inhalt springen
GET /v1/meta

Spec

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Dimensions in your chosen unit (m default). Volumes returned in m³, litres and US gallons.",
        "units": [
            "m",
            "cm",
            "mm",
            "ft",
            "in"
        ],
        "shapes": [
            "vertical-cylinder",
            "horizontal-cylinder",
            "rectangle",
            "sphere",
            "capsule"
        ],
        "service": "tank",
        "endpoints": {
            "/v1/fill": "Filled volume and percent full at a given depth (exact circular-segment / spherical-cap maths).",
            "/v1/level": "Inverse dipstick: the depth that gives a target volume or percent.",
            "/v1/volume": "Total capacity (litres/US gallons/m³) for vertical/horizontal cylinder, rectangle, sphere or capsule."
        },
        "description": "Tank volume and fill-level maths: capacity by shape, volume at a depth, and the dipstick depth for a target fill."
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:57.653Z",
        "request_id": "8dd722c9-e276-4f49-8157-b7368e0bc9cb"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}