Api Endpoint

URL to Base64

Fetch any public URL and return its content as base64 with the content type and a ready-to-use data URI. Embed images, PDFs and files directly in LLM and API calls without downloading them yourself. Clean JSON.

Open interactive test console

Offering

Provider
base64encode.use.x402atlas.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Web Search Research
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://base64encode.use.x402atlas.com/base64-encode-url
MIME type
application/json
First seen
2026-10-16T01:50:24.663Z
Last seen
Tags
Base64, url, fetch, data-uri, encode

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.01 USDC
Atomic price: 10000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "3nXsChcZGke6xebDPmndNMCt8L3yi6xyN4Pd6q5cQrgv"
  }
]

Observed health

Status
Healthy
Latest latency
12 ms
Average latency
337 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "method": {
      "enum": [
        "GET"
      ],
      "type": "string"
    },
    "queryParams": {
      "properties": {
        "url": {
          "description": "Public URL of the file to fetch and base64-encode (image, PDF, any file). Absolute http or https; private, loopback and link-local hosts are rejected. Content over 4 MiB is refused. Defaults to the example URL when omitted.",
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "url": {
              "description": "Public URL of the file to fetch and base64-encode (image, PDF, any file). Absolute http or https; private, loopback and link-local hosts are rejected. Content over 4 MiB is refused. Defaults to the example URL when omitted.",
              "format": "uri",
              "maxLength": 2048,
              "type": "string"
            }
          },
          "required": [
            "url"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "base64": {
              "description": "Standard base64 with padding of the fetched bytes, no line breaks.",
              "type": "string"
            },
            "content_type": {
              "description": "Media type without parameters; application/octet-stream when the upstream sent none.",
              "type": "string"
            },
            "data_uri": {
              "description": "data:<content_type>;base64,<base64>, ready to embed.",
              "type": "string"
            },
            "final_url": {
              "description": "URL after redirects (equals url when none).",
              "type": "string"
            },
            "size_bytes": {
              "description": "Decoded byte length of the fetched content (at most 4194304).",
              "type": "integer"
            },
            "url": {
              "description": "The URL as given by the caller.",
              "type": "string"
            }
          },
          "required": [
            "url",
            "final_url",
            "content_type",
            "size_bytes",
            "base64",
            "data_uri"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}