Naar de inhoud
GET /v1/charge

Required charge & time

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/electrolysis-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}