{"uid":"cap_urVXBXRc_NVMm8xq3jqQp","slug":"saylor-innovations-resistor-color-code-decoder-encoder-67de71ec","name":"Saylor Innovations Resistor Color Code Decoder/Encoder","description":"Decode 4, 5 and 6 band resistor colors into ohms, tolerance range and temperature coefficient, or encode an ohm value into the nearest E24 color bands","url":"https://saylorinnovations.com/api/electronics/resistor-code?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["bands"],"properties":{"bands":{"type":"string","description":"Comma-separated colors, e.g. brown,black,red,gold"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["mode"],"properties":{"mode":{"type":"string","description":"Mode used"},"note":{"type":"string","description":"Caveat or context for reading the result"},"bands":{"type":["array","null"],"description":"Colour bands from left to right"},"source":{"type":"string","description":"Data source the values come from"},"range_ohms":{"type":"array","description":"Range ohms"},"resistance":{"type":"string","description":"Resistance value in readable form"},"resistance_ohms":{"type":"number","description":"Resistance ohms"},"tolerance_percent":{"type":"number","description":"Tolerance, as a percentage"},"temperature_coefficient_ppm":{"description":"Temperature coefficient ppm"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NEun1VwJ37K_JIOB8vofq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes 4, 5, or 6 color band resistor codes into resistance, tolerance, and temperature coefficient values, or encodes an ohm value into E24 color bands","exampleAgentPrompt":"What resistance value and tolerance does a resistor with the color bands brown, black, red, gold have? Decode those 4 bands into ohms and tolerance range for me.","exampleUseCases":[{"title":"Identify resistor value on a circuit board","prompt":"I have a resistor with 5 color bands: brown, green, black, red, brown — can you decode those bands and tell me the exact resistance in ohms, the tolerance, and the temperature coefficient?"},{"title":"Encode ohm value to color bands for ordering","prompt":"I need to find the right resistor color bands for a 4700 ohm value — what are the E24 color bands I should look for so I can order the right component?"},{"title":"Verify tolerance range for circuit design","prompt":"Can you tell me the min and max resistance range for a 6-band resistor with bands orange, orange, black, brown, red, brown? I need to check if it fits within my circuit's tolerance budget."}],"resultDescription":"Returns a JSON object with the decoded mode (4/5/6 band or encode), the resistance as a human-readable string and numeric ohms value, tolerance percentage, temperature coefficient in ppm (for 6-band), the resistance range as [min, max] ohms, the color bands array, a data source label, and an optional note with caveats or context.","failureModes":["Invalid or unrecognized color name in bands parameter returns an error","Too few or too many bands (not 4, 5, or 6) may produce an error or unexpected result","Ohm value outside the E24 series range may not encode cleanly","Misspelled color names cause lookup failure","Missing required 'bands' query parameter returns a validation error"],"whenToPreferThis":"Use this endpoint when you need to quickly decode or encode resistor color bands in an electronics or hardware context without manual lookup tables. Ideal for hardware agents, electronics assistants, or PCB design tools that need to identify component values from physical markings or find the right color-coded component to order.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:22.005Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-resistor-color-code-decoder-encoder-67de71ec"}