PoetryDB
Enables you to get instant data from our vast poetry collection
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Yes
- Category
- Books
- Documentation / URL
- https://github.com/thundercomb/poetrydb#readme
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;
linecountis 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
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| A Bíblia Digital Do not worry about managing the multiple versions of the Bible | API Key | Yes | No | ↗ |
| Amanah Sunnah Semantic search across Quran, Hadith, Tafsir & 18K+ Rijal narrators | API Key | Yes | Yes | ↗ |
| Bhagavad Gita Bhagavad Gita text | OAuth | Yes | Yes | ↗ |
| Bhagavad Gita Open Source Shrimad Bhagavad Gita API including 21+ authors translation in Sanskrit/English/Hindi | API Key | Yes | Yes | ↗ |
| Bhagavad Gita telugu Bhagavad Gita API in telugu and odia languages | No auth | Yes | Yes | ↗ |