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 ease | Label | Roughly suits |
|---|---|---|
| 90 to 100 | Very easy | Young readers |
| 70 to 79 | Fairly easy | Most web copy |
| 60 to 69 | Plain English | General audience |
| 50 to 59 | Fairly difficult | Educated readers |
| Below 30 | Very difficult | Legal 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
- Scores are English formulas, so they're left out when the text is detected as another language. Counts and keywords still work.
- Syllables are estimated by rule, as in most tools, so long or unusual words can be off by one.
- Only Flesch scores; for SMOG, Gunning fog or Dale-Chall, use textstat.
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
