Zum Inhalt springen
GET /v1/charge

Required charge & time

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/electrolysis-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/electrolysis-api/v1/charge" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electrolysis-api/v1/charge", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electrolysis-api/v1/charge");
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/electrolysis-api/v1/charge",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Charge needed: Q = (m·n·F)/M. Divide by the current to get the plating time.",
        "moles": 0.0373092054,
        "inputs": {
            "mass_g": 2.371,
            "electrons": 2,
            "molar_mass": 63.55
        },
        "time_s": 3599.7911,
        "time_min": 59.996518,
        "current_a": 2,
        "required_charge_c": 7199.5821
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:24.751Z",
        "request_id": "c68b77fa-61f5-4ccc-8479-c97216af524e"
    },
    "status": "ok",
    "message": "Required charge",
    "success": true
}