---
title: "Random Trivia, Quotes & Life Hacks API"
slug: random-trivia-quotes-life-hacks-api
url: https://apyhub.com/skycraft/service/random-trivia-quotes-life-hacks-api
provider: Skycraft
categories: [Smart Generation]
tags: [riddles, trivia, quotes, affirmations, life-hacks, content]
auth: api_key
version: 1.9.0
service_type: sync
endpoints: 5
atoms: 20
mcp: true
---

# Random Trivia, Quotes & Life Hacks API

Fetch random riddles, trivia, life hacks, quotes, and affirmations as simple JSON. Useful for daily prompts, onboarding cards, and content widgets.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-riddle` | What it does Returns a random riddle as a JSON object. You can optionally filter the result by pass… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-trivia` | What it does Retrieves a random trivia string from the service. You can optionally limit the maximu… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-life-hack` | What it does Returns a random life hack as a JSON object containing a title and a description. You… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-quote` | What it does Retrieves a random quote and returns it as a JSON object with the quote text and autho… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-affirmation` | What it does Retrieves a random affirmation and returns it in a JSON object. The response includes… | 20 |

## Endpoint reference

### Random Riddle API

`GET https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-riddle` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `difficulty` | query | string | no | One of: easy, medium, hard. Default: `easy`. Example: `easy`. |

#### Quickstart

Fetch a random riddle, optionally narrowing it by difficulty with a query parameter.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-riddle?difficulty=easy" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with nullable string fields: `answer`, `riddle`, and `difficulty`.

```json
{
  "answer": "Echo",
  "riddle": "What can you hear but never see?",
  "difficulty": "easy"
}
```

### Random Trivia API

`GET https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-trivia` · 20 atoms · accepts `application/json` · returns `application/json`

#### Quickstart

Fetch a random trivia string, optionally limiting its length with a query parameter.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-trivia?max-length=300" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `trivia` string field, which may be `null` if no trivia is available.

```json
{
  "trivia": "The shortest complete sentence in English is often said to be: \"I am.\""
}
```

### Random Life Hack API

`GET https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-life-hack` · 20 atoms · accepts `application/json` · returns `application/json`

#### Quickstart

Fetch a random life hack, optionally limiting its length with a query parameter.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-life-hack" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with nullable `title` and `description` string fields.

```json
{
  "title": "Save time with this kitchen hack",
  "description": "Store herbs upright in a jar with a little water to keep them fresh longer."
}
```

### Random Quote API

`GET https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-quote` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `max-length` | query | integer (int32) | no | Example: `300`. |
| `min-length` | query | integer (int32) | no | Example: `120`. |

#### Quickstart

Fetch a random quote, optionally narrowing it by minimum and maximum length using query parameters.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-quote?max-length=300&min-length=120" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with two nullable string fields: `quote` for the quote text and `author` for the quote’s author.

```json
{
  "quote": "The only way to do great work is to love what you do.",
  "author": "Steve Jobs"
}
```

### Random Affirmation API

`GET https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-affirmation` · 20 atoms · accepts `application/json` · returns `application/json`

#### Quickstart

Fetch a random affirmation.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/random-trivia-quotes-life-hacks-api/retrieve-random-affirmation" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with two top-level string fields: `image` and `affirmation`. Both are nullable, so either may be `null` in the response.

```json
{
  "image": "https://img.apileague.com/portrait-backgrounds/affirmation-147.png",
  "affirmation": "I am present in this moment."
}
```

## About

## What it does
Random Knowledge lets you fetch short, ready-to-use content from five endpoints: riddles, trivia, life hacks, quotes, and affirmations. Each response is a simple JSON object, so you can drop the result straight into a widget, homepage module, onboarding screen, or daily content feed.

The service provides random riddles, trivia, life hacks, quotes, and affirmations, with some endpoints offering optional parameters to control the type or length of content returned.

For quote flows, **GET /retrieve-random-quote** accepts optional `max-length` and `min-length` query values and returns a `quote` plus `author`. **GET /retrieve-random-affirmation** takes no input and returns an `affirmation` and an `image` field. All fields in the responses are nullable, so your client should handle empty values gracefully.

Random Knowledge is useful anywhere you want lightweight, human-friendly content without building your own content pipeline: a daily prompt in a product dashboard, a fresh onboarding card, a classroom activity, or a small engagement feature in a consumer app.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/skycraft/service/random-trivia-quotes-life-hacks-api
