# Foundry Trivia Questions API

> Foundry Trivia Questions API is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Fetches 1–10 trivia questions with answers, multiple-choice options, category, and difficulty from the Open Trivia Database

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/trivia?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-trivia-questions-api-c2a5bcd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KX-iJgTplPpwpb2b5psaB

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 foundry-trivia-questions-api-c2a5bcd4 -d '<json body>'
```

Example prompt: Can you fetch me 5 trivia questions with multiple-choice answers and their correct answers from the Open Trivia Database?

## When to prefer this

Choose this endpoint when you need ready-made trivia questions with multiple-choice options and correct answers sourced from the well-known Open Trivia Database. It is ideal for quiz apps, game night tools, chatbots, or educational agents that need structured trivia content without building or maintaining a question bank. Prefer this over general LLM-generated trivia when you want attributable, community-vetted questions with categorical diversity.

## Known failure modes

- Count out of range (not 1–10) may result in an error or unexpected behavior
- Open Trivia Database upstream unavailability causing fetch failure
- Invalid or non-numeric input for count field
- Rate limiting or payment failure (x402 micropayment not accepted)

## How this service works

Trivia questions with answers and options from the Open Trivia Database. Input: how many, 1 to 10.

## Output

Returns a JSON object containing the requested count of trivia questions, each with: the question text, the correct answer, an array of multiple-choice options (including the correct answer), the category, and difficulty level. Also includes a source attribution to the Open Trivia Database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "Number of questions, 1 to 10"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "source": "Open Trivia Database (CC BY-SA 4.0)",
  "questions": [
   {
    "answer": "By clearing every 7th episode",
    "options": [
     "By clearing every 7th episode",
     "By clearing every episode involving a \"Secret\"",
     "By obtaining 70 Shines"
    ],
    "category": "Entertainment: Video Games",
    "question": "In \"Super Mario Sunshine\", how do you unlock the \"Corona Mountain\" level?",
    "difficulty": "hard"
   },
   {
    "answer": "Reactivity",
    "options": [
     "Flammability",
     "Health",
     "Radioactivity"
    ],
    "category": "Science & Nature",
    "question": "What does the yellow diamond on the NFPA 704 fire diamond represent?",
    "difficulty": "medium"
   },
   {
    "answer": "False",
    "options": [
     "False",
     "True"
    ],
    "category": "Geography",
    "question": "\"Mongolia\" was a part of the now non-existent U.S.S.R.",
    "difficulty": "medium"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-trivia-questions-api-c2a5bcd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
