Random Facts

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

Get API Key

Vue d'ensemble

Cas d'utilisation

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

Fonctionnalités

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

Points de terminaison de l'API

Get Random Fact

Returns a randomly selected fact, optionally filtered by category.

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

Paramètres

Nom Type Requis Description
category string Facultatif Filter by category. Valid values: science, history, technology, nature, space, food

Essayez-le

Démo en direct
Requête

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

Champs de réponse

Champ 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

Exemples de code

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

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

Réponses d'erreur

400

bad_request

Foire aux questions