VOOZH about

URL: https://apify.com/parseforge/opentdb-trivia-scraper

โ‡ฑ Open Trivia Database Question Scraper ยท Apify


๐Ÿ‘ Open Trivia DB Quiz Questions Scraper avatar

Open Trivia DB Quiz Questions Scraper

Pricing

from $8.00 / 1,000 result items

Go to Apify Store

Open Trivia DB Quiz Questions Scraper

Pull trivia questions from Open Trivia DB. Returns category, type (multiple/true-false), difficulty, question text, correct answer, incorrect answers. Filter by category (24 supported: science, history, geography, art, sports, etc.), difficulty (easy/medium/hard), or type.

Pricing

from $8.00 / 1,000 result items

Rating

0.0

(0)

Developer

๐Ÿ‘ ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

24 days ago

Last modified

Share

๐Ÿ‘ ParseForge Banner

๐Ÿง  Open Trivia Database Question Scraper

๐Ÿš€ Pull trivia questions across 24 categories with correct + incorrect answers, difficulty, type, category counts. Stable IDs for dedupe.

๐Ÿ•’ Last updated: 2026-05-08 ยท ๐Ÿ“Š 26 fields per record ยท 21,000+ trivia questions ยท 24 categories ยท easy / medium / hard ยท multiple choice + true/false ยท stable hash IDs ยท category + global counts

The Open Trivia Database Question Scraper pulls trivia questions from the Open Trivia DB community dataset. Output includes a stable question ID (SHA-1 hash for dedupe across runs), category name + numeric ID + group + subject, difficulty, type, language, the question text + length + word count, correct answer, incorrect answers (plain + joined text), all answers shuffled with the correct answer's index, per-category total + easy + medium + hard counts, and global category counts (total / verified / pending / rejected).

The Actor uses session tokens to avoid duplicates within a run, plus a SHA-1 hash of the question for dedupe across runs. Filter by category, difficulty (easy / medium / hard), and type (multiple choice / true-false).

๐ŸŽฏ Target Audience๐Ÿ’ก Primary Use Cases
Quiz app builders, ML / NLP researchers, education platforms, party-game makers, content marketersQuiz / trivia apps, educational content generation, NLP training data, conversational agents, party games

๐Ÿ“‹ What the Open Trivia Database Question Scraper does

Five filtering workflows in a single run:

  • ๐Ÿ†” Stable question IDs. SHA-1 hash for dedupe across runs.
  • ๐Ÿท๏ธ 24 categories. General Knowledge, Books, Film, Music, Science, History, Sports, etc.
  • ๐Ÿ“Š Difficulty filter. Easy / medium / hard.
  • โœ… Type filter. Multiple choice or true / false.
  • ๐Ÿ“ˆ Category counts included. Per-category and global totals (verified / pending / rejected).

๐Ÿ’ก Why it matters: clean, server-side filtering and fresh data on every run.


๐ŸŽฌ Full Demo

๐Ÿšง Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded dataset.


โš™๏ธ Input

InputTypeDefaultBehavior
maxItemsinteger10Records to return. Free plan caps at 10, paid plan up to 1,000,000.
categorystring""Category ID (9 = General Knowledge, 11 = Film, 21 = Sports, etc). Empty = any.
difficultystring""easy, medium, or hard. Empty = any.
typestring""multiple or boolean. Empty = any.

Example: 100 random trivia questions.

{
"maxItems":100
}

Example: hard science questions.

{
"maxItems":50,
"category":"17",
"difficulty":"hard"
}

๐Ÿ“Š Output

Each record contains 26 fields. Download as CSV, Excel, JSON, or XML.

๐Ÿงพ Schema

