# Swift Bot Labs Toolbox – Unit Converter

> Swift Bot Labs Toolbox – Unit Converter is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Converts a numeric value from one unit to another (e.g. Fahrenheit to Celsius, miles to kilometres) across multiple measurement dimensions, pay-per-call via x402/USDC.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/convert/units?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-unit-converter-78d3533f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SbpUsq4xmp9v3ojwCS20s

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 swift-bot-labs-toolbox-unit-converter-78d3533f
```

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

## When to prefer this

Choose this endpoint when you need a quick, deterministic unit conversion with no account setup or API key, and are comfortable paying $0.003 USDC per call via x402. It covers a broad range of physical dimensions. Prefer a local library if you need bulk/batch conversions or want to avoid per-call payment overhead.

## Known failure modes

- Unsupported or misspelled unit name returns an error
- Missing required query params (value, from, to) returns a 4xx
- Incompatible unit dimensions (e.g. converting kg to metres) returns an error
- Payment failure or insufficient USDC balance returns a 402

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

A JSON object containing the original value and unit, the converted result (as a number), the target unit, and the measurement dimension (e.g. 'temperature', 'length', 'mass'). The 'ok' flag confirms success and 'tool' identifies 'unit-convert'.

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target unit, or \"all\""
      },
      "from": {
       "type": "string"
      },
      "value": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "unit-convert",
  "result": {
   "to": "C",
   "from": "F",
   "value": 72,
   "result": 22.2222222222,
   "dimension": "temperature"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-unit-converter-78d3533f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
