# Website Readability API

> Website Readability analyzes live web pages to score their reading difficulty and educational grade level. It returns Flesch Reading Ease, Flesch-Kincaid grade level, word count, sentence count, and estimated reading time.

**Endpoint:** `POST https://api.apiverve.com/v1/websitereadability`  
**Category:** Text Processing  
**Cost:** 25 credits per call  
**Canonical page:** https://apiverve.com/marketplace/websitereadability

## Overview

Website Readability works by fetching the page, extracting its readable text and scoring it across standard readability indices (Flesch, Gunning Fog, SMOG, Coleman-Liau, ARI, Dale-Chall). It also reports the word and sentence counts, an estimated reading time, an averaged grade level and the target reader audience so you can judge a page's accessibility at a glance.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/websitereadability" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the web page to analyze. url |

## Response fields

- `fleschReadingEase` — number · Flesch Reading Ease score (0-100, higher is easier)
- `fleschReadingEaseText` — string · Descriptive text interpretation of Flesch Reading Ease
- `fleschKincaidGrade` — number · Flesch-Kincaid Grade Level (US school grade equivalency)
- `gunningFog` — number · Gunning Fog Index (years of education needed to understand) · (premium)
- `colemanLiauIndex` — number · Coleman-Liau Index (US grade level based on character count) · (premium)
- `smogIndex` — number · SMOG Index (years of education to understand text) · (premium)
- `automatedReadabilityIndex` — number · Automated Readability Index (US grade level estimate) · (premium)
- `daleChallReadabilityScore` — number · Dale-Chall Readability Score (educational level) · (premium)
- `daleChallReadabilityScoreText` — string · Descriptive interpretation of Dale-Chall Readability Score · (premium)
- `wordCount` — number · Number of words in the page's whole readable text, even when the scores use a sample
- `sentenceCount` — number · Number of sentences in the page's whole readable text; each heading, list item and paragraph counts as its own sentence
- `readingTimeMinutes` — number · Estimated reading time in minutes at an average adult reading speed of 238 words per minute, from the whole page's word count
- `averageGradeLevel` — number · Single averaged US school grade level digested from the grade-based indices (Flesch-Kincaid, Gunning Fog, Coleman-Liau, SMOG, ARI) — the one number that summarizes how much education a reader needs · (premium)
- `targetAudience` — string · Reader band mapped from the average grade level: elementary, middle school, high school, college, post-graduate or general public · (premium)
- `url` — string · The analyzed URL from the request

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "fleschReadingEase": 24.34,
    "fleschReadingEaseText": "Very Confusing",
    "fleschKincaidGrade": 19.3,
    "gunningFog": 19.62,
    "colemanLiauIndex": 13.12,
    "smogIndex": 14.37,
    "automatedReadabilityIndex": 22.6,
    "daleChallReadabilityScore": 17,
    "daleChallReadabilityScoreText": "average 13th to 15th-grade (college) student",
    "wordCount": 634,
    "sentenceCount": 29,
    "readingTimeMinutes": 3,
    "averageGradeLevel": 17.8,
    "targetAudience": "post-graduate",
    "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"
  }
}
```

## Use cases

- **Content Management Audits** — CMS plugins check published articles against Flesch-Kincaid grade scores to keep drafts within target reading levels before publication.
- **Public Notice Compliance** — When updating government web portals, compliance teams verify that policy notices maintain high Flesch Reading Ease scores for clear public comprehension.
- **EdTech Article Recommendation** — Educational platforms inspect external articles by URL to pair students with texts matching their current reading grade and estimated reading time.
- **Search Content Optimization** — Flag overly dense blog posts during site audits by tracking reading ease scores and sentence counts against top-ranking search competitors.

## SDKs

- **npm** — `npm install @apiverve/websitereadability` (https://www.npmjs.com/package/@apiverve/websitereadability)
- **PyPI** — `pip install apiverve-websitereadability` (https://pypi.org/project/apiverve-websitereadability/)
- **NuGet** — `dotnet add package APIVerve.API.WebsiteReadability` (https://www.nuget.org/packages/APIVerve.API.WebsiteReadability)
- **Source** — https://github.com/apiverve/websitereadability-api

## More

- Full reference: https://docs.apiverve.com/ref/websitereadability
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
