RapidAPI logo

Text Readability

FREEMIUM
By translated
Updated 4 months ago
Education
2.5/10
Popularity Score
2580ms
Latency
100%
Success Rate

Text Readability API Documentation

This API helps you understand the text's complexity. Phrase length influence the ease of reading and understanding of a given text. Short words are usually more common (Zipf's law). Short sentences require less abstraction ability to understand. The readability analysis could be useful to make a text better, augmenting its accessibility.

View API Details
GET/api.php
GET/api.php
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
languageSTRING
REQUIREDen,fr or it
textSTRING
REQUIREDText max length is 1000 characters.
Code Snippet
unirest.get("https://translated-text-readability-v1.p.rapidapi.com/api.php?language=en&text=The+very+phrase+contained+herein%2C+having+rare+complexity%2C+may+potentially+be%2C+without+prior+preparation%2C+implausibly+difficult+to+parse+in+as+much+as+it+carries%2C+at+the+level+of+the+text+itself%2C+an+unnecessarily%2C+albeit+notably%2C+low+readability+level.")
.header("X-RapidAPI-Host", "translated-text-readability-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://translated-text-readability-v1.p.rapidapi.com/api.php
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://translated-text-readability-v1.p.rapidapi.com/api.php?language=en&text=The+very+phrase+contained+herein%2C+having+rare+complexity%2C+may+potentially+be%2C+without+prior+preparation%2C+implausibly+difficult+to+parse+in+as+much+as+it+carries%2C+at+the+level+of+the+text+itself%2C+an+unnecessarily%2C+albeit+notably%2C+low+readability+level.")
.header("X-RapidAPI-Host", "translated-text-readability-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication