{"uid":"cap_ybngTQMlB3nBAaOtvgwtx","slug":"x402-utils-unit-converter-31a779da","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://utils.kagurazaka.dev/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":{"type":"json","example":{"to":"km","from":"mi","text":"42.1648128 km","value":26.2,"result":42.1648128}},"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_Pf33pt1kOgAHWX3prAYfN","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 physical or digital unit to another (e.g. miles to kilometres, Fahrenheit to Celsius, GB to MiB) using the mathjs unit system.","exampleAgentPrompt":"Convert 26.2 miles to kilometres for me.","exampleUseCases":[{"title":"Marathon distance in metric","prompt":"I ran a marathon — that's 26.2 miles. How many kilometres is that?"},{"title":"Temperature unit conversion","prompt":"My oven recipe says 375 degrees Fahrenheit — what is that in Celsius?"},{"title":"Data storage unit conversion","prompt":"My cloud provider charges by GiB but my file is 50 GB — how many GiB is that exactly?"}],"resultDescription":"A JSON object containing the original value and unit ('from'), the target unit ('to'), the converted numeric result ('result'), and a human-readable string combining result and unit ('text'), e.g. {\"from\":\"mi\",\"to\":\"km\",\"value\":26.2,\"result\":42.1648128,\"text\":\"42.1648128 km\"}.","failureModes":["Unknown or misspelled unit strings cause an error response","Incompatible unit types (e.g. converting mass to length) return an error","Missing required query parameters (value, from, to) result in a 400-level error","Very large or very small values may hit floating point limits"],"whenToPreferThis":"Use this endpoint when you need a quick, precise unit conversion across a broad range of physical quantities (length, mass, temperature, volume, speed, area, energy, power, pressure, data size, time) without setting up a local math library. It is ideal for agents handling user queries that mention specific numeric values and unit pairs, especially when accuracy beyond floating-point arithmetic is important. It covers mathjs-supported units, so it handles unusual units (e.g. AU, furlongs, BTU) that many simpler converters omit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:03:02.985Z","isFirstParty":false,"canonicalSlug":"x402-utils-unit-converter-31a779da"}