/v1/meta
Spec
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/lines-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lines-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lines-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/lines-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": "Lines API",
"notes": "Operations are applied left to right, e.g. operations=trim,remove_blank,unique,sort. Sorting is natural (numeric-aware). Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/transform",
"params": {
"text": "the text (required)",
"order": "asc|desc (for sort)",
"operations": "comma list: trim,remove_blank,unique,sort,reverse,number (required)",
"number_start": "for number",
"case_insensitive": "for sort/unique",
"number_separator": "for number (default '. ')"
},
"returns": "the transformed text"
},
{
"path": "/v1/count",
"params": {
"text": "the text (required)"
},
"returns": "line statistics (total, blank, unique, lengths)"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Operate on text line by line — sort (natural, asc/desc, case-insensitive), remove duplicate lines, reverse the order, number the lines, trim whitespace and drop blank lines. Operations chain in order, so you can trim, drop blanks, dedupe and sort in one call. A count endpoint reports line statistics. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T09:25:08.544Z",
"request_id": "5f97e8c5-e288-4e88-87f0-6d06627a258c"
},
"status": "ok",
"message": "Meta",
"success": true
}