← Язык и поэзия

Поиск стихов по строкам

GET /poetry/search

Поиск стихов, содержащих конкретные слова или фразы в тексте.

Параметры

q обязательный

Text to search for in poem lines

Примеры запросов

Базовое использование
curl "https://nordapi.ee/api/v1/poetry/search?q=shall+I+compare"

Ответ в реальном времени

{
  "data": [
    {
      "author": "William Shakespeare",
      "line_count": "14",
      "lines": [
        "Shall I compare thee to a summer's day?",
        "Thou art more lovely and more temperate:",
        "Rough winds do shake the darling buds of May,",
        "And summer's lease hath all too short a date:",
        "Sometime too hot the eye of heaven shines,",
        "And often is his gold complexion dimm'd,",
        "And every fair from fair sometime declines,",
        "By chance, or nature's changing course untrimm'd:",
        "But thy eternal summer shall not fade,",
        "Nor lose possession of that fair thou ow'st,",
        "Nor shall death brag thou wander'st in his shade,",
        "When in eternal lines to time thou grow'st,",
        "  So long as men can breathe, or eyes can see,",
        "  So long lives this, and this gives life to thee."
      ],
      "title": "Sonnet 18: Shall I compare thee to a summer's day?"
    }
  ],
  "success": true
}