Aller au contenu
GET /v1/meta

Spec

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/viscosity-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/viscosity-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/viscosity-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/viscosity-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/viscosity-api/v1/meta",
    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": {
        "gases": [
            "air",
            "nitrogen",
            "oxygen",
            "co2",
            "hydrogen",
            "helium",
            "argon"
        ],
        "notes": "Sutherland uses kelvin. Dynamic units Pa·s, cP, P; kinematic m²/s, cSt, St. This computes viscosity; for the Reynolds number from it use a Reynolds API.",
        "service": "viscosity-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/convert": "Viscosity unit conversion (Pa·s/cP/Poise or m²/s/cSt/Stokes).",
            "GET /v1/kinematic": "Convert between dynamic (μ) and kinematic (ν) viscosity using density.",
            "GET /v1/sutherland": "Gas dynamic viscosity at a temperature (Sutherland's law)."
        },
        "description": "Fluid viscosity: Sutherland's law for gases, dynamic↔kinematic conversion via density, and viscosity unit conversion."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:29.268Z",
        "request_id": "7b733784-ef90-4c25-bf57-e5a871bfa20e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}