# Readability Analyzer — Flesch, Grade Level & On-Page SEO (`alauddinburki/readability-analyzer`) Actor

Readability for any URLs or drafts: Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, SMOG, Coleman-Liau, ARI, reading time, long sentences, passive voice, keywords and density, plus title, meta, H1 and thin-content checks.

- **URL**: https://apify.com/alauddinburki/readability-analyzer.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Readability Analyzer — Flesch, Grade Level & On-Page SEO

How easy is your content to read, and is the page set up right? For any **URLs** (main content only — navigation,
headers and footers removed) or **pasted drafts**, this returns:

- **Six readability scores:** Flesch Reading Ease, Flesch-Kincaid grade, Gunning Fog, SMOG, Coleman-Liau, ARI — with
  a plain reading level (easy … very difficult) and reading time;
- **Style:** words per sentence, share of long sentences (over 25 words), estimated passive voice;
- **Keywords:** the top 15 with density, and your **target keyword**'s count, density and whether it appears in the
  first 100 words;
- **On-page checks (URLs):** title and meta description length, H1 count, headings, thin content.

The formulas are calibrated for English; other languages are detected and flagged instead of given misleading scores.
Texts under 30 words are not scored. robots.txt is respected.

### Output

| Field | Example |
|---|---|
| `source`, `words`, `sentences`, `readingTimeMin` | https://www.gov.uk/browse/driving · 334 · … · 1.4 |
| `fleschReadingEase`, `fleschKincaidGrade`, `gunningFog`, `smog`, `colemanLiau`, `automatedReadabilityIndex` | 54.7 · 7.7 · … |
| `readingLevel` | fairly difficult |
| `longSentencesPct`, `passiveSentencesPct`, `avgSentenceWords` | |
| `topKeywords`, `targetKeyword` | `{ keyword, count, density, inFirst100Words }` |
| `title`, `metaDescription`, `h1Count`, `headings` | |
| `issues` | "meta description is 244 characters (aim for 70–160)", "2 H1 headings (use one)" |

### Pricing

Pay per result: **$0.0005 per row**. Plus a start fee of $0.0001 per GB of allocated memory (minimum one event).
One row is one URL or text.

### Verification status (2026-11-11, local)

- ✅ 5 unit tests: formulas against hand calculation, the syllable heuristic on a word list (a suffix bug found and
  fixed: "created" was 1 syllable), easy vs hard text, abbreviations, keyword density, passive voice, non-English
  detection, HTML extraction without boilerplate.
- ✅ Live: GOV.UK, Wikipedia "Readability", PEP 8 and a short draft → 4 rows, 0 schema mismatches; real on-page issues
  found (PEP 8: 2 H1s and a 244-character meta description).

# Actor input Schema

## `urls` (type: `array`):

Pages to analyse (main content only; navigation and footers removed).

## `texts` (type: `array`):

Drafts to analyse before publishing.

## `keyword` (type: `string`):

Counted in every page/text: occurrences, density, and whether it appears in the first 100 words.

## Actor input object example

```json
{
  "urls": [
    "https://www.gov.uk/browse/driving",
    "https://en.wikipedia.org/wiki/Readability"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Every row of the run, in the dataset (fields as listed under Output in the README).

## `summary` (type: `string`):

Counts, items not found and other notes for the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.gov.uk/browse/driving",
        "https://en.wikipedia.org/wiki/Readability"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/readability-analyzer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://www.gov.uk/browse/driving",
        "https://en.wikipedia.org/wiki/Readability",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/readability-analyzer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.gov.uk/browse/driving",
    "https://en.wikipedia.org/wiki/Readability"
  ]
}' |
apify call alauddinburki/readability-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alauddinburki/readability-analyzer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hFS3lQkYeFBUxJCyC/builds/R0kaxHFMt0xgBEeGg/openapi.json
