Zum Inhalt springen
GET /v1/pressure

Partial pressures + END

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Ambient pressure P = 1 + depth/10 (ata); each gas's partial pressure = fraction·P. END matches the N2 narcosis to an air depth — helium is non-narcotic, so a trimix lowers it.",
        "inputs": {
            "he": 0,
            "o2": 0.21,
            "depth": 40
        },
        "pphe_ata": 0,
        "ppn2_ata": 3.95,
        "ppo2_ata": 1.05,
        "n2_fraction": 0.79,
        "ambient_pressure_ata": 5,
        "equivalent_narcotic_depth_meters": 40
    },
    "meta": {
        "timestamp": "2026-06-05T21:48:49.836Z",
        "request_id": "e91d8f76-09ea-42d2-bcde-977188cca88b"
    },
    "status": "ok",
    "message": "Partial pressures",
    "success": true
}