/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/ledresistor-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ledresistor-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ledresistor-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/ledresistor-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": "Voltages in volts, current in mA (or current_a in A). Typical LED currents are 10–20 mA. The nearest E12 resistor is rounded up to keep the current at or below target.",
"service": "ledresistor-api",
"formulae": {
"power": "P_resistor = I²·R, P_led = Vf·I",
"series": "R = (Vsupply − n·Vf)/I",
"resistor": "R = (Vsupply − Vf) / I"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/series": "One resistor for LEDs wired in series (forward voltages add).",
"GET /v1/parallel": "Per-LED resistor and total current for LEDs in parallel.",
"GET /v1/resistor": "Series resistor for one LED, with the nearest E12 value and power dissipation."
},
"description": "LED current-limiting-resistor calculator: single LED, series strings and parallel arrays, with the nearest E12 value and power ratings."
},
"meta": {
"timestamp": "2026-06-04T18:38:12.895Z",
"request_id": "5431d254-7203-4af4-b71a-94beed127b3f"
},
"status": "ok",
"message": "Meta",
"success": true
}