Numbers API avatar
Numbers API

Pricing

Pay per usage

Go to Apify Store
Numbers API

Numbers API

Fetch fascinating math facts, historic anecdotes, date insights, and trivia for any number with the Numbers API Actor. Designed for speed and reliability, it supports batch queries, customizable outputs, and robust error handling—perfect for educators, developers, and creators.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Shahid Irfan

Shahid Irfan

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

2 days ago

Last modified

Share

Numbers API - Trivia, Math, Date & Year Facts

Discover fascinating facts about numbers! Generate trivia, mathematical properties, historical dates, and year information instantly. Perfect for educational projects, quizzes, games, and data enrichment.

✨ What This Actor Does

This powerful automation tool generates comprehensive facts about numbers through multiple categories:

  • 📚 Trivia Facts: Fun and interesting general knowledge about numbers
  • 🔢 Math Properties: Detailed mathematical characteristics and relationships
  • 📅 Date Information: Historical significance and patterns related to dates
  • 📆 Year Facts: Important events and milestones for specific years

Whether you're building educational content, creating engaging quizzes, developing math learning tools, or enriching datasets with number-related information, this actor provides reliable, instantly generated facts.

🚀 Key Features

  • Batch Processing: Query multiple numbers in a single request
  • Random Number Support: Include random numbers for dynamic results
  • Flexible Input: Mix specific numbers with random selections
  • Instant Generation: No external API dependencies - facts generated on-demand
  • Clean Output: Structured JSON results ready for integration
  • Error Handling: Graceful handling of invalid inputs

📥 Input

Configure your fact generation with these parameters:

Required Fields

  • numbers (string): Comma-separated list of numbers or "random" (e.g., "42,random,100")

Optional Fields

  • factType (string): Choose from "trivia", "math", "date", or "year". Defaults to "trivia"

Example Input:

{
"numbers": "7,42,random",
"factType": "math"
}

📤 Output

Results are delivered as clean JSON objects with three key fields:

  • number: The queried number (or randomly generated number)
  • fact: The generated fact as plain text
  • fact_html: The fact formatted in HTML paragraph tags

Example Output:

[
{
"number": 7,
"fact": "7 is a positive, odd integer. 7 is a prime number. The sum of its digits is 7. In binary, it is 111. In hexadecimal, it is 0x7.",
"fact_html": "<p>7 is a positive, odd integer. 7 is a prime number. The sum of its digits is 7. In binary, it is 111. In hexadecimal, it is 0x7.</p>"
},
{
"number": 42,
"fact": "42 is a positive, even integer. 42 is a composite number with 8 positive divisors. The sum of its digits is 6. In binary, it is 101010. In hexadecimal, it is 0x2A.",
"fact_html": "<p>42 is a positive, even integer. 42 is a composite number with 8 positive divisors. The sum of its digits is 6. In binary, it is 101010. In hexadecimal, it is 0x2A.</p>"
}
]

🎯 Usage Examples

Basic Trivia Facts

{"numbers": "1,2,3,5,7", "factType": "trivia"}

Generate fun facts about prime numbers and small integers

Mathematical Properties

{"numbers": "10,25,100", "factType": "math"}

Explore mathematical characteristics and relationships

Historical Date Facts

{"numbers": "15,30,365", "factType": "date"}

Discover patterns and significance related to calendar dates

Year Milestones

{"numbers": "2020,1776,1492", "factType": "year"}

Learn about significant historical years and events

Mixed Random Query

{"numbers": "5,random,99,random", "factType": "trivia"}

Combine specific numbers with random selections for variety

💡 Use Cases & Applications

🎓 Education & Learning

  • Create interactive math lessons
  • Build number fact quizzes and games
  • Enhance educational content with interesting facts
  • Develop learning apps for students

🎮 Gaming & Entertainment

  • Generate dynamic content for number-based games
  • Create trivia challenges and puzzles
  • Add educational elements to entertainment apps

📊 Data Enrichment

  • Enhance datasets with number-related information
  • Generate sample data for testing and development
  • Create content for blogs and educational websites

🤖 Content Creation

  • Generate engaging social media posts
  • Create educational content automatically
  • Build fact-based articles and blog posts

🔧 Integration Guide

  1. Set Input Parameters: Configure numbers and fact type
  2. Run the Actor: Execute on Apify platform
  3. Retrieve Results: Access generated facts from dataset
  4. Process Output: Use facts in your applications or content

📈 Performance & Reliability

  • Instant Results: Facts generated in milliseconds
  • No External Dependencies: Self-contained number analysis
  • Error Resilience: Handles invalid inputs gracefully
  • Scalable: Process hundreds of numbers simultaneously

🎯 Perfect For

  • Educators creating engaging math content
  • Developers building educational applications
  • Content Creators generating number-related articles
  • Game Developers adding educational elements
  • Data Scientists enriching numerical datasets
  • Anyone curious about the fascinating world of numbers

Ready to explore the amazing world of numbers? Start generating facts today! 🚀