Word Count

PAID
By axisofstevil
Updated 4 months ago
5.4/10
Popularity Score
77ms
Latency
98%
Success Rate

Word Count API Documentation

Simple word count API with optional, concurrent support for Microsoft Cognitive Services, Readable.io, and SEO Review Tools.

View API Details
POSTanalyze
POSTanalyze

Analyze a block of text up to 2MB in size

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
X-SeoReviewTools-Target-KeywordSTRING
OPTIONALWhen provided with X-SeoReviewTools-Api-Key, the analysis will include results from SeoReviewTools API
X-SeoReviewTools-Api-KeySTRING
OPTIONALWhen provided with X-SeoReviewTools-Target-Keyword, the analysis will include results from SeoReviewTools API
X-Microsoft-TextAnalytics-2-RegionSTRING
OPTIONALWhen provided with X-Microsoft-TextAnalytics-2-Api-Key, the analysis will include results from Microsoft Cognitive Services Text Analytics v2.0 API
X-Microsoft-TextAnalytics-2-Api-KeySTRING
OPTIONALWhen provided with X-Microsoft-TextAnalytics-2-Region, the analysis will include results from Microsoft Cognitive Services Text Analytics v2.0 API
X-Microsoft-SpellCheck-5-Api-KeySTRING
OPTIONALWhen provided, the analysis will include results from Microsoft Cognitive Services Spell Check v5.0 API
X-Readable-Api-KeySTRING
OPTIONALWhen provided, the analysis will include results from Readable.io API
Required Parameters
textSTRING
REQUIREDBody of text to analyze (2MB max)
Code Snippet
unirest.post("https://word-count-api.p.rapidapi.com/analyze")
.header("X-RapidAPI-Host", "word-count-api.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://word-count-api.p.rapidapi.com/analyze
Request Method: POST
Response Headers
Response Body

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.post("https://word-count-api.p.rapidapi.com/analyze")
.header("X-RapidAPI-Host", "word-count-api.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication