/v1/elongation
Bar elongation under axial load
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/youngmodulus-api/v1/elongation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/youngmodulus-api/v1/elongation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/youngmodulus-api/v1/elongation");
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/youngmodulus-api/v1/elongation",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"strain": 5.0e-5,
"area_m2": 0.001,
"force_n": 10000,
"formula": "δ = F·L/(A·E); stiffness k = A·E/L.",
"length_m": 2,
"stress_mpa": 10,
"elongation_m": 0.0001,
"elongation_mm": 0.1,
"youngs_modulus_gpa": 200,
"axial_stiffness_n_m": 100000000
},
"meta": {
"timestamp": "2026-06-04T10:18:41.951Z",
"request_id": "26f7e24b-1dbc-4318-bfa7-5ac59ab7b327"
},
"status": "ok",
"message": "Bar elongation under load",
"success": true
}