/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}