11 endpointi, mis hõlmavad klassikalist luulet PoetryDB-st (Shakespeare, Dickinson, Keats, Poe) ja võimsaid sõna-/keeletööriistu Datamuse'ist. Sirvige luuletusi autori või pealkirja järgi, otsige ridade kaupa, hankige juhuslikke luuletusi, leidke riime, sarnase tähendusega sõnu, sarnase kõlaga sõnu, automaattäite soovitusi ja sõnaseoseid. Sobib hästi kirjutamise tööriistadele, luulerakendustele, sõnamängudele ja NLP-projektidele.
Baas-URL: https://nordapi.ee/api/v1
GET /poetry/random
Hangi juhuslik luuletus PoetryDB klassikalise inglise luule kogust. Tagastab luuletuse pealkirja, autori, täisteksti (ridadena) ja ridade arvu. Esindab Shakespeare'i, Dickinsoni, Keatsi, Poe, Whitmani ja paljude teiste teoseid.
curl https://nordapi.ee/api/v1/poetry/random
GET /poetry/collection
Saage multiple random poems in one request. Sobib poetry feeds or discovery features.
count
valikuline
vaikeväärtus: 5
curl "https://nordapi.ee/api/v1/poetry/collection?count=3"
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 /poetry/search
Otsige for poems containing specific words or phrases in their text.
q
kohustuslik
curl "https://nordapi.ee/api/v1/poetry/search?q=shall+I+compare"
GET /words/similar/:word
Leidke words with similar meanings (synonyms and related words) using the Datamuse word-finding engine. Tagastab words ranked by relevance score.
curl https://nordapi.ee/api/v1/words/similar/happy
GET /words/rhymes/:word
Leidke words that rhyme with the given word. Sobib poetry generators, songwriting tools, and word games.
curl https://nordapi.ee/api/v1/words/rhymes/love
GET /words/sounds/:word
Leidke words that sound similar to the given word (homophones and near-homophones). Kasulik spelling correction and pun generators.
curl https://nordapi.ee/api/v1/words/sounds/flower
GET /words/autocomplete/:prefix
Saage word suggestions for a given prefix. Ideaalne search-as-you-type and autocomplete interfaces.
curl https://nordapi.ee/api/v1/words/autocomplete/prog
GET /words/adjectives/:noun
Leidke adjectives commonly used to describe a given noun. Sobib creative writing and content generation.
curl https://nordapi.ee/api/v1/words/adjectives/ocean
GET /words/nouns/:adjective
Leidke nouns commonly described by a given adjective. Kasulik word association and language learning tools.
curl https://nordapi.ee/api/v1/words/nouns/beautiful