← 语言与诗歌

诗歌集

GET /poetry/collection

在一次请求中获取多首随机诗歌。非常适合构建诗歌信息流或发现功能。

参数

count 可选 默认: 5

Number of poems (1-10)

请求示例

基本用法
curl "https://nordapi.ee/api/v1/poetry/collection?count=3"

实时响应

{
  "data": [
    {
      "author": "Percy Bysshe Shelley",
      "line_count": "5",
      "lines": [
        "My thoughts arise and fade in solitude,",
        "The verse that would invest them melts away",
        "Like moonlight in the heaven of spreading day:",
        "How beautiful they were, how firm they stood,",
        "Flecking the starry sky like woven pearl!"
      ],
      "title": "Fragment: Thoughts Come and Go in Solitude"
    },
    {
      "author": "Percy Bysshe Shelley",
      "line_count": "24",
      "lines": [
        "Old winter was gone",
        "In his weakness back to the mountains hoar,",
        "And the spring came down",
        "From the planet that hovers upon the shore",
        "",
        "Where the sea of sunlight encroaches",
        "On the limits of wintry night;--",
        "If the land, and the air, and the sea,",
        "Rejoice not when spring approaches,",
        "We did not rejoice in thee,",
        "Ginevra!",
        "",
        "She is still, she is cold",
        "On the bridal couch,",
        "One step to the white deathbed,",
        "And one to the bier,",
        "And one to the charnel--and one, oh where?",
        "The dark arrow fled",
        "In the noon.",
        "",
        "Ere the sun through heaven once more has rolled,",
        "The rats in her heart",
        "Will have made their nest,",
        "And the worms be alive in her golden hair,",
        "While the Spirit that guides the sun,",
        "Sits throned in his flaming chair,",
        "She shall sleep."
      ],
      "title": "The Dirge"
    },
    {
      "author": "Alexander Pope",
      "line_count": "17",
      "lines": [
        "A soul as full of worth, as void of pride,",
        "Which nothing seeks to show, or needs to hide,",
        "Which nor to guilt nor fear its caution owes,",
        "And boasts a warmth that from no passion flows.",
        "A face untaught to feign; a judging eye,",
        "That darts severe upon a rising lie,",
        "And strikes a blush through frontless flattery.",
        "All this thou wert; and being this before,",
        "Know, kings and fortune cannot make thee more.",
        "Then scorn to gain a friend by servile ways,",
        "Nor wish to lose a foe these virtues raise;",
        "But candid, free, sincere, as you began,",
        "Proceed--a minister, but still a man.",
        "Be not (exalted to whate'er degree)",
        "Ashamed of any friend, not even of me:",
        "The patriot's plain, but untrod path pursue;",
        "If not, 'tis I must be ashamed of you."
      ],
      "title": "Epistle to James Craggs, Esq., Secretary of State."
    }
  ],
  "success": true
}