RapidAPI logo

Quotes

FREEMIUM
By yusufnb
Updated 5 months ago
Communication
7.3/10
Popularity Score
137ms
Latency
100%
Success Rate

Quotes API Documentation

This is a simple API for use with bot integration or to create wordpress or other CMS plugins to show relevant quotes and quotations to display to the user.

Coming soon will be an ability to curate quotes and even add your own, that will be available via the same API.

View API Details
GET/widget/~{search}.json
GET/widget/~{search}.json

Search or get a random quote

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
searchSTRING
REQUIREDSearch term. Use dash(-) instead of space and must be lower case.
Code Snippet
unirest.get("https://yusufnb-quotes-v1.p.rapidapi.com/widget/~einstein.json")
.header("X-RapidAPI-Host", "yusufnb-quotes-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://yusufnb-quotes-v1.p.rapidapi.com/widget/~{search}.json
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://yusufnb-quotes-v1.p.rapidapi.com/widget/~einstein.json")
.header("X-RapidAPI-Host", "yusufnb-quotes-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