Text stats
Try it interactively →POST /api/text-statsCompute text statistics: word count, line count, character count, paragraph count, and estimated reading time at 200 wpm.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| text* | string | — | Plain-text input. |
Response
Modes: json. Cache: yes (24h TTL).
Code samples
Built from the lorem example.
curl -X POST https://api.xtract.bot/api/text-stats \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
-H "X-Api-Key: $XTRACT_API_KEY" \
-d '{
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
}'