Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/evcharging-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/evcharging-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/evcharging-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/evcharging-api/v1/meta");
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/meta",
    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": {
        "notes": "kWh, kW, miles. time = (battery × %gap) ÷ (kW × efficiency); range = kW × time × eff × mi/kWh; cost = (energy ÷ efficiency) × price. Estimates — DC fast charging tapers above 80 %, and cold weather cuts range. For battery runtime use a battery API.",
        "service": "evcharging-api",
        "endpoints": {
            "GET /v1/cost": "Cost of a charge including charging losses.",
            "GET /v1/meta": "This document.",
            "GET /v1/charge-time": "Time to charge from a start % to a target % at a charger power.",
            "GET /v1/range-added": "Range added over a session and miles per hour of charging."
        },
        "description": "EV-charging maths: time to charge between two states of charge, range added over a session, and the cost of a charge."
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:56.464Z",
        "request_id": "18357167-b8ef-43cc-a360-e84ba8a35b14"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}