/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}