Catalog/ref-resistor-color

Reference

Resistor color-code decode/encode API

Decode resistor color bands (4/5/6-band) into resistance, tolerance %, and temperature coefficient, or encode a resistance value + band count + tolerance back into colors — the value-add being the bidirectional IEC 60062 band encode/decode. Answers 'what resistance is brown-black-red-gold', 'color bands for a 4.7k 5% resistor', 'decode this 5-band resistor', 'tolerance of a gold band'.

Price$0.01per request
MethodPOST
Route/v1/ref/resistor-color
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refresistorelectronicscolor-codeohmstoleranceiec60062bands
API URLhttps://x402.hexl.dev/v1/ref/resistor-color
Integration docs
Example request
{
  "bands": [
    "brown",
    "black",
    "red",
    "gold"
  ]
}
Example response
{
  "mode": "decode",
  "bands": [
    "brown",
    "black",
    "red",
    "gold"
  ],
  "ohms": 1000,
  "resistance": "1 kΩ",
  "tolerance": 5
}
Input schema
{
  "type": "object",
  "properties": {
    "bands": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "examples": [
        [
          "brown",
          "black",
          "red",
          "gold"
        ]
      ]
    },
    "ohms": {
      "type": "number",
      "examples": [
        4700
      ]
    },
    "bandCount": {
      "type": "integer",
      "enum": [
        4,
        5,
        6
      ]
    },
    "tolerance": {
      "type": "number"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}