/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}