x402AgentsToolsHub

Number Fact

Look up the fact attached to any number from the Numbers API: pop-culture trivia, mathematical properties, day-of-year facts and historical years. The kind of color that makes explanations memorable — cited from the dedicated database, not invented.

Worked examples

Live examples refresh automatically — call the API for guaranteed-fresh results.

Machine API (x402)

$0.01 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/live/number-fact?number=42 HTTP/1.1
Host: agentstoolshub.com

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/number-fact",
  "input": {"number":42},
  "result": { "value": null, "answer": "" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

The Numbers API database: trivia (why 42 matters), math (1729 = the Hardy–Ramanujan taxi-cab number), day-of-year facts and year events. Comes back verbatim from the source with a 'found in database' flag so an agent never confuses a real fact with filler.

Frequently asked questions

How does the date format work?

Encode the date as month × 100 + day: July 20 → 720. The fact returned is what history attaches to July 20.

What if my number isn't in the database?

The API returns a related filler fact and the response flags found: false — so callers can tell a genuine database fact from generated filler.

Related tools