# 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-15).

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

## Facts

- Endpoint: GET https://api.agishub.com/v1/units-convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-units-converter-850217f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QUzyKXhblnbxVSN65OsR8

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-850217f9
```

Example prompt: Can you convert 100 kilometers to miles for me?

## When to prefer this

Choose this endpoint when you need a fast, serverless unit conversion across standard measurement categories (length, mass, volume, speed, area, digital storage, time, temperature) without managing a local conversion library or external API key. Ideal for AI agents that encounter unit mismatch in user requests, recipe scaling, scientific calculations, or data normalization pipelines.

## Known failure modes

- Mismatched unit categories (e.g. converting km to kg) returns an error — both units must belong to the same measurement category
- Unknown or misspelled unit abbreviations return an error
- Missing required query parameters (value, from, to) return a 400 bad request
- Extremely large or small numeric values may cause precision issues in the result

## 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 target unit, e.g. {"result": "62.137"} representing the value in the requested output unit.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Convert a value between units of the same category: length, mass, volume, speed, area, digital storage, time, and temper"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-units-converter-850217f9/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)
