/v1/meta
Spec
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/batterypack-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/batterypack-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/batterypack-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/batterypack-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": "V, Ah, Wh, A. Pack V = Ns×cell V; Ah = Np×cell Ah; Wh = V×Ah; current = C-rate×Ah. Pack-design estimates — real cells taper on charge and sag under load. For runtime under a load use a battery API; for EV charging an EV-charging API.",
"service": "batterypack-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/c-rate": "Current from a C-rate, or the C-rate from a current (give one).",
"GET /v1/charge-time": "Charge time from capacity and charge current.",
"GET /v1/configuration": "Pack voltage, capacity, energy and cell count from Ns/Np."
},
"description": "Battery-pack design maths: pack voltage/capacity/energy from a series-parallel layout, C-rate current, and charge time."
},
"meta": {
"timestamp": "2026-06-06T23:53:53.005Z",
"request_id": "89654c72-a9b5-4771-b808-e3649ca28d1c"
},
"status": "ok",
"message": "Meta",
"success": true
}