Random Facts

Get random interesting facts from a curated database covering science, history, technology, nature, space, and food.

Get API Key

Overview

Use Cases

  • Daily fact widgets and educational sidebars
  • Trivia games and quiz apps
  • Loading screen content and onboarding copy
  • Educational platforms and learning apps

Features

Curated facts across 6 categories
Optional category filtering
Includes source attribution for each fact

API Endpoints

Get Random Fact

Returns a randomly selected fact, optionally filtered by category.

GET
https://api.requiems.xyz/v1/entertainment/facts

Parameters

Name Type Required Description
category string Optional Filter by category. Valid values: science, history, technology, nature, space, food

Try it out

Live Demo
Request

Filter by category. Valid values: science, history, technology, nature, space, food

Response Fields

Field Type Description
fact string The fact text
category string The category the fact belongs to
source string The source or publication the fact is attributed to

Code Examples

# Random fact from any category
curl https://api.requiems.xyz/v1/entertainment/facts \
  -H "requiems-api-key: YOUR_API_KEY"

# Random science fact
curl "https://api.requiems.xyz/v1/entertainment/facts?category=science" \
  -H "requiems-api-key: YOUR_API_KEY"

Error Responses

400

bad_request

Frequently Asked Questions