Vai al contenuto
GET /v1/force

Force ↔ deflection

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/springcoil-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "mode": "deflection_to_force",
        "note": "F = k · x. Provide a spring_rate, or the geometry (wire_diameter, mean_diameter, active_coils) to derive it.",
        "force_N": 20,
        "deflection_mm": 10,
        "spring_rate_N_per_mm": 2
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:05.354Z",
        "request_id": "bd679c73-f764-4a82-bae9-8cd73b8f26cc"
    },
    "status": "ok",
    "message": "Force <-> deflection",
    "success": true
}