PoetryDB · Schema
Poem
A single poem as returned by the PoetryDB API.
PoetryLiteraturePublic DomainEnglish LanguageSearchOpen Data
Properties
| Name | Type | Description |
|---|---|---|
| title | string | The poem's title. |
| author | string | The full name of the poem's author. |
| lines | array | An ordered array of strings, each representing one line of the poem. |
| linecount | string | The total number of lines in the poem, returned as a string. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/poetry-db/main/json-schema/poem.json",
"title": "Poem",
"description": "A single poem as returned by the PoetryDB API.",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The poem's title."
},
"author": {
"type": "string",
"description": "The full name of the poem's author."
},
"lines": {
"type": "array",
"description": "An ordered array of strings, each representing one line of the poem.",
"items": {
"type": "string"
}
},
"linecount": {
"type": "string",
"description": "The total number of lines in the poem, returned as a string."
}
},
"required": ["title", "author", "lines", "linecount"],
"additionalProperties": false,
"examples": [
{
"title": "Ozymandias",
"author": "Percy Bysshe Shelley",
"lines": [
"I met a traveller from an antique land,",
"Who said—\"Two vast and trunkless legs of stone",
"Stand in the desert. . . . Near them, on the sand,",
"Half sunk a shattered visage lies, whose frown,",
"And wrinkled lip, and sneer of cold command,",
"Tell that its sculptor well those passions read",
"Which yet survive, stamped on these lifeless things,",
"The hand that mocked them, and the heart that fed;",
"And on the pedestal, these words appear:",
"My name is Ozymandias, King of Kings;",
"Look on my Works, ye Mighty, and despair!",
"Nothing beside remains. Round the decay",
"Of that colossal Wreck, boundless and bare",
"The lone and level sands stretch far away."
],
"linecount": "14"
}
]
}