# x402 Utils – Unit Converter

> x402 Utils – Unit Converter is a paid API for AI agents from utils.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

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.

## Facts

- Endpoint: GET https://utils.kagurazaka.dev/v1/convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-unit-converter-31a779da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ybngTQMlB3nBAaOtvgwtx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-utils-unit-converter-31a779da
```

Example prompt: Convert 26.2 miles to kilometres for me.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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"}.

## Request schema (JSON Schema)

```json
{
 "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": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "km",
  "from": "mi",
  "text": "42.1648128 km",
  "value": 26.2,
  "result": 42.1648128
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-unit-converter-31a779da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from utils.kagurazaka.dev](https://www.zero.xyz/host/utils.kagurazaka.dev/llms.txt)
