/v1/divide
Voltage divider
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/voltagedivider-api/v1/divide" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/voltagedivider-api/v1/divide", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/voltagedivider-api/v1/divide");
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/divide",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Unloaded divider: Vout = Vin·R2/(R1+R2); current I = Vin/(R1+R2) flows through both resistors; power Pi = I²·Ri.",
"vout": 8,
"inputs": {
"r1": 1000,
"r2": 2000,
"vin": 12
},
"current_a": 0.004,
"current_ma": 4,
"power_r1_w": 0.016,
"power_r2_w": 0.032,
"total_power_w": 0.048,
"total_resistance_ohm": 3000
},
"meta": {
"timestamp": "2026-06-05T19:50:29.400Z",
"request_id": "b7cfd114-5e8d-4c80-8651-4fc70ee8d653"
},
"status": "ok",
"message": "Voltage divider",
"success": true
}