Ir al contenido
GET /v1/charge-time

Charge time between two states of charge

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/evcharging-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/evcharging-api/v1/charge-time" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/evcharging-api/v1/charge-time", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/evcharging-api/v1/charge-time");
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/charge-time",
    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": "Charge time = the energy to add (battery × the % gap) ÷ the charger power × efficiency. Real DC fast charging slows sharply above ~80 % to protect the cells, so 20→80 % is far quicker than 80→100 % — plan road trips around the fast part of the curve. AC home charging is roughly linear.",
        "inputs": {
            "start_pct": 20,
            "charger_kw": 7.2,
            "target_pct": 80,
            "battery_kwh": 60,
            "charge_efficiency_pct": 90
        },
        "charge_time_hours": 5.56,
        "charge_time_minutes": 333,
        "energy_to_battery_kwh": 36
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:56.181Z",
        "request_id": "c2c8ea33-f3d6-46e8-964d-d33892f11609"
    },
    "status": "ok",
    "message": "Charge time",
    "success": true
}