Ir al contenido
GET /v1/meta

Spec

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/pad-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/pad-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pad-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pad-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/pad-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "name": "Pad API",
        "notes": "Width is counted in Unicode code points, so emoji and accented letters count as one. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/pad",
                "params": {
                    "fill": "fill string, default space; repeated and trimmed to fit",
                    "side": "start|left, end|right, both|center (default start)",
                    "value": "the string (required)",
                    "length": "target width in characters (required)",
                    "truncate": "true to cut the value when it is longer than length"
                },
                "returns": "the padded string + length metadata"
            },
            {
                "path": "/v1/align",
                "params": {
                    "fill": "fill string (default space)",
                    "side": "start|end|both (default start)",
                    "text": "newline-separated lines (alternative to lines)",
                    "lines": "JSON array of strings (or use text)",
                    "width": "target width (default = longest line)",
                    "truncate": "true to cut long lines to width"
                },
                "returns": "the aligned lines as an array and joined with newlines"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Pad and align strings to a target width — left/right/centre, with any fill character, multibyte-safe. Pad a single value (e.g. zero-pad 7 → 007, right-align a price column) or align a whole list of lines to a common width for fixed-width tables, ASCII layouts, receipts and logs. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:07.904Z",
        "request_id": "bc42982c-1538-4fae-8f6a-a0d17ab38046"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}