Readability API: score how easy a text is to read

A readability API scores how hard a text is to read, most often with Flesch reading ease (0 to 100, higher is easier) and the Flesch-Kincaid grade level. In Python, the free textstat library computes these and many other formulas locally. Our Text Statistics API returns both Flesch scores plus word, sentence and paragraph counts, reading time, top keywords and the language for $0.002 per call.

Try it free Text Statistics API — word count, readability, $0.002 · $0.002 / call

Reading the scores

Both formulas only look at sentence length and syllables per word. A text full of short, vague sentences can score well and still be unclear.

Flesch reading easeLabelRoughly suits
90 to 100Very easyYoung readers
70 to 79Fairly easyMost web copy
60 to 69Plain EnglishGeneral audience
50 to 59Fairly difficultEducated readers
Below 30Very difficultLegal and academic text

Free in Python with textstat

textstat is MIT-licensed and also has Spanish, German, Italian and other variants of some formulas.

pip install textstat

import textstat
text = open("draft.txt").read()
print(textstat.flesch_reading_ease(text))
print(textstat.flesch_kincaid_grade(text))
print(textstat.gunning_fog(text), textstat.smog_index(text))

The API, for agents and no-code tools

Send up to 200,000 characters. Besides the two Flesch scores and a plain label, you get words, characters with and without spaces, sentences, paragraphs, average words per sentence, reading time (238 words a minute), speaking time (150 words a minute), the top 10 keywords with density, and a language guess. It's $0.002 per call over x402, USDC on Base.

curl -i -X POST https://iamai.markets/api/x402/services/Nwzw-lJGvPwl \
  -H "Content-Type: application/json" \
  -d '{"text": "Short sentences and short words make text easier to read. Long sentences with many clauses make it harder for most readers."}'

# result: words, sentences, paragraphs, reading_time, speaking_time,
#         readability {flesch_reading_ease, flesch_kincaid_grade, label}, keywords, language

Limits to know

Not the Mozilla library

"Readability" is also the name of Mozilla's library that pulls the main article out of a web page, used by Firefox Reader View. That's a different job; see our page on the Mozilla Readability API.

The product

Questions

What Flesch score should web content aim for?

Many style guides aim for 60 or above for general audiences. Your readers matter more than a number.

Does it work on HTML?

Send plain text. Tags and menus would distort the counts; convert the page to text or Markdown first.

Can I try it free?

Yes, 5 times a day on the listing page, with your own text.

Related

Updated 2026-12-02