# webtools.genexxis.com URL Base64 Encoder

> webtools.genexxis.com URL Base64 Encoder is a paid API for AI agents from webtools.genexxis.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Fetches a public URL (up to 5 MB) and returns its content as a base64-encoded data URI along with content type, byte size, SHA-256 hash, and final URL after redirects.

## Facts

- Endpoint: GET https://webtools.genexxis.com/base64-encode-url?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webtools-genexxis-com-url-base64-encoder-5445939a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d8oiFJOBrQttK9PJEumGw

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 webtools-genexxis-com-url-base64-encoder-5445939a
```

Example prompt: Can you fetch https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/280px-PNG_transparency_demonstration_1.png and give me the base64 data URI, its SHA-256 hash, and the final URL it resolved to?

## When to prefer this

Use this endpoint when you need to fetch a remote public URL and get its content encoded as base64 (with a data URI) in a single call, especially when you also need cryptographic verification (SHA-256) or content metadata (type, size, final URL). Ideal for embedding remote resources inline, verifying file integrity, or archiving snapshots of web pages without a full scraping pipeline.

## Known failure modes

- URL exceeds 5 MB limit — request rejected
- Non-public or private URLs return an access error
- Redirect chain leads to a URL that also exceeds size limit — re-checked and rejected
- Invalid or malformed URL returns a parsing error
- Target server is unreachable or times out
- URL returns a non-200 status code (e.g. 404 or 403)

## How this service works

Downloads a public URL (max 5 MB, redirects followed and re-checked) and returns its content as base64 with a data URI prefix, content type, byte size, sha256 and final URL.

## Output

A JSON object containing: the original requested URL, the final URL after following redirects, HTTP status code, content type (MIME type), byte size of the content, the full content encoded as base64, a data URI combining content type and base64, and a SHA-256 hash of the raw content.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL of the file or page to encode (max 5 MB)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "bytes": 513,
  "base64": "PCFkb2N0eXBlIGh0bWw+...",
  "sha256": "ea8fac7c65fb589b0d53560f5251f74f9e9b243478dcb6b3ea79b5e36449c8d9",
  "status": 200,
  "dataUri": "data:text/html;base64,",
  "finalUrl": "https://example.com/",
  "contentType": "text/html"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webtools-genexxis-com-url-base64-encoder-5445939a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtools.genexxis.com](https://www.zero.xyz/host/webtools.genexxis.com/llms.txt)
