Naar de inhoud
GET /v1/range-added

Range added over a session

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/evcharging-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}