Gamuts API

Quiz


GET http://gamuts.net/api/quiz

Generates a multiple-choice question (MCQ) with up to five options.

The API supports the following parameters:

  • stemType: question format (null = random)
    • 0 = Which ONE of the items causes X?
    • 1 = X is caused by all EXCEPT ...
    • 2 = Which item below is caused by X?
    • 3 = X causes all EXCEPT ...
  • num: number of options (3-5, default 4)

The JSON response includes the following:

  • stem
    • id: entity ID number
    • name: entity name
    • question: question text, with proper capitalization and the entity name in boldface
    • type: question format (see the "stemType" parameter)
  • option
    • id: option ID number
    • name: option name
    • answer: 1 = correct response; 0 = distractor


Example
GET https://gamuts.net/api/quiz?stemType=1&num=3
{
	"stem": {
		"id": "13396",
		"name": "left-to-right shunt in congenital heart disease",
		"question": "Left-to-right shunt in congenital heart disease is caused by all of the items below EXCEPT:",
		"type": "1",
		"topic": "Cardiovascular: Congenital Diseases of the Heart and Great Vessels"
	},
	"option": [
		{
			"id": "27986",
			"name": "Heart-hand syndrome",
			"answer": "1"
		},
		{
			"id": "13399",
			"name": "Patent ductus arteriosus",
			"answer": "0"
		},
		{
			"id": "13463",
			"name": "Ventricular septal defect",
			"answer": "0"
		}
	]
}

Return to General information.