# ForgeMesh Number Facts API

> ForgeMesh Number Facts 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-14).

Returns mathematically interesting properties of any integer: primality, factorization, Fibonacci membership, perfect-square status, parity, binary/hex forms, Roman numeral, and digit sum.

## Facts

- Endpoint: POST https://x402.forgemesh.io/number-facts
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-number-facts-api-99ee79c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IozmMGhkZJOcCElQfbx2Y

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-facts-api-99ee79c9 -d '<json body>'
```

Example prompt: Tell me all the math facts about the number 360 — is it prime, what's its prime factorization, is it a Fibonacci number or 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, multi-faceted mathematical analysis of a single integer — especially for quiz generation, educational content, number trivia, or validation tasks where you need primality, factorization, Fibonacci/square membership, and base representations in one call.

## Known failure modes

- Non-integer or unparseable input may return an error or default to 42
- Very large integers may exceed supported range
- Empty or missing 'number' field defaults to 42
- Floating-point or decimal values may be rejected or truncated

## How this service works

Number facts API: everything mathematically interesting about any integer — is it prime, its prime factorization, Fibonacci membership, perfect-square status, even/odd, binary and hexadecimal forms, Roman numeral, and digit sum. Computed locally, deterministic, instant. For quiz agents, content generation, validation, and the incurably curious.

## Output

A structured response containing: primality (true/false), prime factorization list, Fibonacci membership flag, perfect-square status, even/odd parity, binary string, hexadecimal string, Roman numeral representation, and digit sum — all computed deterministically for the given integer.

## 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-facts-api-99ee79c9/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)
