xtract.bot
POST /api/text-stats

Compute text statistics: word count, line count, character count, paragraph count, and estimated reading time at 200 wpm.

Returns basic statistics for a text input: - Characters (with and without whitespace). - Words (whitespace-separated tokens). - Lines (CR / LF terminated). - Paragraphs (blank-line separated). - Sentences (terminator-separated, with simple abbreviation awareness). - Reading time at 200 wpm. Useful for blog-post metadata, tweet-length checks, and editorial content workflows.

Inputs

NameTypeDefaultDescription
text*stringPlain-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."
}'