freeapis

PoetryDB

Enables you to get instant data from our vast poetry collection

Authentication
No auth
HTTPS
Yes
CORS
Yes
Category
Books

Overview

PoetryDB serves a curated collection of ~4,000 classic poems — title, author, lines, and linecount — as JSON. Keyless and CORS-enabled (verified live), it’s a lovely source for poetry widgets, writing apps, and literary projects.

Quick Start

Random poem (verified live):

curl "https://poetrydb.org/random/1"
[
  {
    "title": "To Ianthe",
    "author": "Percy Bysshe Shelley",
    "lines": ["I love thee, Baby! for thine own sweet sake;", "Those azure eyes, that faintly dimpled cheek,"],
    "linecount": "26"
  }
]

By author / title:

curl "https://poetrydb.org/author/Emily Dickinson"
curl "https://poetrydb.org/title/Ozymandias"

List authors / titles:

curl "https://poetrydb.org/author"
curl "https://poetrydb.org/title"

Search text:

curl "https://poetrydb.org/lines/sea"

Authentication

None — keyless.

Rate Limits & Notes

  • Free; no documented hard limit — be polite.
  • Path patterns: /random/{n}, /author/{name}, /title/{name}, /lines/{text}, plus list endpoints (/author, /title).
  • Poems are public-domain classics (Shakespeare, Dickinson, Shelley, Frost…) — safe for reuse.
  • Responses are JSON arrays; linecount is a string.

FAQ

Is PoetryDB free? Yes — free, keyless, CORS-enabled.

How do I get a poem by title? /title/Ozymandias.

Can I browse authors? Yes — /author lists all authors.

More in Books

APIAuthHTTPSCORS
A Bíblia Digital

Do not worry about managing the multiple versions of the Bible

API KeyYesNo
Amanah Sunnah

Semantic search across Quran, Hadith, Tafsir & 18K+ Rijal narrators

API KeyYesYes
Bhagavad Gita

Bhagavad Gita text

OAuthYesYes
Bhagavad Gita

Open Source Shrimad Bhagavad Gita API including 21+ authors translation in Sanskrit/English/Hindi

API KeyYesYes
Bhagavad Gita telugu

Bhagavad Gita API in telugu and odia languages

No authYesYes