FieldTypeExample
๐Ÿ†” questionIdstring"a1b2c3d4e5f6g7h8"
๐Ÿท๏ธ categorystring"Geography"
๐Ÿ†” categoryIdnumber22
๐Ÿท๏ธ categorySubjectstring"Geography"
๐Ÿ“Š difficultystring"hard"
๐Ÿ“Š typestring"multiple"
๐ŸŒ languagestring"en"
โ“ questionstring"What North American tourist attraction is served by..."
๐Ÿ“ questionLengthnumber88
๐Ÿ”ข wordCountnumber15
โœ… correctAnswerstring"Niagara Falls"
โŒ incorrectAnswersarray["Whistler","Disney World","Yosemite"]
๐Ÿ”€ allAnswersarray["Niagara Falls","Yosemite","Disney World","Whistler"]
๐Ÿ”ข answerCountnumber4
โœ… correctAnswerIndexnumber0
๐Ÿ“Š categoryTotalQuestionsnumber383
๐Ÿ“Š categoryEasyCountnumber121
๐Ÿ“Š categoryMediumCountnumber179
๐Ÿ“Š categoryHardCountnumber83
๐Ÿ“Š categoryGlobalTotalnumber815
๐Ÿ“Š categoryGlobalVerifiednumber383
๐Ÿ“Š categoryGlobalPendingnumber269
๐Ÿ“Š categoryGlobalRejectednumber163

๐Ÿ“ฆ Sample records


โœจ Why choose this Actor

Capability
๐Ÿ†”Stable IDs. SHA-1 hash of question lets you dedupe across runs (the API has no native ID).
๐Ÿ”€Shuffled answers + index. Quiz-app ready: all answers in random order plus the index of the correct answer.
๐Ÿ“ŠCategory counts. Per-category and global counts let you weight your sampling.
๐ŸŒ24 categories. From General Knowledge through Sports, Science, History, Books, Film, Music.
๐Ÿ†“Free + open. Open Trivia DB is community-maintained.

๐Ÿ“ˆ How it compares to alternatives

ApproachCostCoverageRefreshFiltersSetup
โญ This Actor$5 free credit24 categoriesLive per runFiltersโšก 2 min
Open Trivia DB directFreeSameLiveDIY๐Ÿข Code
Trivia API (paid)$$LargerLiveYes๐Ÿข Account
Manual scrapingFreeMixedLiveDIY๐Ÿข Days

๐Ÿš€ How to use

  1. ๐Ÿ“ Sign up. Create a free account with $5 credit (takes 2 minutes).
  2. ๐ŸŒ Open the Actor. Find the Open Trivia Database Question Scraper on the Apify Store.
  3. ๐ŸŽฏ Set input. Pick filters and maxItems.
  4. ๐Ÿš€ Run it. Click Start.
  5. ๐Ÿ“ฅ Download. Grab results in the Dataset tab as CSV, Excel, JSON, or XML.

โฑ๏ธ Total time from signup to dataset: 3-5 minutes. No coding required.


๐Ÿ’ผ Business use cases

๐Ÿ“ฑ Quiz + Trivia Apps

  • Question banks for trivia apps
  • Daily quiz generators
  • Party-game card decks
  • Pub-trivia content

๐Ÿค– ML + NLP

  • Train QA models
  • Multiple-choice fine-tuning
  • Distractor-generation research
  • Difficulty-prediction studies

๐ŸŽ“ Education

  • Classroom quiz tools
  • After-school trivia clubs
  • Reading-comprehension warm-ups
  • Learning-app gamification

๐ŸŽฒ Games + Entertainment

  • Board-game card content
  • Streaming-show fact moments
  • Holiday party games
  • Mobile game side-quests

๐Ÿ”Œ Automating Open Trivia Database Question Scraper

Control the scraper programmatically:

  • ๐ŸŸข Node.js. Install the apify-client NPM package.
  • ๐Ÿ Python. Use the apify-client PyPI package.
  • ๐Ÿ“š See the Apify API documentation for full details.

The Apify Schedules feature lets you trigger this Actor on any cron interval.


๐ŸŒŸ Beyond business use cases

Data like this powers more than commercial workflows.

๐ŸŽ“ Research and academia

  • QA datasets
  • Distractor research
  • Difficulty calibration
  • Reproducible trivia corpora

๐ŸŽจ Personal and creative

  • Personal trivia collections
  • Pub-quiz hosting
  • Side projects with question data
  • Quiz-app prototypes

๐Ÿค Non-profit and civic

  • Educational trivia outreach
  • Free quiz collections
  • Public-library trivia nights
  • Community game events

๐Ÿงช Experimentation

  • Train answer-generators
  • Prototype tutoring agents
  • Build difficulty-classifiers
  • Test gamification logic

