Trivia Nerd

Open Trivia Question API

Search Questions


Random Sample Questions

Total Number of Questions Presently: 190
Style Category Question Answer
standard Star Wars What was Grand Moff Tarkin's homeworld? Eriadu
standard Star Wars What type of droid was Anakin Skywalker building to help his mother? Anakin Skywalker was building a protocol droid to help his mother.
standard Star Wars What did Han Solo say was wrong in the detention center when he was contacted? Han said they had a weapons malfunction in the detention center.
standard Star Wars What was the number of the detention block that contained Princess Leia's cell? AA-23
standard Star Wars Why did the Jedi and Queen Amidala have to land on Tatooine? The Jedi and Queen Amidala had to land on Tatooine because their hyperdrive engine had been damaged.

Sample API Request & JSON Response

Request

GET /api/questions?limit=5&random=true


Response

API Usage

Questions

GET /api/questions

Retreive questions.

Parameter Datatype Default Description
difficulty int 0 0 (Unknown); 1 (Easy) - 5 (Expert)
style string standard standard, jeopardy, analogy
category string Category you want to return
limit int 10 Number of questions to return
offset int 0 Offset the returned questions
random boolean 0 Retreive a random selection of questions

POST /api/questions

Add new questions to the dataset.

Parameter Datatype Default Description
question string required
answer string required
style string standard standard, jeopardy, analogy
category string
difficulty int 0 0 (Unknown); 1 (Easy) - 5 (Expert)
tags string Comma separated list of keywords
meta string Additional information related to the question
reference string URL, book, or person to cite as research source for this question

Categories

GET /api/categories

Retreive a list of available categories.

  • No parameters available

Tags

GET /api/tags

Retreive a list of used tags.

  • No parameters available