RapidAPI logo

Bestquotes

FREEMIUM
By qvoca
Updated 13 days ago
Education
8.4/10
Popularity Score
320ms
Latency
100%
Success Rate

Bestquotes API Documentation

The Bestquotes API is a simple API, which contains a huge database of quotations by famous authors. One request - one random quote.You can easily integrate this API into your application.

View API Details
GET/quote
GET/quote
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
authorSTRING
OPTIONALname of the author quotes
genreSTRING
OPTIONALgenre quotes
messageSTRING
OPTIONALtext quotes
message_lenNUMBER
OPTIONALthe length of the letters quotes
Code Snippet
unirest.get("https://qvoca-bestquotes-v1.p.rapidapi.com/quote")
.header("X-RapidAPI-Host", "qvoca-bestquotes-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://qvoca-bestquotes-v1.p.rapidapi.com/quote
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://qvoca-bestquotes-v1.p.rapidapi.com/quote")
.header("X-RapidAPI-Host", "qvoca-bestquotes-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