{"slug":"base64encode-use-x402atlas-com-base64-encode-url-b6d13f","title":"Fetch any public URL and return its content as base64 with the content type and ","host":"base64encode.use.x402atlas.com","method":"GET","resource":"https://base64encode.use.x402atlas.com/base64-encode-url","category":"image","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.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":621,"reported_calls_30d":3,"reported_payers_30d":3,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"url":"https://x402atlas.com/apple-touch-icon.png"},"type":"http"},"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"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":621,"error":null}],"description_full":"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.","last_updated":"2026-10-09T04:17:58.044Z","schemes":["exact"]}