PeumeAPI

Web scraping

Base64 Encode Url

Fetch any public URL and return the file as base64. Downloads an image, PDF, or other file and returns the base64-encoded bytes, a ready-to-use data URI, the content type, and the size, so an agent can pass a remote file to a vision model or embed it inline without handling binary itself. Follows redirects, 5MB cap, public addresses only. Keyless.

$0.03 per call

Call it

curl https://api.peume.com/v1/call/base64-encode-url-2 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "your url"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: base64-encode-url-2.

Parameters

urlRequiredstring

public http(s) URL of the file to fetch (max 5MB)

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.