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/indent-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/indent-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/indent-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/indent-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/indent-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": "Indent API",
        "notes": "Operates purely on leading/whitespace structure — it does not trim or reflow text (use a lines or word-wrap API) and does not parse code grammar (use a code formatter). CRLF line endings are preserved. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/indent",
                "params": {
                    "char": "'space' or 'tab' (default space)",
                    "text": "the text (required)",
                    "amount": "number of units (default 4)",
                    "prefix": "custom prefix string (overrides amount/char)",
                    "blank_lines": "true to also indent empty lines (default false)"
                },
                "returns": "the indented text"
            },
            {
                "path": "/v1/dedent",
                "params": {
                    "text": "the text (required)"
                },
                "returns": "the dedented text plus the common prefix that was removed"
            },
            {
                "path": "/v1/tabs",
                "params": {
                    "mode": "'expand' (tabs→spaces) or 'collapse' (spaces→tabs)",
                    "text": "the text (required)",
                    "tab_size": "spaces per tab stop (default 4)",
                    "leading_only": "only convert leading whitespace (default true)"
                },
                "returns": "the converted text"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Indent, dedent and convert tabs↔spaces on plain text, line by line. Add a fixed indentation (spaces or tabs, or any custom prefix) to every line; remove the longest common leading whitespace (Python-style dedent) to flatten a block; or convert between tabs and spaces honouring tab stops. Works on any text without parsing it as code. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:07.579Z",
        "request_id": "fd43bdd5-1e0a-4f8b-81a2-70cfed3e2577"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}