What it does
The Open Trivia Database is a free, user-contributed collection of thousands of trivia questions. Ask for a number of questions by category, difficulty and type (multiple choice or true/false), and use a session token to avoid getting the same question twice. Responses are JSON. Free, no key needed; the questions are licensed under Creative Commons BY-SA.
More information: https://opentdb.com/api_config.php