# agent402.tools Unit Converter

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

Converts a numeric value between units of length, mass, temperature, data, time, or speed.

## Facts

- Endpoint: POST https://agent402.tools/api/unit-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-unit-converter-52735fc6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J9isoz952Na9KOAHPJ_mr

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 agent402-tools-unit-converter-52735fc6 -d '<json body>'
```

Example prompt: Convert 72 degrees Fahrenheit to Celsius for me.

## When to prefer this

Use this endpoint when an agent needs a reliable, low-latency unit conversion across common physical or data measurement categories (length, mass, temperature C/F/K, data, time, speed) without building conversion logic in-house. Prefer this over LLM-based calculation for accuracy and determinism.

## Known failure modes

- Unsupported unit type returns an error (e.g. converting currency or angles)
- Incompatible unit categories (e.g. converting kg to km) returns an error
- Missing required fields (value, from, or to) returns a validation error
- Malformed unit strings return an error if not recognized

## How this service works

Convert a value between units of length, mass, temperature, volume, area, speed, time, data, pressure, energy, power, angle, frequency - every unit the retired convert-* endpoints handled (e.g. miles, kilograms, us-gallons, fahrenheit, psi, kilowatt-hours).

## Output

A converted numeric result for the requested unit pair, representing the input value expressed in the target unit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target unit id - must be in the same category as `from`."
  },
  "from": {
   "type": "string",
   "description": "Source unit id - any unit of length, mass, temperature, volume, area, speed, time, data, pressure, energy, power, angle, or frequency (e.g. \"miles\", \"fahrenheit\", \"us-gallons\"). Short aliases like \"km\"/\"lb\"/\"f\" also work."
  },
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "celsius",
  "from": "fahrenheit",
  "result": 37.7777777778
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-unit-converter-52735fc6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
