RapidAPI logo

Sign Up

Log In

Quotes

FREEMIUM
By yusufnb
Updated 3 months ago
Communication
3.4/10
Popularity Score
233ms
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.
Request 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
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://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