Walt Whitman Poems

FREE
By pafmon
Updated 5 months ago
Other
5.9/10
Popularity Score
143ms
Latency
100%
Success Rate

Walt Whitman Poems API Documentation

Poems by Walt Whitman (contained in Leaves of Grass from the Project Gutemberg)

View API Details
GETPoems List
GETPoem
GETPoems List
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Code Snippet
unirest.get("https://pafmon-walt-whitman-poems.p.rapidapi.com/poems/")
.header("X-RapidAPI-Host", "pafmon-walt-whitman-poems.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://pafmon-walt-whitman-poems.p.rapidapi.com/poems/
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://pafmon-walt-whitman-poems.p.rapidapi.com/poems/")
.header("X-RapidAPI-Host", "pafmon-walt-whitman-poems.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