娯
PoetryDB API
6 endpointsEntertainment & BooksGlobalsocial:read5 real examples
Returns poet names and poems with full text by author, title or at random from PoetryDB.
View as Markdown| GET | /poetrydb/authors | The names of the poets PoetryDB holds, alphabetically. |
| GET | /poetrydb/poems | The poems of one poet, with their full text, in PoetryDB's order. |
| GET | /poetrydb/titles | The titles of one poet's poems, without their text, in PoetryDB's order. A short list for a poet with many poems. |
| GET | /poetrydb/title | The poems with one exact title, by any poet, with their full text. |
| GET | /poetrydb/poem | The poem with one exact title by one exact author, with its full text. |
| GET | /poetrydb/random | Random poems from the whole collection, 1 to 10 at a time, with their full text. |
authors
GET
/v1/poetrydb/authorsThe names of the poets PoetryDB holds, alphabetically.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/poetrydb/authors" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/authors", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/authors", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "avatarUrl": "", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "", "name": "Adam Lindsay Gordon", "postCount": 0, "url": "", "username": "", "verified": false }, { "avatarUrl": "", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "", "name": "Alan Seeger", "postCount": 0, "url": "", "username": "", "verified": false } ], "meta": { "cached": false, "endpoint": "authors", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }
poems
GET
/v1/poetrydb/poemsThe poems of one poet, with their full text, in PoetryDB's order.
scope social:read1 unitcached 24 hpaginated
Parameters
authorstring required | The poet's name as PoetryDB lists it, such as William Blake. e.g. William Blake |
limitinteger | Poems per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
lineCount | integer (int64) |
lines | Line[] |
text | string |
title | string |
curl "https://api.hoshime.com/v1/poetrydb/poems?author=William+Blake" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/poems?author=William+Blake", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/poems?author=William+Blake", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "William Blake", "url": "", "username": "" }, "lineCount": 16, "lines": [ { "text": "I wandered through each chartered street," }, { "text": " Near where the chartered Thames does flow," } ], "title": "London" }, { "author": { "avatarUrl": "", "id": "", "name": "William Blake", "url": "", "username": "" }, "lineCount": 24, "lines": [ { "text": "Pity would be no more" }, { "text": "If we did not make somebody poor," } ], "title": "The Human Abstract" } ], "meta": { "cached": false, "endpoint": "poems", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }
titles
GET
/v1/poetrydb/titlesThe titles of one poet's poems, without their text, in PoetryDB's order. A short list for a poet with many poems.
scope social:read1 unitcached 24 hpaginated
Parameters
authorstring required | The poet's name as PoetryDB lists it, such as William Blake. e.g. William Blake |
limitinteger | Poems per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
title | string |
curl "https://api.hoshime.com/v1/poetrydb/titles?author=William+Blake" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/titles?author=William+Blake", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/titles?author=William+Blake", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "title": "…" } ], "meta": { "cached": false, "endpoint": "titles", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }
title
GET
/v1/poetrydb/titleThe poems with one exact title, by any poet, with their full text.
scope social:read1 unitcached 24 hpaginated
Parameters
titlestring required | The exact title, such as Ozymandias. e.g. Ozymandias |
limitinteger | Poems per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
lineCount | integer (int64) |
lines | Line[] |
text | string |
title | string |
curl "https://api.hoshime.com/v1/poetrydb/title?title=Ozymandias" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/title?title=Ozymandias", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/title?title=Ozymandias", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Percy Bysshe Shelley", "url": "", "username": "" }, "lineCount": 14, "lines": [ { "text": "I met a traveller from an antique land" }, { "text": "Who said: Two vast and trunkless legs of stone" } ], "title": "Ozymandias" } ], "meta": { "cached": false, "endpoint": "title", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }
poem
GET
/v1/poetrydb/poemThe poem with one exact title by one exact author, with its full text.
scope social:read1 unitcached 24 hpaginated
Parameters
authorstring required | The poet's name as PoetryDB lists it, such as William Blake. e.g. William Blake |
titlestring required | The exact title, such as The Tyger. e.g. The Tyger |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
lineCount | integer (int64) |
lines | Line[] |
text | string |
title | string |
curl "https://api.hoshime.com/v1/poetrydb/poem?author=William+Blake&title=The+Tyger" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/poem?author=William+Blake&title=The+Tyger", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/poem?author=William+Blake&title=The+Tyger", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "William Blake", "url": "", "username": "" }, "lineCount": 24, "lines": [ { "text": "Tyger, tyger, burning bright" }, { "text": "In the forests of the night," } ], "title": "The Tyger" } ], "meta": { "cached": false, "endpoint": "poem", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }
random
GET
/v1/poetrydb/randomRandom poems from the whole collection, 1 to 10 at a time, with their full text.
scope social:read1 unitpaginated
Parameters
limitinteger | Items per page, 1 to 10. default 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
lineCount | integer (int64) |
lines | Line[] |
text | string |
title | string |
curl "https://api.hoshime.com/v1/poetrydb/random" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/poetrydb/random", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/poetrydb/random", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Alexander Pope", "url": "", "username": "" }, "lineCount": 12, "lines": [ { "text": "Here, Withers, rest! thou bravest, gentlest mind," }, { "text": "Thy country's friend, but more of human kind." } ], "title": "Epitaph. On General Henry Withers, in Westminster Abbey, 1729." } ], "meta": { "cached": false, "endpoint": "random", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "poetrydb", "requestId": "req_2Xb9kQ…", "units": 1 } }