Zum Inhalt springen
GET /v1/author

Poems by an author, or list all authors

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/poetry-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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",
        
…