Seo Content Readability Checker
Pricing
$0.01 / actor start
Seo Content Readability Checker
Pricing
$0.01 / actor start
Rating
0.0
(0)
Developer
Eichan Jolly
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Features
Share
Content Readability Checker
What it does
Fetches one HTML page, prefers its <main> section (or [role="main"]), falls back to <article> and then non-boilerplate body text; excludes navigation, header, footer, scripts, styles, forms, and other boilerplate. It calculates word and sentence counts plus Flesch Reading Ease and Flesch–Kincaid Grade using deterministic formulas.
Who it is for
Content editors, SEO specialists, site owners, and writers who want a quick approximate reading-difficulty signal from a public article.
Input
Supply one publicly reachable HTTP/HTTPS URL (no account or API key):
{"url": "https://example.com/"}
This is also the prefilled Store example; it is a real public page. It may change after publication. The only configurable field is url. The Actor will request the target site’s /robots.txt and, if permitted, fetch the page itself.
Output
sourceUrl (string or null), wordCount (integer), sentenceCount (integer), averageWordsPerSentence (number or null), fleschReadingEase (number or null), fleschKincaidGrade (number or null), readingTimeMinutes (integer), status (ok, no_text, or error), error (string or null).
Example actual dataset item, recorded by the included local script-mode smoke test (the 127.0.0.1 address is a disposable test fixture, not the public prefill):
{"sourceUrl": "http://127.0.0.1:43101/page","wordCount": 7,"sentenceCount": 2,"averageWordsPerSentence": 3.5,"fleschReadingEase": 118.68,"fleschKincaidGrade": -2.42,"readingTimeMinutes": 1,"status": "ok","error": null}
The fixture contains navigation, a main section, and footer; only the main section contributes to the single record. See tests/evidence/smoke_dataset.json for all actual smoke-test records, including malformed JSON-LD when applicable.
How to run
On Apify, paste the URL in the input form and run the Actor. The input is loaded in this exact precedence order:
- Parse
ACTOR_INPUT_JSONif set (including when it contains invalid JSON; no silent fallback). - Otherwise use
GET https://api.apify.com/v2/key-value-stores/{APIFY_DEFAULT_KEY_VALUE_STORE_ID}/records/INPUTwithAuthorization: Bearer {APIFY_TOKEN}when the default key-value store ID exists. - Otherwise read
./storage/key_value_stores/default/INPUT.jsonrelative to the process working directory.
On Apify, results are appended to the default dataset by an authorized REST API POST. Locally, one JSON file per item appears under storage/datasets/default/.
To run locally from this Actor folder:
export ACTOR_INPUT_JSON='{"url": "https://example.com/"}'python src/main.py
Or put the same JSON in storage/key_value_stores/default/INPUT.json and run python src/main.py with ACTOR_INPUT_JSON unset. Only Python 3.12+ standard-library modules are required.
To rerun verifiable offline tests:
python -m unittest discover -s tests -p test_actor.py -vpython tests/run_smoke.py
The smoke runner launches a local HTTP fixture and executes python src/main.py as a subprocess with a valid ACTOR_INPUT_JSON. It writes the full terminal output, valid input, and produced dataset records to tests/evidence/. ACTOR_TEST_ALLOW_LOOPBACK=1 is only set by this local test runner, never by default.
Limits and error handling
Readability scores are estimates designed for English text, not validated linguistic measurements. Word tokens use an ASCII-English word/number matcher; syllables are estimated from vowel groups and a trailing-e heuristic. Sentence segmentation is punctuation-based and can miscount abbreviations. Text that is added with JavaScript is not analyzed. Flesch scores may naturally exceed 100 or fall below zero and grade values can be negative for exceptionally short/simple text. When there is no extractable text, status is no_text with null scores. Does not assess meaning, factual accuracy, or content quality.
- One page per run. No general crawling, search-result scraping, login, or third-party Python packages.
- Two HTTP requests maximum in a normal run (robots.txt and the page), with at most three same-host redirects for each request. The page is limited to 2 MB; robots.txt is limited to 200 KB; each request has a 12-second timeout.
- By default, local/private/reserved IP addresses and nonstandard ports are rejected; cross-host redirects are rejected. The actor checks DNS addresses but is not a hardened defence against DNS rebinding on hostile hostnames. Use only public sites you are authorized to inspect.
- Robots.txt opt-outs are respected; missing robots.txt (404/410) is allowed. If the page cannot be fetched, or input is invalid, the Actor writes a stable
errordataset record and prints a short message, not a traceback. A failed run may exit nonzero even if its error item is written. - Web content, robots policies, and site availability change. The public example is not part of the offline unit/smoke fixture, so cloud execution must be checked after deploying.
Suggested Store categories and pricing
Categories: SEO tools, Content marketing, Marketing.
Suggested $0.01 per run. This is only a recommendation; no monetization or billing is configured.
Deployment state
Source-only deliverable, not published. No Apify cloud runs or billing configuration have been performed.