Aller au contenu
GET /v1/laplace-pressure

Young-Laplace pressure

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/capillary-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Young-Laplace: a liquid droplet ΔP = 2γ/r; a soap bubble has two surfaces so ΔP = 4γ/r; a cylindrical jet ΔP = γ/r.",
        "inputs": {
            "shape": "droplet",
            "radius_m": 0.001,
            "surface_tension_n_m": 0.0728
        },
        "formula_factor": 2,
        "excess_pressure_pa": 145.6,
        "excess_pressure_kpa": 0.1456
    },
    "meta": {
        "timestamp": "2026-06-05T03:08:57.984Z",
        "request_id": "aad444ef-5d52-4449-8bd2-72a0047863c8"
    },
    "status": "ok",
    "message": "Laplace pressure",
    "success": true
}