PoetryDB · Example Payload

Get Poems By Linecount

GET /linecount/14 — returns all poems with exactly 14 lines.

PoetryLiteraturePublic DomainEnglish LanguageSearchOpen Data

Get Poems By Linecount is an example object payload from PoetryDB, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "summary": "Get sonnets (14-line poems)",
  "description": "GET /linecount/14 — returns all poems with exactly 14 lines.",
  "request": {
    "method": "GET",
    "url": "https://poetrydb.org/linecount/14"
  },
  "response": {
    "status": 200,
    "body": [
      {
        "title": "Ozymandias",
        "author": "Percy Bysshe Shelley",
        "lines": [
          "I met a traveller from an antique land,",
          "Who said—\"Two vast and trunkless legs of stone",
          "Stand in the desert. . . . Near them, on the sand,",
          "Half sunk a shattered visage lies, whose frown,",
          "And wrinkled lip, and sneer of cold command,",
          "Tell that its sculptor well those passions read",
          "Which yet survive, stamped on these lifeless things,",
          "The hand that mocked them, and the heart that fed;",
          "And on the pedestal, these words appear:",
          "My name is Ozymandias, King of Kings;",
          "Look on my Works, ye Mighty, and despair!",
          "Nothing beside remains. Round the decay",
          "Of that colossal Wreck, boundless and bare",
          "The lone and level sands stretch far away."
        ],
        "linecount": "14"
      }
    ]
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/get-poems-by-linecount"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.