/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}