/v1/author
Poems by an author, or list all authors
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/poetry-api/v1/author" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/poetry-api/v1/author", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/poetry-api/v1/author");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/poetry-api/v1/author",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"count": 162,
"poems": [
{
"id": 2286,
"title": "A Lover's Complaint",
"author": "William Shakespeare",
"linecount": 331
},
{
"id": 2287,
"title": "Spring and Winter ii",
"author": "William Shakespeare",
"linecount": 18
},
{
"id": 2288,
"title": "Orpheus with his Lute Made Trees",
"author": "William Shakespeare",
"linecount": 12
},
{
"id": 2289,
"title": "Winter",
"author": "William Shakespeare",
"linecount": 18
},
{
"id": 2290,
"title": "Spring",
"author": "William Shakespeare",
"linecount": 18
},
{
"id": 2291,
"title": "Spring and Winter i",
"author": "William Shakespeare",
"linecount": 18
},
{
"id": 2292,
"title": "Blow, Blow, Thou Winter Wind",
"author": "William Shakespeare",
"linecount": 20
},
{
"id": 2293,
"title": "Under the Greenwood Tree",
"author": "William Shakespeare",
"linecount": 16
},
{
"id": 2294,
"title": "Sonnet 3: Look in thy glass and tell the face thou viewest",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2295,
"title": "Sonnet 7: Lo! in the orient when the gracious light",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2296,
"title": "Sonnet 8: Music to hear, why hear'st thou music sadly?",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2297,
"title": "Sonnet 10: For shame! deny that thou bear'st love to any",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2298,
"title": "Sonnet 21: So is it not with me as with that Muse",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2299,
"title": "Sonnet 25: Let those who are in favour with their stars",
"author": "William Shakespeare",
"linecount": 14
},
{
"id": 2300,
"title": "Sonnet 26: Lord of my love, to whom in vassalage",
…