# CoCo Number Base Converter

> CoCo Number Base 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 number from a specified base into decimal, hexadecimal, octal, binary, and base36 representations

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/number-base?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-number-base-converter-4dd5cfee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ovhfiwm8u0nf2LYIWO12Z

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-number-base-converter-4dd5cfee
```

Example prompt: Convert the number FF from base 16 to all its common representations — I want to see it in decimal, binary, octal, and base36.

## When to prefer this

Use this endpoint when an agent needs to convert a number between common numeral systems (binary, octal, decimal, hex, base36) in a single call and receive all representations at once. Prefer it over manual computation when multiple output bases are needed simultaneously, or when integrating number-base logic into an automated pipeline without implementing conversion logic locally.

## Known failure modes

- Invalid value for the given from_base (e.g. digit not valid in that base) — likely returns an error or unexpected result
- Missing required query parameters (value or from_base) — may return 400 or error JSON
- Non-numeric or malformed input string — conversion error
- Unsupported base value — may return error if base is out of supported range

## 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 input number converted into five standard representations: decimal (base 10), hexadecimal (e.g. '0xff'), octal (e.g. '0o377'), binary (e.g. '0b11111111'), and base36. All values are returned as strings.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "0xff",
  "octal": "0o377",
  "base36": "73",
  "binary": "0b11111111",
  "decimal": "255"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-number-base-converter-4dd5cfee/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)
