Zum Inhalt springen
GET /v1/mass

Deposited mass

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

Beispiel-Response

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

{
    "data": {
        "note": "Faraday's first law: m = (Q·M)/(n·F) = (I·t·M)/(n·F). The mass deposited or dissolved is proportional to the charge passed.",
        "moles": 0.0373113708,
        "inputs": {
            "time_s": 3600,
            "charge_c": 7200,
            "current_a": 2,
            "electrons": 2,
            "molar_mass": 63.55
        },
        "deposited_mass_g": 2.37113761
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:24.934Z",
        "request_id": "10fadb92-de55-42e6-a816-861def554d7c"
    },
    "status": "ok",
    "message": "Deposited mass",
    "success": true
}