---
name: randomfactsx402.vercel.app
description: randomfactsx402.vercel.app exposes a single API endpoint that returns a random trivia fact as JSON, including the fact text, a source identifier, and a server timestamp. Each request is fulfilled via a one-time micropayment using the x402 payment protocol.
host: randomfactsx402.vercel.app
---

# randomfactsx402.vercel.app

This host is a minimal, single-purpose trivia fact service. It serves agents or applications that need to inject a random general-knowledge fact into content, conversation, or narration, and where per-request micropayment billing is acceptable. It has no filtering, categorization, or search capabilities — it returns one undirected random fact per call.

## When to use this host

Use this host when an agent needs a single random trivia or general knowledge fact and per-request micropayment billing is acceptable. Do not use it when topic-specific, category-filtered, or domain-restricted facts are required — this endpoint has no filtering parameters. Do not use it for bulk fact retrieval or structured knowledge queries; a knowledge base, search API, or categorized trivia service would be more appropriate for those needs.

## Capabilities

### Random Fact Retrieval

Fetches a single random trivia fact along with its source and a server-side timestamp. No input parameters are accepted; output is always one unfiltered fact.

- **`fetch-random-fact`** — Returns a single random trivia fact as JSON, including the fact text, a source identifier, and a server timestamp.

## Skill reference

### `fetch-random-fact`

**Random Facts API** — Returns a single random trivia fact as JSON, including the fact text, a source identifier, and a server timestamp.

*Use when:* Use when an agent needs a random trivia or general knowledge fact to display, narrate, or incorporate into content, and a one-time micropayment per request is acceptable.

*Not for:* Do not use for topic-specific or category-filtered facts; this endpoint returns an undirected random fact with no filtering parameters.

**Returns:** Returns a JSON object with a random trivia fact string, a source identifier string, and an ISO 8601 servedAt timestamp.

**Example:** `GET https://randomfactsx402.vercel.app/api/random-fact`

---
