Numbers API
Pricing
Pay per usage
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
5.0
(1)
Developer
Shahid Irfan
Maintained by CommunityActor stats
0
Bookmarked
17
Total users
0
Monthly active users
9 days ago
Last modified
Categories
Share
Numbers API - Trivia, Math, Date & Year Facts
Extract fascinating and educational facts about any number with this high-performance, local-first actor. Whether you need mathematical properties, historical date information, trivia, or year-related events, this tool provides comprehensive numeric insights instantly.
This actor is built for speed and reliability, operating entirely without external API dependencies. This means no latency, no rate limits, and 100% uptime for your data enrichment workflows.
Features
- Trivia Facts — Get fun and surprising trivia facts about any integer
- Mathematical Properties — Detailed analysis of primality, divisors, squares, cubes, binary, and hexadecimal representations
- Date Information — Interpret numbers as dates and get relevant historical context
- Yearly Events — Explore facts related to specific years, including era (AD/BC) and century placement
- Batch Processing — Process multiple numbers in a single run by providing a comma-separated list
- Random Discovery — Use the
randomkeyword to discover facts about unexpected numbers - Zero External Dependencies — Local execution ensures maximum privacy, speed, and reliability
Use Cases
Educational Content Generation
Build educational quizzes, daily fact bots, or interactive learning tools for students. Provide deep mathematical insights into numbers used in curriculum.
Data Enrichment
Enhance your datasets with additional numeric context. Perfect for adding unique value to statistical reports or research papers.
App & Web Development
Integrate dynamic number facts into your applications, websites, or user interfaces to increase engagement and provide interactive value.
Quizzes & Gamification
Generate unique questions and answers for trivia games and quiz platforms based on mathematical or historical numeric facts.
Input Parameters
The actor accepts the following input parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
numbers | String | Yes | — | Comma-separated list of numbers or random (e.g., 7,random,42). |
factType | String | No | "trivia" | Type of fact to fetch: trivia, math, date, or year. |
results_wanted | Integer | No | 20 | Maximum number of facts to generate in one run. |
Output Data
Each record in the resulting dataset contains:
| Field | Type | Description |
|---|---|---|
number | Integer | The specific number the fact relates to. |
fact | String | The plain text description or fact about the number. |
fact_html | String | The fact formatted in HTML for easy web integration. |
Usage Examples
Basic Trivia Extraction
Extract fun facts for a set of specific numbers:
{"numbers": "7, 42, 100","factType": "trivia"}
Mathematical Analysis
Perform deep mathematical property extraction:
{"numbers": "13, 256, 1024","factType": "math"}
Dynamic Random Discovery
Generate facts for random numbers for interactive applications:
{"numbers": "random, random, random","factType": "year","results_wanted": 10}
Sample Output
{"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. Here's a numeric trivia fact: 42 is a positive, even integer...","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. Here's a numeric trivia fact: 42 is a positive, even integer...</p>"}
Tips for Best Results
Mixing Specifics and Randoms
You can mix specific numbers with the random keyword (e.g., 1,random,100,random) to get a balanced dataset of known and surprising facts.
Choosing the Right Fact Type
- Use Trivia for general engagement.
- Use Math for technical or educational depth.
- Use Date when numbers represent calendar days.
- Use Year for historical or timeline data.
Scaling Your Extraction
While the actor is very fast, using a reasonable results_wanted limit ensures your workflows remain efficient and manageable.
Integrations
Connect your numeric facts with your favorite tools:
- Google Sheets — Direct export for analysis and reporting
- Zapier & Make — Automate your fact delivery workflows
- Slack & Discord — Power your community bots with interesting facts
- Webhooks — Send facts directly to your custom API endpoints
Export Formats
- JSON — Structured data for developers
- CSV — For easy spreadsheet manipulation
- XML & Excel — Compatible with business systems
Frequently Asked Questions
Is there a limit to how many numbers I can process?
You can process as many numbers as you need, though the results_wanted parameter helps you stay within your desired output limit for each run.
Does this use an external API?
No, all logic is executed locally within the actor. This ensures maximum speed, privacy, and avoids external API failures or rate limits.
Can I use this for BC years?
Yes, the actor handles negative numbers as BC years and provides appropriate era context.
Support
For issues or feature requests, contact support through the Apify Console.
Resources
Legal Notice
This actor is designed for educational and data enrichment purposes. Use the generated data responsibly and in accordance with your project's requirements.
