# Trivia Questions

Quiz questions with category and difficulty filters — the seed every trivia app starts from.

- Method: `GET`
- Path: `/v1/entertainment/trivia`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `amount` | integer | optional | 1 to 20 questions. |
| `category` | integer | optional | Category id, 9-32 — see OpenTDB's own list. |
| `difficulty` | string | optional | `easy`, `medium`, or `hard`. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/entertainment/trivia \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "questions": [
      {
        "category": "General Knowledge",
        "type": "multiple",
        "difficulty": "medium",
        "question": "Which company was founded by Bill Gates?",
        "correctAnswer": "Microsoft",
        "incorrectAnswers": ["Apple", "IBM", "Google"]
      }
    ]
  },
  "meta": { "request_id": "req_7Q2fK4mZ", "as_of": "2026-08-22T04:05:00.000Z", "age_seconds": 42, "next_update_at": "2026-08-23T04:05:00.000Z" }
}
```