# CoCo Unit Converter

> CoCo Unit Converter is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts a numeric value between measurement units (e.g. miles to kilometers) and returns the converted result with dimension metadata.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/units?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-unit-converter-3c6fc4c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z2_AIAk4yR-k7tqK_8j8K

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 coco-unit-converter-3c6fc4c7
```

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

## When to prefer this

Use this endpoint when you need a quick, programmatic unit conversion with structured JSON output including dimension metadata. Prefer it over manual lookup when building agents that need to normalize measurement data across different unit systems (imperial/metric/SI) on the fly.

## Known failure modes

- Unknown or unsupported unit type returns an error
- Incompatible unit dimensions (e.g. converting length to temperature) returns a conversion error
- Missing required query parameters returns a 400-level error
- Non-numeric input value causes a parse error

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the converted numeric value, the original and target unit labels, the physical dimension (e.g. '[length]'), and a human-readable result string (e.g. '1.609344 km').

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "km",
  "from": "mile",
  "value": 1,
  "result": 1.609344,
  "dimension": "[length]",
  "result_text": "1.609344 km"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-unit-converter-3c6fc4c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
