Score Text API

Score the readability, skimmability, interestingness, and style of a text. The readability score is based on the average length of the sentences and the average length of the words in the text. The text is scored with multiple readability scores such as Flesch, Smog, ARI, LIX, Kincaid, Fog, and Coleman Liau. Additionally, information such as the estimated reading time in seconds is returned.

GET
https://api.apileague.com/score-text
Example Request and Response
GET
https://api.apileague.com/{{ examples.getScoreText }}
{
    "number_of_words": 7,
    "number_of_sentences": 1,
    "readability": {
        "mainscores": {
            "total": 10,
            "total_possible": 10
        },
        "subscores": {
            "forcast": -0.99,
            "flesch": 78.873,
            "smog": 8.842,
            "ari": 0.237,
            "lix": -0.99,
            "kincaid": 3.997,
            "fog": 8.514,
            "coleman_liau": 2.633,
            "reading_time_seconds": 1
        }
    },
    "skimmability": {
        "mainscores": {
            "total": 3.076923076923077,
            "total_possible": 10
        },
        "subscores": {
            "highlighted_word_ratio_score": [
                0,
                2
            ],
            "bullet_point_ratio_score": [
                0,
                2
            ],
            "paragraph_headline_ratio_score": [
                0,
                2
            ],
            "image_score": [
                0,
                3
            ],
            "video_score": [
                0,
                1
            ],
            "paragraph_score": [
                4,
                3
            ]
        }
    },
    "interestingness": {
        "mainscores": {
            "total": 3.5714285714285716,
            "total_possible": 10
        },
        "subscores": {
            "google_hits_score": [
                4,
                4
            ],
            "link_score": [
                0,
                2
            ],
            "quote_score": [
                0,
                1
            ],
            "title_rating_score": [
                1,
                4
            ],
            "length_score": [
                0,
                2
            ]
        }
    },
    "style": {
        "mainscores": {
            "total": 10,
            "total_possible": 10
        },
        "subscores": {
            "abbreviation_score": [
                3,
                3
            ],
            "style_score": [
                5,
                5
            ],
            "spelling_score": [
                5,
                5
            ]
        }
    },
    "total_score": 6.662087912087912
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

What aspects of the text are scored?

The API evaluates readability, skimmability (how easy it is to scan), interestingness, and writing style.

How is "interestingness" measured?

Interestingness is estimated based on factors like vocabulary richness, use of quotes, links, and other engaging elements.

Can it help improve SEO?

Yes, by improving readability and engagement metrics, you can create content that is more likely to keep visitors on your page, which is a positive signal for SEO.

How is the Score Text API different from the Detect Sentiment API?

The Score Text API evaluates the quality, structure, and engagement potential of the text, whereas the Detect Sentiment API analyzes the emotional tone (positive/negative) of the content.

Questions? Need Help? Ask Away