# AGISHub Units Converter

> AGISHub Units Converter is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts a numeric value from one unit to another within the same category (length, mass, volume, speed, area, digital storage, time, or temperature).

## Facts

- Endpoint: POST https://api.agishub.com/paid/units-convert
- 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/agishub-units-converter-b81491cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U77xau8mv9z2XczXR9niB

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 agishub-units-converter-b81491cc -d '<json body>'
```

Example prompt: Can you convert 72 degrees Fahrenheit to Celsius for me?

## When to prefer this

Choose this endpoint when you need a quick, reliable, single-value unit conversion across common categories like length, mass, volume, speed, area, digital storage, time, or temperature. It's ideal for inline conversions inside agent workflows without requiring a full math library or external computation service. Prefer it over general-purpose LLM arithmetic when precision and categorical correctness (e.g. Celsius/Fahrenheit/Kelvin handling) matter.

## Known failure modes

- Mismatched unit categories (e.g. converting km to kg) returns an error
- Unsupported unit abbreviations return a 400-level error
- Non-numeric value input causes a validation failure
- Missing required query parameters (value, from, or to) returns a 422 or 400 error

## How this service works

Convert a value between units of the same category: length, mass, volume, speed, area, digital storage, time, and temperature (Celsius/Fahrenheit/Kelvin).

## Output

A JSON object containing the converted numeric result for the given value, source unit, and target unit. Typically includes the output value and may include unit labels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target unit in the SAME category as 'from', e.g. 'mi', 'km', 'lb', 'F'."
      },
      "from": {
       "type": "string",
       "description": "Source unit, e.g. 'km', 'mi', 'kg', 'lb', 'C', 'F', 'GB', 'm/s'."
      },
      "value": {
       "type": "number",
       "description": "The numeric value to convert."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-units-converter-b81491cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
