Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/lines-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}