/v1/meta
Spec
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/resistor-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/resistor-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/resistor-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/resistor-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"name": "Resistor Color Code API",
"notes": "Multiplier colours: gold = ×0.1, silver = ×0.01. 3-band resistors imply ±20% tolerance. Nothing is stored.",
"colours": {
"digit": "black0 brown1 red2 orange3 yellow4 green5 blue6 violet7 grey8 white9",
"tolerance": "brown±1 red±2 green±0.5 blue±0.25 violet±0.1 grey±0.05 gold±5 silver±10 (none ±20)",
"multiplier": "…gold ×0.1, silver ×0.01"
},
"version": "v1",
"endpoints": [
{
"path": "/v1/decode",
"params": {
"bands": "comma-separated colours, e.g. brown,black,red,gold"
},
"returns": "resistance, tolerance, min/max, tempco"
},
{
"path": "/v1/encode",
"params": {
"ohms": "resistance in ohms",
"bands": "4, 5 or 6 (default 4)",
"tolerance": "percent (default 5 for 4-band, 1 otherwise)"
},
"returns": "the colour bands"
},
{
"path": "/v1/eseries",
"params": {
"ohms": "resistance in ohms",
"series": "E6/E12/E24/E48/E96 (default E24)"
},
"returns": "nearest preferred value + error"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Read and write resistor colour codes and snap values to the standard E-series. The decode endpoint takes the colour bands of a 3-, 4-, 5- or 6-band resistor and returns the resistance in ohms (nicely formatted as Ω/kΩ/MΩ/GΩ), the significant digits and multiplier, the tolerance, the min/max resistance that tolerance implies, and — for 6-band parts — the temperature coefficient in ppm/K. The encode endpoint goes the other way: give it a resistance in ohms (and optionally a band count and tolerance) and it returns the colour bands, picking the nearest value representable with the available significant digits. The eseries endpoint snaps any value to the nearest preferred resistor value in the E6, E12, E24, E48 or E96 series and reports the percentage error and the neighbouring preferred values. It uses the standard IEC 60062 colour assignments. Everything is computed locally and deterministically, so it is instant and private. Ideal for electronics design, PCB and BOM work, lab and hobby bench use, repair, and teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is for resistors; for general number formatting use a number-format API."
},
"meta": {
"timestamp": "2026-06-03T17:42:16.673Z",
"request_id": "b2368b02-1939-40c5-babe-5f16e566dadd"
},
"status": "ok",
"message": "Meta",
"success"
…