Month: July 2015

Open REST API for Trivia Questions

Open REST API for Trivia Questions

Just finished the first draft of a new open API I’ve been working on for access to trivia questions. If you want to signup for an account (all free and open, remember) you can then make calls to retrieve questions, tags, and categories. You can also post your own questions if you’ve got ’em.

Here’s a sample call to retrieve 20 Jeopardy style questions at an offset (basically pages) of 2:

GET http://trivia.propernerd.com/api/questions?limit=2&offset=2&style=jeopardy

Here’s the response (all responses are JSON):

[ { "id":"106", "user_key":"1", "style":"standard", "difficulty":"0", "category":"Firefly", "question":"From what facility did the ship's doctor Simon rescue his sister River from?", "answer":"Mental", "tags":"sci-fi,pop-culture,western,firefly,serenity,tv,movies", "meta":"", "image":null, "reference":null, "datecreated":"2015-07-21 23:31:43", "datemodified":"2015-07-27 16:39:07" }, { "id":"107", "user_key":"1", "style":"standard", "difficulty":"0", "category":"Firefly", "question":"Simon and River's father had this occupation.", "answer":"Doctor", "tags":"sci-fi,pop-culture,western,firefly,serenity,tv,movies", "meta":"", "image":null, "reference":null, "datecreated":"2015-07-21 23:31:43", "datemodified":"2015-07-27 16:39:07" } ]

For more details on how to use the API check out the homepage: http://trivia.propernerd.com