Skip to content
GET /v1/resistor

Solve resistor for target Vout

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/voltagedivider-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Resistive divider sizing: Vout = Vin·R2/(R1+R2) ⇒ R2 = R1·Vout/(Vin−Vout), R1 = R2·(Vin−Vout)/Vout.",
        "inputs": {
            "r1": 1000,
            "vin": 12,
            "vout": 5
        },
        "r2_ohm": 714.285714
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:29.626Z",
        "request_id": "55819d8d-9210-4452-beba-38b3a19490a1"
    },
    "status": "ok",
    "message": "Solve resistor for target Vout",
    "success": true
}