Facts API

Facts API

Discover endless knowledge with our comprehensive Facts API!

Overview

Our Facts API provides instant access to a vast collection of interesting facts across various categories. Whether you’re a trivia buff, a curious learner, or a developer creating engaging content, our API offers unparalleled insights into a wide range of topics.

Key Features

  • Multi-Categorical Coverage: Access facts from numerous categories
  • Random Fact Retrieval: Get instant inspiration with random fact generation
  • Structured Data: Easy-to-use JSON responses for seamless integration
  • Customizable Insights: Tailor your data to meet specific research or analytical needs
  • Scalable Solutions: Handle large volumes of requests efficiently
  • Easy Integration: Simple RESTful API design for seamless incorporation into your projects

API Usage

Our API is designed for simplicity and ease of integration:

# Example API Requests

GET /v1/facts/categories
GET /v1/facts/categories/{category}/random
GET /v1/facts/random

# Response Structure

Categories Endpoint:
[
  "Animals",
  "History",
  "Science",
  "Technology",
  "Sports",
  // ... more categories
]

Random Fact Endpoint:
{
  "text": "The shortest war in history was between Britain and Zanzibar on August 27, 1896, and lasted only 38 minutes.",
  "category": "History"
}

Random Fact Endpoint:
{
  "text": "The longest word in the English language, according to the Oxford English Dictionary, is pneumonoultramicroscopicsilicovolcanoconiosis, a lung disease caused by inhaling very fine particles of silica.",
  "category": "Health and Fitness"
}

Why Choose Our API?

  • Comprehensive Fact Database: Access a wide range of interesting facts across various topics
  • Flexible Retrieval Options: Get facts by category, random selection, or mixed results
  • Real-time Updates: Stay current with new facts and evolving knowledge
  • Scalable Solutions: Handle large volumes of requests efficiently
  • Educational Focus: Ideal for educational apps, trivia games, and personal learning tools