/v1/count
Line statistics
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/lines-api/v1/count" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lines-api/v1/count", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lines-api/v1/count");
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/count",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"lines": 5,
"blank_lines": 1,
"unique_lines": 4,
"duplicate_lines": 1,
"non_blank_lines": 4,
"average_line_length": 4.6,
"longest_line_length": 6,
"shortest_line_length": 0
},
"meta": {
"timestamp": "2026-06-03T09:25:08.346Z",
"request_id": "3ad89680-c455-40fc-a8dc-129b49e03937"
},
"status": "ok",
"message": "Line statistics",
"success": true
}