/v1/today
Fact of the day
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}