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/battery-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/battery-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/battery-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/battery-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/battery-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": {
        "note": "Estimates only — real figures vary with temperature, age, C-rate and discharge curve.",
        "service": "battery",
        "endpoints": {
            "/v1/pack": "Build a series/parallel pack: voltage, capacity, energy and cell count.",
            "/v1/charge": "Estimate charge time from capacity and charge current (or C-rate).",
            "/v1/runtime": "Estimate runtime from capacity and load, with depth-of-discharge and efficiency.",
            "/v1/capacity": "Convert capacity between mAh, Ah, Wh, kWh and joules (with voltage)."
        },
        "description": "Battery maths: runtime, mAh/Wh capacity conversion, series/parallel pack building and charge time."
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:59.147Z",
        "request_id": "ae0a4ee7-0da0-42cd-80e2-2c0d7ad1f65d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}