Zum Inhalt springen
GET /v1/series

Series LEDs

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/ledresistor-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Series LEDs add forward voltages and share one resistor: R = (Vsupply − n·Vf)/I, the same current flows through all.",
        "inputs": {
            "count": 3,
            "current_ma": 20,
            "led_voltage": 2,
            "supply_voltage": 12
        },
        "total_power_w": 0.24,
        "resistance_ohm": 300,
        "nearest_e12_ohm": 330,
        "resistor_power_w": 0.12,
        "total_led_voltage": 6
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:12.815Z",
        "request_id": "0e1543ff-6818-4b29-8e8d-1c5ddc6f6d13"
    },
    "status": "ok",
    "message": "Series LEDs",
    "success": true
}