Ir al contenido
GET /v1/advantage

Mechanical advantage

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/pulley-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/pulley-api/v1/advantage" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pulley-api/v1/advantage", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pulley-api/v1/advantage");
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/pulley-api/v1/advantage",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "Ideal MA equals the number of rope parts supporting the load (= velocity ratio). Effort = load/(n·efficiency).",
        "inputs": {
            "load": 1000,
            "distance": 2,
            "segments": 4,
            "efficiency": 1
        },
        "effort_n": 250,
        "work_input_j": 2000,
        "rope_pulled_m": 8,
        "work_output_j": 2000,
        "ideal_effort_n": 250,
        "velocity_ratio": 4,
        "overall_efficiency": 1,
        "ideal_mechanical_advantage": 4,
        "actual_mechanical_advantage": 4
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:28.315Z",
        "request_id": "9559b30c-273b-4569-a07a-c4f5133be7f1"
    },
    "status": "ok",
    "message": "Mechanical advantage",
    "success": true
}