# Unit Converter API (x402node)

> Unit Converter API (x402node) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Converts values between common units of measurement including length, weight, temperature, area, volume, speed, data size, and time

## Facts

- Endpoint: GET https://api.x402node.dev/math/unit-convert
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-76206bc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A3g1U-KG6cEqFOzdwFnt_

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 api-x402node-dev-76206bc2
```

Example prompt: Convert 5 kilometers to miles for me.

## When to prefer this

Use this endpoint when an AI agent needs to perform unit conversions programmatically across a wide range of measurement domains (length, weight, temperature, speed, volume, area, data size, time) without relying on in-context math; ideal for pipelines where accurate, typed conversion results are required rather than approximate in-model estimation.

## Known failure modes

- Unsupported unit type returns an error (e.g. converting between incompatible categories like length to weight)
- Invalid numeric input returns a validation error
- Unrecognized unit abbreviation or name returns an error
- Missing required fields (value, fromUnit, toUnit) returns a 400 bad request

## How this service works

Unit converter, measurement conversion, metric imperial, length weight temperature speed area volume, kilometer to mile, kg to pound, celsius to fahrenheit, inch to cm, mph to kmh, bytes to gigabytes. Convert between common units of measurement: length, weight, temperature, area, volume, speed, data size, time. Accepts payment on Base or Solana — either network works.

## Output

Returns the converted numeric value in the target unit, given an input value and source/target unit pair across categories like length, weight, temperature, area, volume, speed, data size, and time.

## 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",
     "properties": {
      "to": {
       "type": "string",
       "description": "Target format (optional)"
      },
      "from": {
       "type": "string",
       "description": "Source format (optional)"
      },
      "value": {
       "type": "string",
       "description": "Input value (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-76206bc2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
