Readability scores (Flesch reading ease, grade level) and reading time

Calculates Flesch reading ease, Flesch-Kincaid grade level and Gunning Fog index, a plain-English difficulty level, and estimated reading and speaking time.

Request

POSThttps://text-analysis.p.apihiver.com/v1/readability

JSON object. Required: text.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://text-analysis.p.apihiver.com/v1/readability \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "text": "APIHiver is a marketplace where developers discover, test and subscribe to APIs. Providers publish their APIs with documentation and pricing plans. The platform handles keys, billing and analytics so that developers can focus on building great products. Many teams love how simple it is."
8}'

Readability scores (Flesch reading ease, grade level) and reading time: Text Analysis API reference

Calculates Flesch reading ease, Flesch-Kincaid grade level and Gunning Fog index, a plain-English difficulty level, and estimated reading and speaking time. This endpoint is part of the Text Analysis API: Sentiment, keywords, extractive summaries, readability scores and text statistics for English text — one simple JSON call each.

Example response (200, application/json)

Success.

1{
2  "level": "difficult",
3  "gunning_fog": 11.7,
4  "flesch_reading_ease": 43.8,
5  "flesch_kincaid_grade": 9.9,
6  "reading_time_seconds": 11,
7  "speaking_time_seconds": 18
8}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "text: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.