Poetry DB

FREE
By thundercomb
Updated 5 months ago
Entertainment
8.7/10
Popularity Score
421ms
Latency
100%
Success Rate

Poetry DB API Documentation

PoetryDB is the world's first API for Next Generation internet poets

View API Details
GET/title/{title}
GET/title
GET/lines/{line}
GET/author/{author}
GET/author
GET/linecount/{linecount}
GET/author,title/{author};{title}
GET/author/{author}:abs
GET/title/{title}:abs
GET/lines/{line}:abs
GET/title/{title}

All poems on Poetry DB with a specific title

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
titleSTRING
REQUIREDThe title of the poem, or part of the title of the poem.
Code Snippet
unirest.get("https://thundercomb-poetry-db-v1.p.rapidapi.com/title/Sonnet%2018")
.header("X-RapidAPI-Host", "thundercomb-poetry-db-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://thundercomb-poetry-db-v1.p.rapidapi.com/title/{title}
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://thundercomb-poetry-db-v1.p.rapidapi.com/title/Sonnet%2018")
.header("X-RapidAPI-Host", "thundercomb-poetry-db-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