Vai al contenuto
GET /v1/work

A work metadata & preview

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/wikisource-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}