RapidAPI logo

Sign Up

Log In

Random Famous Quotes

FREEMIUM
By andruxnet
Updated 3 months ago
Data
9.8/10
Popularity Score
265ms
Latency
99%
Success Rate

Random Famous Quotes API Documentation

Get a random quote in JSON format.

Current categories are:

  • famous
  • movies
View API Details
My group
POSTPOST endpoint
GETGET endpoint
POSTPOST endpoint

Post endpoint for quotes by famous people or from popular movies

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
catSTRING
REQUIREDcan be either "movies" or "famous"
Optional Parameters
countNUMBER
OPTIONALNumber of quotes to return. If omitted, a single quote will be returned. Max number of quotes is 10
Request Snippet
unirest.post("https://andruxnet-random-famous-quotes.p.rapidapi.com/?count=10&cat=movies")
.header("X-RapidAPI-Host", "andruxnet-random-famous-quotes.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
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.post("https://andruxnet-random-famous-quotes.p.rapidapi.com/?count=10&cat=movies")
.header("X-RapidAPI-Host", "andruxnet-random-famous-quotes.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