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
7 Replies to “Open REST API for Trivia Questions”
When attempting to create an account I keep getting an HTTP Basic Auth login prompt now allowing me to create an account.
Just made an update to this. Hopefully you won’t have this problem anymore.
I want to use the API in developing an android app which will be free, non-commercial and for education purpose. Do I have permission to do that without copyright violation? I wouldn’t mind giving credit to this website through an attribution in the app screen.
Sounds great, that’s exactly the license it’s under. At the bottom of the page there’s a link for more specifics on the creative commons license (http://creativecommons.org/licenses/by-nc-sa/4.0/).
Let me know when you’ve published your app, I’d love to check it out.
Hey Jonathan!
Cool site and a really fun api idea!
I’m trying to create an account but nothing happens when I submit. Is it currently down?
Sorry, the login needs some work and I haven’t had time to fix it. I’ll let you know when it’s working again
Hi i have tried to create and account but nothing , when do you think the login will be fixed ?