Vai al contenuto
GET /v1/power-to-weight

Power-to-weight ratio with class

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "kw": 223.7,
        "note": "Power-to-weight, not raw power, decides acceleration: a light 200 hp car can outrun a heavy 400 hp one. W/kg is the cleanest cross-unit figure (a hot hatch is ~120–180 W/kg, a supercar 250+). Shedding weight helps everywhere — acceleration, braking and cornering — while extra power only helps in a straight line.",
        "inputs": {
            "weight_lb": 3000,
            "horsepower_hp": 300
        },
        "w_per_kg": 164.4,
        "hp_per_lb": 0.1,
        "weight_kg": 1360.8,
        "hp_per_ton": 200,
        "performance_class": "hot hatch / sports car"
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:55.275Z",
        "request_id": "69ba06b7-5a79-401f-9699-fa556383c6c7"
    },
    "status": "ok",
    "message": "Power-to-weight",
    "success": true
}