Vai al contenuto
GET /v1/stats

Compute text statistics

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/text-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/text-api/v1/stats" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/text-api/v1/stats", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/text-api/v1/stats");
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/text-api/v1/stats",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "lines": 1,
        "words": 6,
        "sentences": 2,
        "characters": 28,
        "paragraphs": 1,
        "avg_word_length": 3.83,
        "characters_no_spaces": 23,
        "reading_time_minutes": 0.03
    },
    "meta": {
        "timestamp": "2026-05-30T09:00:25.912Z",
        "request_id": "17db5001-34d3-4f96-9579-8ddcf3d205f7"
    },
    "status": "ok",
    "message": "Stats computed",
    "success": true
}