# Random Facts API

> Random Facts is a fun facts API that delivers a random fact on every request without requiring any query parameters. Drop bite-sized trivia into apps, chat widgets, and daily notification feeds.

**Endpoint:** `GET https://api.apiverve.com/v1/randomfacts`  
**Category:** Entertainment  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/randomfacts

## Overview

Send a GET request to receive an entry from the collection, returned as a JSON object with a single fact string. Every call produces an individual item, requiring no configuration or query arguments.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/randomfacts" \
  -H "x-api-key: YOUR_API_KEY"
```

## Response fields

- `fact` — string · A random interesting fact from curated collection

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "fact": "Rhinoceros have 3 toes on each foot"
  }
}
```

## Use cases

- **Daily Newsletter Snippets** — Email marketers inject a fresh trivia sentence into morning roundups to give subscribers a quick educational takeaway before the main articles.
- **Chatbot Icebreakers** — When community Discord bots receive an idle prompt, they pull an unexpected fact to stimulate conversation among chat members.
- **Loading Screen Entertainment** — Keep players entertained between game rounds by showing a single interesting trivia snippet while assets load in the background.
- **Digital Dashboard Widgets** — To keep breakroom display boards engaging, internal IT teams rotate a new general knowledge statement every few minutes.

## SDKs

- **npm** — `npm install @apiverve/randomfacts` (https://www.npmjs.com/package/@apiverve/randomfacts)
- **PyPI** — `pip install apiverve-randomfacts` (https://pypi.org/project/apiverve-randomfacts/)
- **NuGet** — `dotnet add package APIVerve.API.RandomFacts` (https://www.nuget.org/packages/APIVerve.API.RandomFacts)
- **Source** — https://github.com/apiverve/randomfacts-api

## More

- Full reference: https://docs.apiverve.com/ref/randomfacts
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
