Chuck Norris Facts
Get a random Chuck Norris fact from a curated built-in database. Every call returns a different fact selected with a cryptographically secure random number generator.
Overview
Use Cases
- Entertainment widgets and fun sidebars
- Office joke-of-the-day bots
- Onboarding or loading screen humor
- Developer easter eggs
Features
Random fact on every request
Unique stable IDs per fact (cn_<index>)
No parameters required
API Endpoints
Get Random Chuck Norris Fact
Returns a randomly selected Chuck Norris fact from the built-in database.
GET
https://api.requiems.xyz/v1/entertainment/chuck-norris
Try it out
Live DemoRequest
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string |
Unique fact identifier in the format cn_<index> (e.g. cn_0, cn_7) |
| fact | string |
The Chuck Norris fact text |
Code Examples
curl https://api.requiems.xyz/v1/entertainment/chuck-norris \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/entertainment/chuck-norris"
headers = {"requiems-api-key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
result = response.json()['data']
print(f"[{result['id']}] {result['fact']}")
const response = await fetch(
'https://api.requiems.xyz/v1/entertainment/chuck-norris',
{ headers: { 'requiems-api-key': 'YOUR_API_KEY' } }
);
const { data } = await response.json();
console.log(`[${data.id}] ${data.fact}`);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/entertainment/chuck-norris')
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
result = JSON.parse(response.body)['data']
puts "[#{result['id']}] #{result['fact']}"
Frequently Asked Questions
Yes. Each request uses a cryptographically secure random number generator so you get a different fact each time.
IDs follow the format cn_<index> where index is a zero-based integer referencing the fact's position in the database (e.g. cn_0, cn_7, cn_29).
The fact database is built into the API and may be expanded in future releases. The IDs of existing facts remain stable.