Random Word

FREE
By xkubist
Updated 5 months ago
Education
7.9/10
Popularity Score
246ms
Latency
-
Success Rate

Random Word API Documentation

The application generating random words is very useful not only as a tool for various parlor games but it is also essential for the authors of articles or literary works. The application is developed in cooperation with nlp centre. According to parameters entered by a user it returns a random word as a text.

View API Details
GET/run.cgi
GET/run.cgi
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDdescription
probability_selectionSTRING
REQUIRED
length_selectionSTRING
REQUIRED
word_selectionSTRING
REQUIRED
language_selectionSTRING
REQUIRED
Code Snippet
unirest.get("https://xkubist-random-word-v1.p.rapidapi.com/run.cgi")
.header("X-RapidAPI-Host", "xkubist-random-word-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("probability_selection", "")
.header("length_selection", "")
.header("word_selection", "")
.header("language_selection", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://xkubist-random-word-v1.p.rapidapi.com/run.cgi
Request Method: GET
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.get("https://xkubist-random-word-v1.p.rapidapi.com/run.cgi")
.header("X-RapidAPI-Host", "xkubist-random-word-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("probability_selection", "")
.header("length_selection", "")
.header("word_selection", "")
.header("language_selection", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication