/v1/range-added
Range added over a session
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/evcharging-api/v1/range-added" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/evcharging-api/v1/range-added", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/evcharging-api/v1/range-added");
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/evcharging-api/v1/range-added",
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": {
"note": "Range added = the energy that reaches the battery (charger kW × time × efficiency) × the car's miles per kWh (~3–4 for a typical EV, less for a truck or in the cold). The handy figure is miles per hour of charging — a 7 kW home charger adds ~22 mi/hr, a 150 kW DC station hundreds.",
"inputs": {
"minutes": 60,
"charger_kw": 7.2,
"mi_per_kwh": 3.5,
"charge_efficiency_pct": 90
},
"range_added_mi": 22.7,
"energy_added_kwh": 6.48,
"miles_per_hour_of_charge": 23
},
"meta": {
"timestamp": "2026-06-06T23:53:56.387Z",
"request_id": "f84b82b4-7783-4c5f-8214-a2d66c52ef94"
},
"status": "ok",
"message": "Range added",
"success": true
}