/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/capacitor-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/capacitor-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/capacitor-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/capacitor-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": "Capacitance in F (or capacitance_uf/_nf/_pf), voltage in V, resistance in Ω, time in s. The combination list shares one unit.",
"service": "capacitor-api",
"formulae": {
"charge": "Q = CV",
"energy": "E = ½CV² = ½QV",
"charging": "V(t) = Vs(1 − e^(−t/RC))",
"time_constant": "τ = RC"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/energy": "Energy and charge from any two of capacitance, voltage and charge.",
"GET /v1/charging": "RC transient — voltage at a time, or the time to reach a target voltage.",
"GET /v1/combination": "Total capacitance of capacitors in series or parallel."
},
"description": "Capacitor calculator: stored energy and charge, RC charging/discharging transients with the time constant, and series/parallel capacitance."
},
"meta": {
"timestamp": "2026-06-05T03:09:00.145Z",
"request_id": "476736de-0745-4dff-94ab-6cb88e586a9d"
},
"status": "ok",
"message": "Meta",
"success": true
}