GET /v1/word-countCount words, chars, sentences
Text Utils lf-text-utils
Counts the words, characters and sentences in a piece of text and estimates how long it takes to read. Analyzes text and returns word count, character count, sentence count, average word length, and reading time.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Text to analyze |
Response Schema
success (boolean): Operation success
word_count (integer): Number of words
char_count (integer): Character count
char_count_no_spaces (integer): Chars without spaces
sentence_count (integer): Sentence count
avg_word_length (number): Average word length
reading_time_min (number): Est. reading minutes
cURL Example
curl 'https://lf-text-utils.laminarforge.dev/v1/word-count?input=The%20quick%20brown%20fox' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-text-utils.laminarforge.dev/v1/word-count'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': 'The quick brown fox'}
response = requests.get(url, headers=headers, params=params)
print(response.json())