v0.4.1
Menu

#/tools/text/word-count

Counts words, characters, sentences, paragraphs and estimates reading time for a given string.

#Request

GET https://api.synz.xyz/tools/text/word-count

#Parameters

Name Type Description
text string Required. The string to analyse.

#Response

{
  "words": 12,
  "characters": 68,
  "characters_no_spaces": 57,
  "sentences": 2,
  "paragraphs": 1,
  "reading_time_seconds": 4
}

#Fields

Field Type Description
words number Total word count
characters number Total character count including spaces
characters_no_spaces number Character count excluding spaces
sentences number Sentence count, split on . ! ?
paragraphs number Paragraph count, split on newlines
reading_time_seconds number Estimated reading time in seconds at 200 words per minute

#Examples

curl "https://api.synz.xyz/tools/text/word-count?text=Hello world. This is a test."

#Errors

Status Description
400 Missing text parameter