Trivia Web Services API

Here are the methods you can use. Please note that a valid API key is required, and must be passed with a key paremeter in the URL:

Verb Endpoint Description Examples
GET /categories Get a JSON array of category names. /categories
GET /random Get a JSON object representing a single trivia question from any category. /random
GET /random/category_name Get a JSON object representing a single trivia question from the category_name category. /random/music
GET /random?limit=10 Get a JSON array of a specific number of trivia questions from any category. Valid numbers are 1-10. /random?limit=10
GET /random/category?limit=10 Get a JSON array of a specific number of trivia questions from the category_name category. Valid numbers are 1-10. /random/music?limit=10