Zum Inhalt springen
GET /v1/work

A work metadata & preview

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/wikisource-api/v1/work" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wikisource-api/v1/work", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wikisource-api/v1/work");
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/wikisource-api/v1/work",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "work": {
            "url": "https://en.wikisource.org/wiki/Gettysburg_Address",
            "title": "Gettysburg Address",
            "preview": "Gettysburg Address (1863), Nicolay draft\nGettysburg Address (1863), Hay draft\nGettysburg Address (1864), Everett copy\nGettysburg Address (1864), Bancroft copy\nGettysburg Address (1864), Bliss copy\nGettysburg Address (1922), inscribed on the southern interior wall at the Lincoln Memorial\n\n\n== Works about the Gettysburg Address ==\nInauguration of the Gettysburg Cemetery (1863), report in the Daily Illinois State Journal\n\n\n== See also ==\nGettysburg Oration, a speech given the same day as Lincoln's",
            "characters": 499,
            "description": "speech by U.S. President Abraham Lincoln"
        }
    },
    "meta": {
        "timestamp": "2026-06-01T16:23:35.959Z",
        "request_id": "627f9b54-b86d-4ca5-950d-e9d74ac702de"
    },
    "status": "ok",
    "message": "Work retrieved",
    "success": true
}