Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/dataurl-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/dataurl-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dataurl-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dataurl-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/dataurl-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "name": "Data URI API",
        "notes": "Send binary content as base64 or hex via input_encoding. Max 4 MB. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/encode",
                "params": {
                    "text": "content (required)",
                    "charset": "e.g. utf-8",
                    "encoding": "base64|url (default base64)",
                    "mediatype": "e.g. image/png (default text/plain)",
                    "input_encoding": "utf8|base64|hex (how `text` is given)"
                },
                "returns": "the data: URI"
            },
            {
                "path": "/v1/decode",
                "params": {
                    "datauri": "a data: URI (required)"
                },
                "returns": "mediatype, charset, is_base64, the text and/or base64 payload"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Encode content into a data: URI (RFC 2397) and decode a data: URI back to its content — the inline format used to embed images, fonts, SVG and small files directly in HTML, CSS, JSON and email. Choose base64 or URL (percent) encoding, set the media type and charset. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:46.597Z",
        "request_id": "bedbcd75-f21d-4ad7-a8e0-293c271976cd"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}