GET /poetry/random
Hent et tilfældigt digt fra PoetryDB-samlingen af klassisk engelsk poesi. Returnerer digtets titel, forfatter, fuldtekst (som linjer) og linjeantal. Indeholder værker af Shakespeare, Dickinson, Keats, Poe, Whitman og flere.
curl https://nordapi.ee/api/v1/poetry/random
{
"data": {
"author": "George Gordon, Lord Byron",
"line_count": "12",
"lines": [
"Oh! might I kiss those eyes of fire,",
"A million scarce would quench desire;",
"Still would I steep my lips in bliss,",
"And dwell an age on every kiss;",
"Nor then my soul should sated be,",
"Still would I kiss and cling to thee:",
"Nought should my kiss from thine dissever,",
"Still would we kiss and kiss for ever;",
"E'en though the numbers did exceed",
"The yellow harvest's countless seed;",
"To part would be a vain endeavour:",
"Could I desist?--ah! never--never."
],
"title": "Imitated From Catullus. to Ellen"
},
"success": true
}