# TinyData API — Base64 Encode/Decode

> TinyData API — Base64 Encode/Decode is a paid API for AI agents from cleanrows-api.lyra-lavende-7298.chatgpt.site, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Encodes or decodes text using Base64 or Base64URL encoding schemes, returning the transformed string with character counts.

## Facts

- Endpoint: POST https://cleanrows-api.lyra-lavende-7298.chatgpt.site/api/encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tinydata-api-base64-encode-decode-e577c54d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8IU0wMlKE6sCbL-YA4AS4

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 tinydata-api-base64-encode-decode-e577c54d -d '<json body>'
```

Example prompt: Base64-encode the string 'Hello, World!' for me using the standard base64_encode action.

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call Base64 or Base64URL encode/decode operation without standing up your own tooling — especially useful in agentic workflows that already use x402 micropayments on Polygon or Base and need character count metadata alongside the transformed result.

## Known failure modes

- Invalid action enum value returns an error — must be one of base64_encode, base64_decode, base64url_encode, base64url_decode
- Malformed Base64 input passed to a decode action may return a decoding error
- Missing required fields (text or action) will result in a validation error
- Payment failure (insufficient USDC balance on Polygon/Base) will block the request via x402

## How this service works

Hash text, encode or decode Base64, and clean CSV. Pay $0.001–$0.01 per successful request in USDC on Polygon via x402.

## Output

Returns a JSON object with `ok: true`, the action performed, the transformed `result` string, and the character counts of both the input and output strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "action"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "action": {
   "enum": [
    "base64_encode",
    "base64_decode",
    "base64url_encode",
    "base64url_decode"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "action",
  "result",
  "inputCharacters",
  "outputCharacters"
 ],
 "properties": {
  "ok": {
   "type": "boolean",
   "const": true
  },
  "action": {
   "enum": [
    "base64_encode",
    "base64_decode",
    "base64url_encode",
    "base64url_decode"
   ],
   "type": "string"
  },
  "result": {
   "type": "string"
  },
  "inputCharacters": {
   "type": "integer",
   "minimum": 0
  },
  "outputCharacters": {
   "type": "integer",
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tinydata-api-base64-encode-decode-e577c54d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cleanrows-api.lyra-lavende-7298.chatgpt.site](https://www.zero.xyz/host/cleanrows-api.lyra-lavende-7298.chatgpt.site/llms.txt)
