Vai al contenuto
GET /v1/today

Fact of the day

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "fact": {
            "id": "9decf420a079ab676d06a7101f34a9c8",
            "text": "Laredo, Texas is the U.S.'s farthest inland port.",
            "source": "djtech.net",
            "language": "en",
            "permalink": "https://uselessfacts.jsph.pl/api/v2/facts/9decf420a079ab676d06a7101f34a9c8",
            "source_url": "https://www.djtech.net/humor/shorty_useless_facts.htm"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:48:45.751Z",
        "request_id": "2775b6d0-27f5-4c85-96ed-2f8d55252194"
    },
    "status": "ok",
    "message": "Fact of the day retrieved successfully",
    "success": true
}