ParseForge Scrapers

Open Trivia DB Quiz Questions Scraper

parseforge/opentdb-trivia-scraper

GAMESEducationOther

Scrapes trivia questions from Open Trivia DB with optional category, difficulty, and type filters. Returns each question as a flat row with correct and wrong answers.

Run this scraper See the API call
Total users
1
Monthly active
0
Total runs
123
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

Open Trivia DB Quiz Questions Scraper

Scrape trivia questions from any Open Trivia DB category, difficulty, or type, up to a million per run. Every question comes with its correct answer, wrong answers, and category metadata. No API key or registration. Export to CSV, JSON, Excel, or XML.

Open Trivia DB's own API rate-limits you and returns only 50 questions per call. This Actor reads the public question pool directly, filtered by category, difficulty, and question type, and returns each match in one fixed schema. Build a quiz bank, train a model, or seed a game without writing a single loop.

Who uses it What they scrape Open Trivia DB for
Quiz app developers Populate a question bank for a mobile or web quiz game
Teachers and educators Generate practice tests or classroom warm-up questions
Trivia night hosts Pull themed question sets for a pub quiz or event
NLP researchers Build a dataset for question-answering or distractor generation models

What it does

This Actor collects trivia questions from Open Trivia DB by category, difficulty, and type, and returns each one as a flat row.

  • ๐Ÿ“š 24 trivia categories: General Knowledge, Science, History, Sports, Anime, and more.
  • ๐ŸŽฏ Difficulty filter: easy, medium, or hard questions, or mix all three.
  • ๐Ÿ”˜ Question type filter: multiple choice or true/false, or pull both.
  • ๐Ÿ“ฆ Bulk collection: set a max from 1 to 1,000,000 questions per run.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Open Trivia DB data

๐Ÿ“ฑ Build a quiz app question bank.

A mobile game developer pulls 10,000 multiple-choice science questions at medium difficulty to seed a new trivia app.

๐ŸŽ“ Generate classroom practice tests.

A high school history teacher scrapes 200 hard-level questions on World War II for a semester review quiz.

๐Ÿป Stock a pub trivia night.

A trivia host collects 500 mixed-category questions across easy and medium difficulties for a weekly bar event.

๐Ÿค– Train a question-answering model.

An NLP researcher scrapes 50,000 questions with correct and incorrect answers to fine-tune a distractor evaluation model.

Why choose this scraper

What you get
No API key needed Reads the public question pool with zero registration
Fixed flat schema Every question lands in the same columns for easy analysis
Bulk exports Save to CSV, JSON, Excel, or XML in one click

How it compares

This Actor and the Open Trivia DB Scraper both pull from the same public question pool, but they differ in how they expose filters and scale.

Feature ParseForge Open Trivia DB Scraper
Category filter Yes, 24 categories Yes, 24 categories
Difficulty filter Yes, easy/medium/hard Yes, 3 levels
Question type filter Yes, multiple choice or true/false Not listed
Up to 1,000,000 questions per run Yes Not listed
No API key required Yes Not listed

Configure the run

Drive the Actor with optional category, difficulty, and question type filters, and it stops when it reaches your chosen maximum. The Input tab lists every parameter.

A first run with the defaults:

{
  "maxItems": 10
}

A larger pull:

{
  "maxItems": 200
}

Pricing

Pay-per-result: $0.01067 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $1.07
1,000 results $10.67
10,000 results $106.70

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Open Trivia DB Quiz Questions Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Open Trivia DB through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/opentdb-trivia-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting fewer questions than my maxItems setting?

The public pool has a finite number of questions per category and difficulty combination. If your filters are too narrow, the Actor returns all available matches and stops. Broaden your filters or lower maxItems.

Why are some questions duplicated?

Open Trivia DB may return the same question across multiple API calls when the pool is small relative to your request. Increase the category or difficulty range to reduce repeats.

The run failed with a timeout error.

Large requests can take time. Increase the Actor's timeout in the run settings, or reduce maxItems and run multiple smaller batches.

I see HTML entities like " in the question text.

The raw data includes encoded characters. Use a post-processing step in your code or a spreadsheet find-and-replace to decode them.

Can I filter by a specific keyword in the question?

The Actor does not support keyword search. Pull a broad set and filter the exported dataset locally by the question text column.

FAQ

Question Answer
Do I need an API key for Open Trivia DB? No. This Actor reads the public question pool directly and does not require any registration or API key.
How many questions can I get in one run? You can set the maximum from 1 up to 1,000,000 questions per run. The Actor stops when it reaches that number.
Can I filter by category? Yes. Choose from 24 categories including General Knowledge, Science, History, Sports, and Anime, or leave it on Any to pull from all categories.
Can I get only true/false questions? Yes. Set the question type filter to True/False, or choose Multiple Choice, or leave it on Any for both.
Does this include the correct answer? Yes. Every question row includes the correct answer and the list of wrong answers.
What export formats are supported? You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform.
Can I mix easy, medium, and hard questions? Yes. Leave the difficulty filter on Any to pull questions from all three levels in one run.
Is there a rate limit? The Actor handles pacing internally. You do not need to manage retries or backoff yourself.
Can I schedule this to run daily? Yes. Use Apify's scheduler to run the Actor on a recurring basis and refresh your question bank automatically.
Does this scrape user-submitted questions? No. It pulls only from the verified public question pool maintained by Open Trivia Database.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Open Trivia Database. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
maxItems integer How many questions to collect per run. 10
category string (25 options) Open Trivia DB category. Empty = any. not set
difficulty string (4 options) Easy, medium, or hard. Empty = any. not set
type string (3 options) Multiple choice or true/false. Empty = any. not set

Pricing

from $8.00 per 1,000 results

Charged forWhat it isPrice each
Result item Charged per record successfully returned in the dataset. $0.008 to $0.01067

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~opentdb-trivia-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Open Trivia DB Quiz Questions Scraper on Apify All scrapers