# ForgeMesh Number Trivia API

> ForgeMesh Number Trivia API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns mathematical properties of any integer, including prime status, factorization, Fibonacci membership, perfect-square check, binary/hex/Roman numeral representations, and digit sum.

## Facts

- Endpoint: POST https://x402.forgemesh.io/number-trivia
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-number-trivia-api-d59941c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tlaP-3-ej-dLKu0wRm4Cl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forgemesh-number-trivia-api-d59941c4 -d '<json body>'
```

Example prompt: What are the mathematical properties of 360 — is it prime, what's its prime factorization, is it a perfect square, and what does it look like in binary, hex, and Roman numerals?

## When to prefer this

Use this endpoint when you need instant, deterministic mathematical metadata about any integer — especially prime status, factorization, numeral-system conversions, or Fibonacci/perfect-square classification — without building or hosting your own number-theory logic.

## Known failure modes

- Non-integer input (e.g. a decimal or text string) may return an error or unexpected result
- Very large integers may time out or exceed computation limits
- Missing or empty 'number' field defaults to 42 rather than returning an error
- Negative integers or zero may not be handled by all properties (e.g. Roman numerals undefined for negatives)

## How this service works

Number trivia API: the mathematical personality of any integer — prime status, prime factorization, Fibonacci membership, perfect-square check, binary/hex/Roman forms, and digit sum. Instant, deterministic, endlessly curious.

## Output

A structured response containing the number's prime status (boolean), complete prime factorization, whether it belongs to the Fibonacci sequence, whether it is a perfect square, its binary and hexadecimal representations, its Roman numeral form, and the sum of its digits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string",
   "description": "any integer, default 42"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "binary": "110010010",
  "number": 402,
  "is_prime": false,
  "digit_sum": 6,
  "prime_factors": [
   2,
   3,
   67
  ],
  "roman_numeral": "CDII"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-number-trivia-api-d59941c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
