/v1/sutherland
Gas viscosity (Sutherland)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/viscosity-api/v1/sutherland" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/viscosity-api/v1/sutherland", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/viscosity-api/v1/sutherland");
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/viscosity-api/v1/sutherland",
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": "Sutherland's law: μ(T) = μ_ref·(T/T_ref)^1.5·(T_ref+S)/(T+S). Air at 25 °C ≈ 1.84×10⁻⁵ Pa·s. Pass gas (air, nitrogen, oxygen, co2, hydrogen, helium, argon) or custom mu_ref + t_ref + s.",
"inputs": {
"gas": "air",
"temperature_k": 298.15
},
"dynamic_viscosity_cp": 0.018371494,
"sutherland_constants": {
"s_k": 110.4,
"t_ref_k": 273.15,
"mu_ref_pa_s": 1.716e-5
},
"dynamic_viscosity_pa_s": 1.8371494e-5,
"dynamic_viscosity_micropa_s": 18.371494
},
"meta": {
"timestamp": "2026-06-05T19:50:29.166Z",
"request_id": "ff05f75a-54c6-4bca-99a3-a6b22157e5e6"
},
"status": "ok",
"message": "Gas viscosity (Sutherland)",
"success": true
}