PoetryDB
让你能够从我们庞大的诗歌库中即时获取数据
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 书籍
简介
PoetryDB 提供约 4,000 首经典诗歌的精选集——标题、作者、诗行和行数——以 JSON 输出。免密钥且支持 CORS(实测可用),是诗歌小组件、写作应用和文学项目的可爱数据源。
快速开始
随机诗歌(实测可用):
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"
}
]
按作者 / 标题:
curl "https://poetrydb.org/author/Emily Dickinson"
curl "https://poetrydb.org/title/Ozymandias"
作者 / 标题列表:
curl "https://poetrydb.org/author"
curl "https://poetrydb.org/title"
文本搜索:
curl "https://poetrydb.org/lines/sea"
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;没有文档化的硬性限制——请礼貌使用。
- 路径模式:
/random/{n}、/author/{名称}、/title/{名称}、/lines/{文本},以及列表端点(/author、/title)。 - 诗歌是公有领域经典(莎士比亚、狄金森、雪莱、弗罗斯特……)——可安全复用。
- 响应是 JSON 数组;
linecount是字符串。
常见问题
PoetryDB 免费吗? 是的——免费、免密钥、支持 CORS。
如何按标题获取诗歌?
/title/Ozymandias。
可以浏览作者吗?
可以——/author 列出所有作者。
书籍 分类更多
| 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 | ↗ |