Trivia Question Generator (Open Trivia DB)
Pricing
from $0.80 / 1,000 results
Trivia Question Generator (Open Trivia DB)
Pull trivia questions with the correct answer and distractors, filterable by category (general knowledge, science, geography, history, entertainment and more), difficulty and question type. Free Open Trivia DB API, no key, CC BY-SA 4.0 licensed question data.
Pricing
from $0.80 / 1,000 results
Rating
0.0
(0)
Developer
돈벼락
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 hours ago
Last modified
Categories
Share
Pull trivia questions with the correct answer and distractors, filterable by category (general knowledge, science, geography, history, entertainment and more), difficulty and question type. Free Open Trivia DB API, no key, CC BY-SA 4.0 licensed question data.
What does Trivia Question Generator (Open Trivia DB) do?
Generate trivia questions with answers by category and difficulty, from a database of 4,000+ verified questions.
What can you use it for?
- Generate quiz content for apps, newsletters or social posts.
- Build trivia games or Q&A bots with ready-made answer keys.
- Create study or icebreaker question sets by topic.
- Localize or remix public-domain-licensed trivia content.
Why use this Actor?
- Fast and cheap: lightweight HTTP-based Actor with no browser, so runs finish in seconds and cost very little.
- No API keys or accounts needed for the data source (see notes below).
- Clean, structured JSON that you can export as CSV, Excel, JSON or XML, or pull through the Apify API and integrations.
- Scheduling, webhooks and integrations: run it daily and send results to Google Sheets, Slack, Zapier, Make, n8n or your own API.
Input
Configure the run in the Input tab (all fields have sensible defaults).
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
category | string (9 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17 / 18 / 19 / 20 / 21 / 22 / 23 / 24 / 25 / 26 / 27 / 28 / 29 / 30 / 31 / 32) | no | - | Trivia topic. |
difficulty | string (easy / medium / hard) | no | - | Question difficulty. |
type | string (multiple / boolean) | no | - | Multiple choice or true/false. |
maxResults | integer | no | 10 | How many trivia questions to return. |
Example input
{"maxResults": 10}
Output
Results are stored in the default dataset. Download them from the Output tab or via the API.
Example result
{"category": "Celebrities","type": "boolean","difficulty": "easy","question": "Tupac Shakur died due to complications from being stabbed in 1996.","correctAnswer": "False","incorrectAnswers": "True","scrapedAt": "2026-10-13T20:36:22.191Z"}
Output fields
| Field | Type | Example |
|---|---|---|
category | string | "Celebrities" |
type | string | "boolean" |
difficulty | string | "easy" |
question | string | "Tupac Shakur died due to complications from being stabbe... |
correctAnswer | string | "False" |
incorrectAnswers | string | "True" |
scrapedAt | string | "2026-10-13T20:36:22.191Z" |
How much does it cost?
The Actor is billed by Apify according to the pricing shown on the Pricing tab of this page. Runs are small and fast, and the Apify Free plan includes monthly platform credits so you can try it at no cost. You can set a maximum cost per run, and the Actor stops cleanly when that limit is reached.
Notes and limitations
- Question and answer text is quoted under CC BY-SA 4.0; keep attribution and the same licence when reusing the text itself.
- The source API allows one request per 5 seconds per IP; large maxResults values are drawn from a single request (max 50).
Tips
- Start with a small test run, then scale up the input.
- Use Schedules to automate recurring runs and Webhooks or Integrations to deliver the data where you need it.
- Call the Actor from your code with the Apify API or the official JavaScript and Python clients.
FAQ
What does correctIndex mean?
The 0-based position of the correct answer once it is shuffled into the allAnswers list, so you can build a multiple-choice UI directly.
Can I get true/false questions only?
Yes, set Question type to Boolean (true / false).
Feedback
Found a bug or need an extra field? Open an issue from the Issues tab of this Actor and it will be looked at quickly.
More tools from the same author
- Word Finder: Synonyms, Rhymes & Related Words (Datamuse) - Find words by meaning, sound or spelling: synonyms, rhymes, related words, parts of speech and definitions.
- TV Show Search: Shows, Networks, Ratings & IMDb IDs (TVmaze) - Search TV shows via TVmaze: genres, status, network, premiere date, rating, IMDb ID and summary.
- Wikipedia Trending: Top Viewed Articles per Day & Language - The most viewed Wikipedia articles of any day in any language: rank, views and links.