Aller au contenu
GET /v1/stress-cycle

Stress cycle

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/fatigue-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/fatigue-api/v1/stress-cycle" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fatigue-api/v1/stress-cycle", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fatigue-api/v1/stress-cycle");
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/fatigue-api/v1/stress-cycle",
    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": "Alternating stress σa = (σmax − σmin)/2 and mean stress σm = (σmax + σmin)/2. R = σmin/σmax: −1 is fully reversed, 0 is repeated.",
        "inputs": {
            "stress_max": 200,
            "stress_min": -50
        },
        "mean_stress": 75,
        "loading_type": "fluctuating",
        "stress_range": 250,
        "stress_ratio_R": -0.25,
        "stress_amplitude": 125,
        "amplitude_ratio_A": 1.666667
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:33.871Z",
        "request_id": "cff9df14-34b9-4632-8fe2-b7eccf1b4636"
    },
    "status": "ok",
    "message": "Stress cycle",
    "success": true
}