Open Trivia DB Scraper
Pricing
from $10.00 / 1,000 results
Open Trivia DB Scraper
Scrape trivia questions from Open Trivia Database. Get questions with answers across 24 categories and 3 difficulty levels. Perfect for quiz apps, games, and educational content.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
lulz bot
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Scrape trivia questions from the Open Trivia Database (opentdb.com). Get questions with answers across 24 categories and 3 difficulty levels. Perfect for quiz apps, games, and educational content.
Features
- 24 categories: General Knowledge, Science, History, Geography, Sports, Art, Music, Film, and more
- 3 difficulty levels: Easy, Medium, Hard (or any)
- 2 question types: Multiple Choice and True/False
- Deduplication: Uses session tokens to ensure no duplicate questions
- HTML decoded: All questions and answers are properly decoded from HTML entities
- Shuffled answers:
allAnswersarray has correct + incorrect answers randomly shuffled
Output Fields
| Field | Description |
|---|---|
category | Question category (e.g. "Science & Nature") |
type | multiple (4 choices) or boolean (true/false) |
difficulty | easy, medium, or hard |
question | The trivia question text |
correctAnswer | The correct answer |
incorrectAnswers | Array of wrong answers |
allAnswers | Shuffled array of all answers (correct + incorrect) |
scrapedAt | ISO timestamp |
Input Options
- Category: Choose from 24 categories or "Any Category"
- Difficulty: Easy, Medium, Hard, or Any
- Question Type: Multiple Choice, True/False, or Any
- Limit: 1 to 1000 questions (default 50)
Use Cases
- Quiz apps: Build trivia games with ready-made question banks
- Education: Create study materials and practice tests
- Chatbots: Add trivia features to Discord/Slack bots
- Content generation: Generate quiz content for social media
- Game development: Populate trivia mini-games with real questions
Example Output
{"category": "Science & Nature","type": "multiple","difficulty": "medium","question": "What is the chemical symbol for gold?","correctAnswer": "Au","incorrectAnswers": ["Ag", "Fe", "Gd"],"allAnswers": ["Fe", "Au", "Gd", "Ag"],"scrapedAt": "2026-04-26T12:00:00.000Z"}
Rate Limits
The Open Trivia Database allows 1 request per 5 seconds. The scraper automatically handles rate limiting and pagination. Fetching 1000 questions takes approximately 2 minutes.
Run on Apify
This scraper runs on the Apify platform — a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.