Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/dataurl-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}