/v1/count
Line statistics
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/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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}