← 所有 API 产品

语言与诗歌 API

11 个端点,涵盖来自 PoetryDB 的经典诗歌(Shakespeare、Dickinson、Keats、Poe)和来自 Datamuse 的强大词语/语言工具。按作者或标题浏览诗歌,按诗句搜索,获取随机诗歌,查找押韵词、近义词、同音词、自动补全建议和词语关联。适用于写作工具、诗歌应用、文字游戏和 NLP 项目。

免费 11 个端点 100 次请求/小时
基础 URL: https://nordapi.ee/api/v1

随机诗歌

GET /poetry/random
详情 →

从 PoetryDB 经典英语诗歌集中获取一首随机诗歌。返回诗歌标题、作者、全文(按行)和行数。收录 Shakespeare、Dickinson、Keats、Poe、Whitman 等人的作品。

curl https://nordapi.ee/api/v1/poetry/random

诗歌集

GET /poetry/collection
详情 →

在一次请求中获取多首随机诗歌。非常适合构建诗歌信息流或发现功能。

参数
count 可选 默认: 5
Number of poems (1-10)
curl "https://nordapi.ee/api/v1/poetry/collection?count=3"

按作者查找诗歌

GET /poetry/author/:author
详情 →

Get all poems by a specific author. Returns up to 10 poems with full text.

curl https://nordapi.ee/api/v1/poetry/author/Shakespeare

按标题查找诗歌

GET /poetry/title/:title
详情 →

Search for poems by title. Returns matching poems with full text.

curl https://nordapi.ee/api/v1/poetry/title/Ozymandias

近义词

GET /words/similar/:word
详情 →

使用 Datamuse 词语查找引擎查找含义相似的词语(同义词和相关词)。返回按相关性评分排序的词语。

curl https://nordapi.ee/api/v1/words/similar/happy

押韵词

GET /words/rhymes/:word
详情 →

查找与给定单词押韵的词语。非常适合诗歌生成器、歌曲创作工具和文字游戏。

curl https://nordapi.ee/api/v1/words/rhymes/love

同音词

GET /words/sounds/:word
详情 →

查找与给定单词发音相似的词语(同音词和近同音词)。适用于拼写纠正和双关语生成器。

curl https://nordapi.ee/api/v1/words/sounds/flower

自动补全

GET /words/autocomplete/:prefix
详情 →

获取给定前缀的词语建议。适用于边输入边搜索和自动补全界面。

curl https://nordapi.ee/api/v1/words/autocomplete/prog

名词的形容词

GET /words/adjectives/:noun
详情 →

查找常用于描述给定名词的形容词。适用于创意写作和内容生成。

curl https://nordapi.ee/api/v1/words/adjectives/ocean

形容词的名词

GET /words/nouns/:adjective
详情 →

查找常被给定形容词描述的名词。适用于词语联想和语言学习工具。

curl https://nordapi.ee/api/v1/words/nouns/beautiful