← 语言与诗歌

随机诗歌

GET /poetry/random

从 PoetryDB 经典英语诗歌集中获取一首随机诗歌。返回诗歌标题、作者、全文(按行)和行数。收录 Shakespeare、Dickinson、Keats、Poe、Whitman 等人的作品。

请求示例

基本用法
curl https://nordapi.ee/api/v1/poetry/random

实时响应

{
  "data": {
    "author": "Edward Thomas",
    "line_count": "19",
    "lines": [
      "OFTEN and often it came back again",
      "To mind, the day I passed the horizon ridge",
      "To a new country, the path I had to find",
      "By half-gaps that were stiles once in the hedge,",
      "The pack of scarlet clouds running across",
      "The harvest evening that seemed endless then",
      "And after, and the inn where all were kind,",
      "All were strangers. I did not know my loss",
      "Till one day twelve months later suddenly",
      "I leaned upon my spade and saw it all,",
      "Though far beyond the sky-line. It became",
      "Almost a habit through the year for me",
      "To lean and see it and think to do the same",
      "Again for two days and a night. Recall",
      "Was vain: no more could the restless brook",
      "Ever turn back and climb the waterfall",
      "To the lake that rests and stirs not in its nook,",
      "As in the hollow of the collar-bone",
      "Under the mountain's head of rush and stone."
    ],
    "title": "Over the Hills"
  },
  "success": true
}