Skip to content

Text Analyzer


Analizes a given Text

POST /api/text/text-analyzer
Terminal window
https://api.cookie-api.com/api/text/text-analyzer


{
"text": "The text to be analyzed (Max. 10.000 Characters)",
}

curl --location 'https://api.cookie-api.com/api/text/text-analyzer' \
--header 'Authorization: API_Key' \
--header 'Content-Type: application/json' \
--data '{
"text": "The kitchen is alive with warmth as cookies bake in the oven, filling the air with a deliciously sweet aroma. Laughter echoes as golden treats, still soft and gooey, are pulled from the tray. Each bite is a perfect balance of crispy edges and melty chocolate chips, a reminder of simple, joyful moments. The cookie jar is soon brimming, each one a little piece of happiness. With every shared smile and cookie, the day feels brighter, sweeter, and filled with love that lingers long after the last crumb is gone."
}'

Responses
{
"average_word_length": 4.7,
"charachter_count": 512,
"digits_count": 0,
"letter_counts": {
"a": 32,
"b": 6,
"c": 16,
"d": 12,
"e": 59,
"f": 11,
"g": 10,
"h": 23,
"i": 34,
"j": 2,
"k": 5,
"l": 26,
"m": 12,
"n": 19,
"o": 28,
"p": 8,
"q": 0,
"r": 22,
"s": 27,
"t": 33,
"u": 5,
"v": 4,
"w": 7,
"x": 0,
"y": 8,
"z": 0
},
"longest_word": "deliciously",
"lowercase_count": 404,
"punctuation_details": {
"!": 0,
"\"": 0,
"#": 0,
"$": 0,
"%": 0,
"&": 0,
"'": 0,
"(": 0,
")": 0,
"*": 0,
"+": 0,
",": 9,
"-": 0,
".": 5,
"/": 0,
":": 0,
";": 0,
"<": 0,
"=": 0,
">": 0,
"?": 0,
"@": 0,
"[": 0,
"\\": 0,
"]": 0,
"^": 0,
"_": 0,
"`": 0,
"{": 0,
"|": 0,
"}": 0,
"~": 0
},
"shortest_word": "a",
"skipped_characters": 14,
"total_characters": 512,
"total_sentences": 5,
"total_words": 90,
"unique_words_count": 71,
"uppercase_count": 5,
"whitespace_count": 89
}