๐Ÿค– Ask an AI assistant about this scraper

Open a ready-to-send prompt in the AI of your choice:


โ“ Frequently Asked Questions

๐Ÿงฉ How does it work?

Set optional filters (category, difficulty, type) and a max item count. The Actor pages OpenTDB with a session token to avoid duplicates and emits one record per question.

๐Ÿ“Š How many fields per record?

26, including the question text, correct + incorrect answers, all answers shuffled, category + global counts, stable ID.

๐Ÿ†” What's questionId?

SHA-1 hash of category + type + difficulty + question + correct answer. Stable across runs for dedupe.

๐ŸŒ Are non-English questions supported?

No. OpenTDB is English-only.

๐Ÿ“Š What does correctAnswerIndex mean?

Index (0-based) of the correct answer inside the shuffled allAnswers array. Useful for quiz UIs.

๐Ÿ”ข Why are there only 24 categories?

OpenTDB defines 24 active categories. The category list is loaded once at the start of each run.

โฑ๏ธ Why is this slower than other Actors?

OpenTDB rate-limits to 1 request per 5 seconds. 100 items takes ~18 seconds.

๐Ÿ†“ Do I need an API key?

No. OpenTDB is free and open.

๐Ÿ” Can I schedule runs?

Yes. Schedule daily for a fresh question rotation.

๐Ÿ’ณ Do I need a paid Apify plan?

No. The free plan covers preview runs (10 records).


๐Ÿ”Œ Integrate with any app

Open Trivia Database Question Scraper connects to any cloud service via Apify integrations:

  • Make - Automate multi-step workflows
  • Zapier - Connect with 5,000+ apps
  • Slack - Get run notifications
  • Airbyte - Pipe data into your warehouse
  • GitHub - Trigger runs from commits
  • Google Drive - Export datasets to Sheets

๐Ÿ”— Recommended Actors

๐Ÿ’ก Pro Tip: browse the complete ParseForge collection for more reference-data scrapers.


๐Ÿ†˜ Need Help? Open our contact form to request a new scraper, propose a custom data project, or report an issue.


โš ๏ธ Disclaimer: this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the Open Trivia DB project, its maintainers, or any individual question contributor. All trademarks mentioned are the property of their respective owners. Only publicly available open data is collected.

You might also like

Open Trivia Database Scraper

crawlerbros/opentriviadb-scraper

Scrape trivia questions from the Open Trivia Database (opentdb.com). Filter by category, difficulty, and question type. Returns questions with correct and incorrect answers. No API key required.

OpenTDB Trivia Scraper

gio21/opentdb-trivia-scraper

Open Trivia Database scraper. Pull multiple-choice or true/false trivia by category, difficulty. 4000+ questions across 24 categories (general, books, film, music, science, history, sports, geography, animals, etc.). For quiz apps, edtech, games.

Trivia Actor

pintostudio/trivia-actor

A powerful and easy-to-use actor for generating trivia questions. Perfect for creating quiz applications, educational content, or entertainment purposes.

Ai Question Generator

sunvic567/ai-question-generator

Generate educational questions from any document automatically. AI-powered quiz maker creates multiple choice, true/false, essay questions from PDFs and DOCX files. Perfect for teachers, trainers, and e-learning. Customize difficulty, export to JSON/CSV/Moodle XML. Turn documents into assessments.

5

4.0

Open Brewery DB Scraper

gio21/openbrewerydb-scraper

Scrape Open Brewery DB - free, open dataset of breweries (mostly US, some international). Search by name, city, state, type. Returns name, type, address, phone, website, coordinates. For local guides, tourism, beverage industry apps.

Quora Scraper

jungle_synthesizer/quora-scraper

Scrape Quora questions and answers by keyword search or direct question URLs. Extracts question title, answer text, author info, upvote counts, and engagement metrics. Supports bulk extraction with configurable result limits.

๐Ÿ‘ User avatar

BowTiedRaccoon

2

Crypto Airdrop Difficulty Ranker

krypstorm/my-actor

Crypto Airdrop Difficulty Ranker automatically discovers crypto airdrops, analyzes required tasks, ranks them by difficulty (Easy, Medium, Hard), removes duplicates, and outputs clean, actionable data for alerts and research.