Random Facts

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

Get API Key

Descripción general

Casos de uso

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

Funcionalidades

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

Puntos finales de la API

Get Random Fact

Returns a randomly selected fact, optionally filtered by category.

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

Parámetros

Nombre Tipo Obligatorio Descripción
category string Opcional Filter by category. Valid values: science, history, technology, nature, space, food

Pruébalo

Demostración en vivo
Solicitud

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

Campos de respuesta

Campo Tipo Descripción
fact string The fact text
category string The category the fact belongs to
source string The source or publication the fact is attributed to

Ejemplos de código

# 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"

Respuestas de error

400

bad_request

Preguntas frecuentes