{"openapi":"3.1.0","info":{"title":"Useless Facts API","version":"1.0.0","description":"Random and daily trivia facts via the open Useless Facts API — no key. The random endpoint returns a surprising, mostly-useless fact; the today endpoint returns the fact of the day; and both are available in English or German, each fact carrying its source attribution, source URL and a permalink. Real curated facts, with the daily fact cached for speed — no key. 3 endpoints. Ideal for daily-fact widgets, newsletters, chatbots, loading screens and onboarding delight.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/uselessfacts-api","description":"oanor gateway"}],"tags":[{"name":"Facts"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/random":{"get":{"operationId":"get_v1_random","tags":["Facts"],"summary":"A random fact","description":"","parameters":[{"name":"language","in":"query","required":false,"description":"en or de (default en)","schema":{"type":"string"},"example":"en"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"fact":{"id":"9cde3f7c3ce81b6de2dec0ea231b1dbc","text":"A honeybee can fly at fifteen miles per hour.","source":"djtech.net","language":"en","permalink":"https://uselessfacts.jsph.pl/api/v2/facts/9cde3f7c3ce81b6de2dec0ea231b1dbc","source_url":"https://www.djtech.net/humor/shorty_useless_facts.htm"}},"meta":{"timestamp":"2026-06-08T09:48:45.648Z","request_id":"db4f9348-f935-4a97-b95d-b3aee03f7dde"},"status":"ok","message":"Fact retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/today":{"get":{"operationId":"get_v1_today","tags":["Facts"],"summary":"Fact of the day","description":"","parameters":[{"name":"language","in":"query","required":false,"description":"en or de (default en)","schema":{"type":"string"},"example":"en"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"service":"uselessfacts-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/today":"The fact of the day (language=en|de).","GET /v1/random":"A random useless fact (language=en|de)."},"description":"Random and daily trivia facts via the open Useless Facts API: pull a random fact or the fact of the day, in English or German, each with its source attribution and permalink. Real facts, no key."},"meta":{"timestamp":"2026-06-08T09:48:45.859Z","request_id":"97f41e1d-454e-4c6c-a278-371bb328d647"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":7200,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":500,"monthly_call_quota":97500,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2100,"monthly_call_quota":560500,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6300,"monthly_call_quota":2730000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/uselessfacts-api"}