{"openapi":"3.1.0","info":{"title":"Units and Conversions","version":"1.0.0","description":"Exact unit, cooking, fuel, data-size, duration, number and base conversions, plus heat index and wind chill. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"Units and Conversions: Exact unit, cooking, fuel, data-size, duration, number and base conversions, plus heat index and wind chill. Units and Conversions does exact conversions an agent should not do by guesswork: any common unit (/unit-convert), cooking measures between volume and weight by ingredient (/cooking-convert), fuel economy (/fuel-economy), data sizes in decimal and binary units (/data-size), durations in words (/duration-format), the apparent temperature from heat and wind (/feels-like), numbers in words (/number-words), Roman numerals (/roman-numerals) and number bases (/base-convert). Send only the numbers. Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://units-convert.x402tookit.com"}],"paths":{"/base-convert":{"get":{"operationId":"base_convert","summary":"Convert a number between bases 2 to 36 exactly (binary, octal, decimal, hex), with big-integer precision.","description":"Convert a number between bases 2 to 36 exactly (binary, octal, decimal, hex), with big-integer precision.","tags":["base-convert","binary","hex"],"parameters":[{"name":"value","in":"query","required":true,"description":"The number, digits only (optional 0x/0b prefix)","schema":{"type":"string"}},{"name":"from_base","in":"query","required":false,"description":"Base of the input, 2 to 36, default 10","schema":{"type":"integer"}},{"name":"to_base","in":"query","required":false,"description":"Base of the output, 2 to 36, default 16","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"input":{"type":["null","string"]},"fromBase":{"type":["null","number"]},"toBase":{"type":["null","number"]},"result":{"type":["null","string"]},"decimal":{"type":["null","string"]},"binary":{"type":["null","string"]},"octal":{"type":["null","string"]},"hex":{"type":["null","string"]},"bitLength":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED","summary":"255 (base 10) = 11111111 (base 2).","reasons":[],"input":"255","fromBase":10,"toBase":2,"result":"11111111","decimal":"255","binary":"11111111","octal":"377","hex":"ff","bitLength":8,"degraded":false,"notChecked":["negative numbers and fractions (whole non-negative numbers only)"],"source":"computed locally","asOf":"2026-10-11T04:01:04.159Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/base-convert"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/base-convert"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/base-convert"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/base-convert"}}]}}},"/cooking-convert":{"get":{"operationId":"cooking_convert","summary":"Convert cooking measures: cups, tablespoons, teaspoons, ml, ounces and grams, with weight for flour, sugar, butter and more.","description":"Convert cooking measures: cups, tablespoons, teaspoons, ml, ounces and grams, with weight for flour, sugar, butter and more.","tags":["cooking","recipes","conversion"],"parameters":[{"name":"value","in":"query","required":true,"description":"Amount","schema":{"type":"number"}},{"name":"from","in":"query","required":true,"description":"cup, tbsp, tsp, ml, l, floz, oz, g, kg, lb","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"cup, tbsp, tsp, ml, l, floz, oz, g, kg, lb","schema":{"type":"string"}},{"name":"ingredient","in":"query","required":false,"description":"Needed to cross between volume and weight, e.g. flour, sugar, butter, honey","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"result":{"type":["null","number"]},"from":{"type":["null","string"]},"to":{"type":["null","string"]},"ingredient":{"type":["null","string"]},"gramsPerCup":{"type":["null","number"]},"basis":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED_BY_TYPICAL_DENSITY","summary":"2 cup of flour = 240 g, using 120 g per US cup.","reasons":["Volume to weight uses a typical density; measure by weight for baking accuracy."],"result":240,"from":"cup","to":"g","ingredient":"flour","gramsPerCup":120,"basis":"typical density","degraded":false,"notChecked":["brand and packing variation (flour weighs 110 to 140 g per cup)","UK, metric or Australian cups (US cup of 236.6 ml is used)"],"source":"computed locally","asOf":"2026-10-11T04:01:04.420Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/cooking-convert"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/cooking-convert"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/cooking-convert"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/cooking-convert"}}]}}},"/data-size":{"get":{"operationId":"data_size","summary":"Convert data sizes between bytes, KB/MB/GB/TB (decimal) and KiB/MiB/GiB/TiB (binary), and the time to transfer at a speed.","description":"Convert data sizes between bytes, KB/MB/GB/TB (decimal) and KiB/MiB/GiB/TiB (binary), and the time to transfer at a speed.","tags":["data-size","bytes","bandwidth"],"parameters":[{"name":"value","in":"query","required":true,"description":"The size","schema":{"type":"number"}},{"name":"unit","in":"query","required":true,"description":"b, kb, mb, gb, tb, pb (decimal) or kib, mib, gib, tib, pib (binary)","schema":{"type":"string"}},{"name":"speed_mbps","in":"query","required":false,"description":"Link speed in megabits per second for transfer time","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"bytes":{"type":["null","number"]},"kb":{"type":["null","number"]},"mb":{"type":["null","number"]},"gb":{"type":["null","number"]},"tb":{"type":["null","number"]},"kib":{"type":["null","number"]},"mib":{"type":["null","number"]},"gib":{"type":["null","number"]},"tib":{"type":["null","number"]},"bits":{"type":["null","number"]},"transferSeconds":{"type":["null","number"]},"transferHuman":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED","summary":"1.5 GIB = 1,610,612,736 bytes = 1.610613 GB = 1.5 GiB. At 100 Mbps: 2.1 min.","reasons":["Decimal units (KB = 1000 bytes) are used by storage makers; binary units (KiB = 1024 bytes) by operating systems, which is why a '1 TB' drive shows as 931 GiB."],"bytes":1610612736,"kb":1610612.736,"mb":1610.612736,"gb":1.610613,"tb":0.00161061,"kib":1572864,"mib":1536,"gib":1.5,"tib":0.00146484,"bits":12884901888,"transferSeconds":128.85,"transferHuman":"2.1 min","degraded":false,"notChecked":["protocol overhead and real throughput (typically 5 to 20 percent lower)","compression"],"source":"computed locally","asOf":"2026-10-11T04:01:04.695Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/data-size"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/data-size"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/data-size"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/data-size"}}]}}},"/duration-format":{"get":{"operationId":"duration_format","summary":"Turn seconds into a readable duration (2 h 5 min) or parse one like '1d 3h 20m' back into seconds, minutes and hours.","description":"Turn seconds into a readable duration (2 h 5 min) or parse one like '1d 3h 20m' back into seconds, minutes and hours.","tags":["duration","time","formatting"],"parameters":[{"name":"seconds","in":"query","required":false,"description":"Seconds to format (give this or text)","schema":{"type":"number"}},{"name":"text","in":"query","required":false,"description":"Duration text to parse, e.g. 1d 3h 20m or 90 minutes","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"seconds":{"type":["null","number"]},"human":{"type":["null","string"]},"minutes":{"type":["null","number"]},"hours":{"type":["null","number"]},"days":{"type":["null","number"]},"clock":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"FORMATTED","summary":"93,784 seconds = 1 day 2 hours 3 minutes 4 seconds.","reasons":[],"seconds":93784,"human":"1 day 2 hours 3 minutes 4 seconds","minutes":1563.067,"hours":26.0511,"days":1.08546,"clock":"26:03:04","degraded":false,"notChecked":["months and leap years (a year is 365 days)","calendar dates (use /timestamp-convert)"],"source":"computed locally","asOf":"2026-10-11T04:01:04.952Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/duration-format"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/duration-format"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/duration-format"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/duration-format"}}]}}},"/feels-like":{"get":{"operationId":"feels_like","summary":"Apparent temperature: heat index from temperature and humidity, wind chill from temperature and wind, with a danger category.","description":"Apparent temperature: heat index from temperature and humidity, wind chill from temperature and wind, with a danger category.","tags":["weather","heat-index","wind-chill"],"parameters":[{"name":"temp_f","in":"query","required":true,"description":"Air temperature in Fahrenheit","schema":{"type":"number"}},{"name":"humidity_pct","in":"query","required":false,"description":"Relative humidity percent (for heat index)","schema":{"type":"number"}},{"name":"wind_mph","in":"query","required":false,"description":"Wind speed in mph (for wind chill)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"tempF":{"type":["null","number"]},"heatIndexF":{"type":["null","number"]},"heatCategory":{"type":["null","string"]},"feelsLikeF":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"HEAT_DANGER","summary":"90 F feels like 105.9 F. Heat index 106 F (danger).","reasons":["Heat index uses the NWS Rothfusz regression with its adjustments; wind chill uses the 2001 NWS/Environment Canada formula."],"tempF":90,"heatIndexF":105.9,"heatCategory":"DANGER","feelsLikeF":105.9,"degraded":false,"notChecked":["sun exposure (adds up to 15 F to heat index in full sun)","individual health and acclimatization","…1 more"],"source":"computed locally","asOf":"2026-10-11T04:01:05.216Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/feels-like"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/feels-like"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/feels-like"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/feels-like"}}]}}},"/fuel-economy":{"get":{"operationId":"fuel_economy","summary":"Convert fuel economy between US mpg, UK mpg, km per litre and litres per 100 km, with optional trip fuel and cost.","description":"Convert fuel economy between US mpg, UK mpg, km per litre and litres per 100 km, with optional trip fuel and cost.","tags":["fuel","mpg","vehicles"],"parameters":[{"name":"value","in":"query","required":true,"description":"The fuel-economy figure","schema":{"type":"number"}},{"name":"unit","in":"query","required":true,"description":"mpg_us, mpg_uk, km_per_l or l_per_100km","schema":{"type":"string"}},{"name":"distance_miles","in":"query","required":false,"description":"Trip length in miles for fuel and cost","schema":{"type":"number"}},{"name":"price_per_gallon_us","in":"query","required":false,"description":"Fuel price per US gallon","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"mpgUs":{"type":["null","number"]},"mpgUk":{"type":["null","number"]},"kmPerLiter":{"type":["null","number"]},"litersPer100Km":{"type":["null","number"]},"tripGallonsUs":{"type":["null","number"]},"tripLiters":{"type":["null","number"]},"tripCostUsd":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED","summary":"32 mpg_us = 32 US mpg = 38.43 UK mpg = 13.6046 km/L = 7.3505 L/100 km. A 300-mile trip uses 9.375 gal costing $32.81.","reasons":["US and UK gallons differ (3.785 L vs 4.546 L), so the two mpg figures differ by 20%."],"mpgUs":32,"mpgUk":38.43,"kmPerLiter":13.6046,"litersPer100Km":7.3505,"tripGallonsUs":9.375,"tripLiters":35.49,"tripCostUsd":32.81,"degraded":false,"notChecked":["real-world consumption (differs from rated figures)","electric vehicles (use kWh per 100 miles instead)"],"source":"computed locally","asOf":"2026-10-11T04:01:05.480Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/fuel-economy"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/fuel-economy"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/fuel-economy"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/fuel-economy"}}]}}},"/number-words":{"get":{"operationId":"number_words","summary":"Write a whole number in English words (cardinal and ordinal) and as a check-writing amount in dollars and cents.","description":"Write a whole number in English words (cardinal and ordinal) and as a check-writing amount in dollars and cents.","tags":["numbers","words","check-writing"],"parameters":[{"name":"value","in":"query","required":true,"description":"Whole number or amount up to 999 quadrillion; decimals are read as cents","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"cardinal":{"type":["null","string"]},"ordinal":{},"checkAmount":{"type":["null","string"]},"wholePart":{"type":["null","number"]},"cents":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"1234.56 = one thousand two hundred thirty-four point five six.","reasons":[],"cardinal":"one thousand two hundred thirty-four","ordinal":null,"checkAmount":"One thousand two hundred thirty-four and 56/100 dollars","wholePart":1234,"cents":56,"degraded":false,"notChecked":["languages other than English","decimals beyond two places (rounded to cents)"],"source":"computed locally","asOf":"2026-10-11T04:01:05.732Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/number-words"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/number-words"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/number-words"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/number-words"}}]}}},"/roman-numerals":{"get":{"operationId":"roman_numerals","summary":"Convert between integers (1-3999) and Roman numerals, and check whether a Roman numeral is written in canonical form.","description":"Convert between integers (1-3999) and Roman numerals, and check whether a Roman numeral is written in canonical form.","tags":["roman-numerals","numbers","conversion"],"parameters":[{"name":"value","in":"query","required":true,"description":"An integer 1-3999 or a Roman numeral such as MCMXCIV","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"integer":{"type":["null","number"]},"roman":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED","summary":"1994 = MCMXCIV.","reasons":[],"integer":1994,"roman":"MCMXCIV","degraded":false,"notChecked":["numbers of 4000 and above (no standard notation)","historical variants such as IIII"],"source":"computed locally","asOf":"2026-10-11T04:01:05.982Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/roman-numerals"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/roman-numerals"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/roman-numerals"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/roman-numerals"}}]}}},"/unit-convert":{"get":{"operationId":"unit_convert","summary":"Convert a value between units of length, mass, volume, area, speed, pressure, energy, power, time or temperature, exactly.","description":"Convert a value between units of length, mass, volume, area, speed, pressure, energy, power, time or temperature, exactly.","tags":["units","conversion","metric"],"parameters":[{"name":"value","in":"query","required":true,"description":"The number to convert","schema":{"type":"number"}},{"name":"from","in":"query","required":true,"description":"Unit, e.g. mi, km, lb, kg, gal_us, c, f, psi, kwh","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"Target unit of the same kind","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"input":{"type":["null","number"]},"from":{"type":["null","string"]},"to":{"type":["null","string"]},"category":{"type":["null","string"]},"result":{"type":["null","number"]},"resultRounded":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONVERTED","summary":"26.2 mi = 42.1648128 km (length).","reasons":["Factors are exact international definitions (1 inch = 25.4 mm, 1 lb = 0.45359237 kg, 1 US gallon = 3.785411784 L)."],"input":26.2,"from":"mi","to":"km","category":"length","result":42.1648128,"resultRounded":42.164813,"degraded":false,"notChecked":["unit names not in the table (the answer lists none and refuses with 400)","non-standard local units (a US ton and a UK ton differ: ton_us, ton_uk)"],"source":"computed locally","asOf":"2026-10-11T04:01:06.242Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/unit-convert"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/unit-convert"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/unit-convert"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://units-convert.x402tookit.com/unit-convert"}}]}}}}}