Readability score API – Content Input
API endpoint → https://api.seoreviewtools.com/readability-score/?content=1
Price: 1 credits per request
Description: Quickly calculate the Flesch-Kincaid readability score for any URL
Query string parameters
Name | Parameter | Description |
---|---|---|
API key | &key= | Your private API key |
Response elements
Name | Description |
---|---|
Flesch Kincaid Reading Ease > Score | The readability score calculated with the Flesch Kincaid Reading Ease formula |
Flesch Kincaid Reading Ease > grade level | The corresponding grade level |
Flesch Kincaid Reading Ease > label | True or False (string) |
Flesch Kincaid Reading Ease > class | This class can be used to quickly style the output |
Paragraphs | The total number of extracted paragraphs |
Sentences | The total number of extracted sentences |
Words | The total number of extracted words |
Characters | The total number of extracted characters |
Reading time | The estimated reading time |
Speaking time | The estimated speaking time |
avg. word length | Calculated in characters |
avg. sentence length | Calculated in words |
avg. paragraph length | Calculated in sentences |
PHP code example
<?php
/*
API documentation for SEO Review Tools.
API info: https://www.seoreviewtools.com/seo-api/
API documentation: https://api.seoreviewtools.com/documentation/
LinkedIn: https://www.linkedin.com/company/seo-review-tools
*/
function curlFunction ($toolRequestUrl, $data){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $toolRequestUrl);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $data);
$html = curl_exec($ch);
$curlInfo = curl_getinfo($ch);
return($html);
}
$data = "
<p>Google Search is a fully-automated search engine that uses software known as web crawlers that explore the web regularly to find pages to add to our index. In fact, the vast majority of pages listed in our results aren't manually submitted for inclusion, but are found and added automatically when our web crawlers explore the web. This document explains the stages of how Search works in the context of your website. Having this base knowledge can help you fix crawling issues, get your pages indexed, and learn how to optimize how your site appears in Google Search. </p>
<h2>Crawling</h2>
<p>The first stage is finding out what pages exist on the web. There isn't a central registry of all web pages, so Google must constantly look for new and updated pages and add them to its list of known pages. This process is called 'URL discovery'. Some pages are known because Google has already visited them. Other pages are discovered when Google follows a link from a known page to a new page: for example, a hub page, such as a category page, links to a new blog post. Still other pages are discovered when you submit a list of pages (a sitemap) for Google to crawl. </p>
";
$data = stripcslashes(trim($data));
// Encode data to JSON
$data = json_encode($data);
// API key
$apiKey = "YOUR API KEY";
$toolRequestUrl = "https://api.seoreviewtools.com/readability-score/?content=1&key=".$apiKey;
$seoDataJson = curlFunction($toolRequestUrl, $data);
header('Content-type: application/json');
echo($seoDataJson);
?>
JSON response example
Ready to start testing the Readability score API – Content Input endpoint? Get your API Key →