What it does
PoetryDB is an API for thousands of public-domain poems. Search by author, title, lines or number of lines, combine searches, and choose which fields you want back, such as only the titles or the full text. Responses are JSON or text. Free and open source, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free and open source, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- github.com
More information: https://github.com/thundercomb/poetrydb
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://poetrydb.org/title/Ozymandias'
JavaScript
const response = await fetch("https://poetrydb.org/title/Ozymandias");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://poetrydb.org/title/Ozymandias",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.