# Unit Converter API

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

Converts values between units across length, mass, volume, speed, area, data size, time, energy, pressure, and temperature categories, returning the converted value, category, and conversion factor.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/units
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-converter-api-94044424
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rflbXmMQlLOyYxKsMoGpc

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 unit-converter-api-94044424
```

Example prompt: Convert 72 degrees Fahrenheit to Celsius and tell me the conversion factor.

## When to prefer this

Use this endpoint when an agent needs programmatic, reliable unit conversion across a broad set of physical and digital measurement categories including temperature, data sizes, and cooking volumes. It is especially useful when the conversion factor itself is needed (not just the result), or when handling user requests phrased as natural expressions like '10 km to miles'. Prefer this over hardcoded conversion logic when coverage across many categories is needed in a single consistent API.

## Known failure modes

- Unrecognized unit name returns an error (e.g. misspelled or non-standard unit abbreviation)
- Incompatible unit categories (e.g. trying to convert km to kilograms) returns a category mismatch error
- Missing or malformed 'input' query parameter results in a 400 Bad Request
- Network or server unavailability returns 5xx error

## How this service works

Unit conversion: length, mass, volume, speed, area, data size, time, energy, pressure and temperature; e.g. '10 km to miles', '72 F to C', '500 MB to GiB', '3 cups to ml'. Returns the value, the category and the factor. $0.01 per conversion.

## Output

Returns the numerically converted value in the target unit, the measurement category (e.g. 'length', 'temperature', 'data size'), and the numeric conversion factor used to perform the conversion.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-converter-api-94044424/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
