---
title: Readability Scores Documents API
slug: score-readability
url: https://apyhub.com/apyhub/service/score-readability
provider: ApyHub
categories: [Model Kit, Retrieval Kit]
tags: [documents, score, readability]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 2
atoms: 250
mcp: true
alias: readability-scores-documents
---

# Readability Scores Documents API

Get readability scores for PDF, DOC and DOCX files or any web page URL, with Flesch Reading Ease or German Wiener Sachtextformel. Try it free.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/score-readability/file` | What it does Uploads a document file and returns readability metrics for the extracted text. The re… | 250 |
| POST | `https://api.eu.apyhub.com/apyhub/score-readability/file_url` | What it does Scores the readability of a publicly accessible web page fetched from the provided fil… | 250 |

## Endpoint reference

### Score readability of an uploaded document

`POST https://api.eu.apyhub.com/apyhub/score-readability/file` · 250 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | Document file to analyse (PDF, DOC, or DOCX). |
| `language` | body | string | no | One of: english, german. Default: `english`. |

#### Quickstart

Upload a document file to check its readability score.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/score-readability/file" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.pdf" \
  -F "language=english"
```

#### What you'll get back

Returns a JSON object with a `data` object. `data.stats` contains document metrics like word and sentence counts, and `data.flesh_kincaid_reading_ease` contains the readability results.

```json
{
  "data": {
    "stats": {
      "words": 95,
      "sentences": 8,
      "characters": 512,
      "paragraphs": 2,
      "reading_time": 6.49,
      "speaking_time": 38,
      "avg_word_length": 5.39,
      "avg_sentence_length": 11.88,
      "avg_paragraph_length": 4
    },
    "flesh_kincaid_reading_ease": {
      "class": "8th & 9th grade",
      "label": false,
      "level": 6.49,
      "score": 65.74,
      "class_label": "Plain English. Easily understood by 13- to 15-year-old students."
    }
  }
}
```

### Score readability of a web page

`POST https://api.eu.apyhub.com/apyhub/score-readability/file_url` · 250 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file_url` | body | string (uri) | yes | Publicly accessible web page URL. Example: `https://assets.apyhub.com/samples/sample.html`. |
| `language` | body | string | no | One of: english, german. Default: `english`. |

#### Quickstart

Check the readability of a public webpage by sending its URL.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/score-readability/file_url" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "file_url": "https://assets.apyhub.com/samples/sample.html"
  }'
```

#### What you'll get back

Returns a JSON object with a `data` object. Inside `data`, the response includes `stats` with text counts and timing metrics, and either `flesh_kincaid_reading_ease` or `wiener_sachtextformel` depending on the response variant.

```json
{
  "data": {
    "stats": {
      "words": 95,
      "sentences": 8,
      "characters": 512,
      "paragraphs": 2,
      "reading_time": 6.49,
      "speaking_time": 38,
      "avg_word_length": 5.39,
      "avg_sentence_length": 11.88,
      "avg_paragraph_length": 4
    },
    "flesh_kincaid_reading_ease": {
      "class": "8th & 9th grade",
      "label": false,
      "level": 6.49,
      "score": 65.74,
      "class_label": "Plain English. Easily understood by 13- to 15-year-old students."
    }
  }
}
```

## About

## What it does

The Readability Scores Documents API measures how easy a document or web page is to read. Upload a PDF or Word file, or send the URL of a web page, and get back a standard readability score and reading level together with statistics like word count, sentence length and reading time.

There are two endpoints. `POST /file` takes a PDF, DOC or DOCX upload of up to 100 MB, and `POST /file_url` takes the address of a public web page. Both accept an optional `language`: `english`, the default, scores the text with the Flesch Reading Ease formula, and `german` uses the Wiener Sachtextformel, the standard readability formula for German. The API extracts the text for you, so there is no need to convert the file or strip the HTML first.

The result includes the `score`, the grade `class` it falls into, such as "8th & 9th grade", a plain-language `class_label` like "Plain English. Easily understood by 13- to 15-year-old students", and a `label` showing whether the text meets a standard readability threshold. The `stats` object adds `words`, `sentences`, `characters` and `paragraphs`, the average length of words, sentences and paragraphs, and estimated `reading_time` and `speaking_time` in seconds. It gives you readability statistics similar to the ones Microsoft Word shows, without anyone having to open the file.

Common uses include checking contracts, policies and terms against plain-language requirements, reviewing manuals and help center pages before they are published, auditing the readability of every page on a website, scoring reports and proposals against a house style, and comparing a competitor's page with your own.

If you already have the text as a string, use the [Readability Score API](https://apyhub.com/apyhub/service/score-readability-of-plain-text), which scores plain text directly. To pull the main article out of a web page before scoring it, use [Extract Readable Content from HTML](https://apyhub.com/dosvak/service/extract-html-readable-content), and for simpler word and sentence counts, try the [Basic Text Analysis API](https://apyhub.com/creightonnick0/service/analyze-text).

You can try it right here in the playground. Start for free with 5 API calls a day, no card required, and score your own document before you commit.

The API is also available through [ApyHub MCP](https://apyhub.com/mcp), so AI agents can check the readability of a document or page directly as part of a content review.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/score-readability
