RapidAPI logo

Sign Up

Log In

Fortunecow

FREE
By thibaultcha
Updated 3 months ago
Other
-/10
Popularity Score
-
Latency
-
Success Rate

Fortunecow API Documentation

A fun API combining cowsay and fortune cookies.

View API Details
GETSay random fortune
GETSay text
GETThink text
GETRandom Fortunecow
GETList cows templates
GETList cows faces
GETSay random fortune

The cow says a random fortune cookie

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
cowSTRING
OPTIONALUse a different cow template (see "List cows")
faceSTRING
OPTIONALUse a different face template (see "List faces")
Request Snippet
unirest.get("https://thibaultcha-fortunecow-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "thibaultcha-fortunecow-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
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://thibaultcha-fortunecow-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "thibaultcha-fortunecow-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