Skip to content

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/authorsThe names of the poets PoetryDB holds, alphabetically.
GET/poetrydb/poemsThe poems of one poet, with their full text, in PoetryDB's order.
GET/poetrydb/titlesThe titles of one poet's poems, without their text, in PoetryDB's order. A short list for a poet with many poems.
GET/poetrydb/titleThe poems with one exact title, by any poet, with their full text.
GET/poetrydb/poemThe poem with one exact title by one exact author, with its full text.
GET/poetrydb/randomRandom poems from the whole collection, 1 to 10 at a time, with their full text.

authors

GET/v1/poetrydb/authors

The names of the poets PoetryDB holds, alphabetically.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/poetrydb/authors" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/poems

The poems of one poet, with their full text, in PoetryDB's order.

scope social:read1 unitcached 24 hpaginated

Parameters

author
string
required
The poet's name as PoetryDB lists it, such as William Blake.
e.g. William Blake
limit
integer
Poems per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
lineCountinteger (int64)
linesLine[]
textstring
titlestring
curl "https://api.hoshime.com/v1/poetrydb/poems?author=William+Blake" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/titles

The 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

author
string
required
The poet's name as PoetryDB lists it, such as William Blake.
e.g. William Blake
limit
integer
Poems per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
titlestring
curl "https://api.hoshime.com/v1/poetrydb/titles?author=William+Blake" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/title

The poems with one exact title, by any poet, with their full text.

scope social:read1 unitcached 24 hpaginated

Parameters

title
string
required
The exact title, such as Ozymandias.
e.g. Ozymandias
limit
integer
Poems per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
lineCountinteger (int64)
linesLine[]
textstring
titlestring
curl "https://api.hoshime.com/v1/poetrydb/title?title=Ozymandias" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/poem

The poem with one exact title by one exact author, with its full text.

scope social:read1 unitcached 24 hpaginated

Parameters

author
string
required
The poet's name as PoetryDB lists it, such as William Blake.
e.g. William Blake
title
string
required
The exact title, such as The Tyger.
e.g. The Tyger
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
lineCountinteger (int64)
linesLine[]
textstring
titlestring
curl "https://api.hoshime.com/v1/poetrydb/poem?author=William+Blake&title=The+Tyger" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/random

Random poems from the whole collection, 1 to 10 at a time, with their full text.

scope social:read1 unitpaginated

Parameters

limit
integer
Items per page, 1 to 10.
default 1
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
lineCountinteger (int64)
linesLine[]
textstring
titlestring
curl "https://api.hoshime.com/v1/poetrydb/random" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open