Vai al contenuto
GET /v1/pressure

Partial pressures + END

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/scuba-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}