/v1/meta
Spec
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/fatigue-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fatigue-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fatigue-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/fatigue-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": {
"notes": "Stresses and strengths in any one consistent unit (MPa typical). Mean-stress criteria treat compressive mean stress as non-damaging (σm clamped at 0). Marin factors default to 1.",
"service": "fatigue-api",
"formulae": {
"gerber": "(n·σa)/Se + (n·σm/Sut)² = 1",
"goodman": "1/n = σa/Se + σm/Sut",
"soderberg": "1/n = σa/Se + σm/Sy"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/criteria": "Goodman, Soderberg and Gerber safety factors for infinite life.",
"GET /v1/stress-cycle": "Alternating and mean stress, range and stress ratio from max/min stress.",
"GET /v1/endurance-limit": "Corrected endurance limit from Sut and the Marin modifying factors."
},
"description": "Mechanical fatigue calculator: stress cycle (alternating/mean/ratio), mean-stress safety factors (Goodman, Soderberg, Gerber) and the Marin-corrected endurance limit."
},
"meta": {
"timestamp": "2026-06-05T11:30:33.960Z",
"request_id": "7222a7db-90f8-4ee5-8911-6e5e78dd8f4f"
},
"status": "ok",
"message": "Meta",
"success": true
}