{"uid":"cap_sjqIRZXHzPW4bTKpyxT2E","slug":"x402-utils-unit-converter-015882dd","name":"x402 Utils — Unit Converter","description":"Convert a value between units of length, mass, volume, temperature, speed, area, energy, power, pressure, data size, time and more (mathjs units), such as mi to km, degF to degC, GB to MiB, kWh to J.","url":"https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/convert?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":["value","from","to"],"properties":{"to":{"type":"string","description":"the target unit, such as km, kg, degC, MiB"},"from":{"type":"string","description":"the unit, such as mi, lb, degF, GB"},"value":{"type":"number","description":"the value"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{},"from":{},"text":{},"value":{},"result":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jKP9oMjR1q1rllutPLun6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a numeric value from one unit to another across categories like length, mass, temperature, speed, data size, energy, and more using mathjs units.","exampleAgentPrompt":"Can you convert 26.2 miles to kilometers for me?","exampleUseCases":[{"title":"Temperature conversion for weather","prompt":"What is 98.6 degrees Fahrenheit in Celsius?"},{"title":"Data storage unit conversion","prompt":"How many MiB are in 4.5 GB?"},{"title":"Energy unit conversion for billing","prompt":"Convert 150 kWh to joules so I can compare it to an energy reading."}],"resultDescription":"Returns a JSON object containing the original value and unit, the converted result value and target unit, and a human-readable text string summarizing the conversion (e.g. '26.2 mi = 42.165 km').","failureModes":["Unknown or unsupported unit string returns an error (e.g. misspelled unit names)","Incompatible unit categories (e.g. converting miles to kilograms) returns a dimension mismatch error","Missing required query parameters (value, from, to) returns a 400-level error","Non-numeric value input causes a validation error"],"whenToPreferThis":"Choose this endpoint when you need reliable, high-precision unit conversion across a broad range of physical and digital domains (length, mass, temperature, speed, energy, data size, pressure, area, time, etc.) using standard mathjs unit names. Prefer it over ad-hoc LLM arithmetic for accuracy, especially for less common unit pairs like kWh↔J or GiB↔MB where floating-point precision matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:37:34.455Z","isFirstParty":false,"canonicalSlug":"x402-utils-unit-converter-015882dd"}