Μετάβαση στο περιεχόμενο
GET /v1/meta

Spec

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/lines-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}