{
  "x402Version": 2,
  "id": 36620,
  "slug": "36620",
  "resource": "https://base64encode.use.x402atlas.com/base64-encode-url",
  "description": "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.",
  "type": "http",
  "serviceName": "URL to Base64",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "bazaar": {
      "category": "utilities",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://x402atlas.com/apple-touch-icon.png"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
            "content_type": "image/png",
            "data_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
            "final_url": "https://x402atlas.com/apple-touch-icon.png",
            "size_bytes": 68,
            "url": "https://x402atlas.com/apple-touch-icon.png"
          },
          "type": "json"
        }
      },
      "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"
      },
      "tags": [
        "base64",
        "url",
        "fetch",
        "data-uri",
        "encode"
      ]
    }
  },
  "tags": [
    "base64",
    "url",
    "fetch",
    "data-uri",
    "encode",
    "bazaar"
  ],
  "sourceHost": "base64encode.use.x402atlas.com",
  "lastUpdated": "2026-10-09T04:17:58.044Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-09T04:17:57.89Z"
  },
  "metadata": {
    "serviceName": "URL to Base64",
    "extensions": {
      "bazaar": {
        "category": "utilities",
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://x402atlas.com/apple-touch-icon.png"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
              "content_type": "image/png",
              "data_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
              "final_url": "https://x402atlas.com/apple-touch-icon.png",
              "size_bytes": 68,
              "url": "https://x402atlas.com/apple-touch-icon.png"
            },
            "type": "json"
          }
        },
        "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"
        },
        "tags": [
          "base64",
          "url",
          "fetch",
          "data-uri",
          "encode"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "base64encode.use.x402atlas.com",
    "manifest_name": "base64encode.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "base64": "string",
      "content_type": "string",
      "data_uri": "string",
      "final_url": "string",
      "size_bytes": 0,
      "url": "string"
    },
    "type": "string"
  }
}