# String Encoder (Base64, Base64URL, Hex)

> String Encoder (Base64, Base64URL, Hex) is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net:10000, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Encodes a string into base64, base64url, or hex format via a simple HTTP GET request.

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net:10000/data/encode
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/string-encoder-base64-base64url-hex-da838d1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wLnF2o5ZWHaOaynJO6ZAv

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 string-encoder-base64-base64url-hex-da838d1f
```

Example prompt: Can you encode the string 'Hello, World!' to base64 for me?

## When to prefer this

Use this endpoint when you need a quick, stateless string encoding into base64, base64url, or hex without setting up local encoding libraries. Ideal for agents that need to prepare encoded values for HTTP headers, URLs, or data serialization on the fly.

## Known failure modes

- Missing 'input' query parameter returns an error
- Invalid or unsupported 'to' encoding format returns an error
- Empty string input may return an empty encoded result
- Network or server errors return non-200 HTTP status

## How this service works

Encode a string. ?to=base64|base64url|hex&input=hello

## Output

Returns the encoded representation of the input string in the requested format (base64, base64url, or hex). The response is a JSON object containing the encoded output string and likely the encoding type used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string"
      },
      "input": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/string-encoder-base64-base64url-hex-da838d1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
