The GET LIST call is the only call available for the Survey Statistic Sub-Object.
GET LIST - Get a list of statistics for all questions in a specified survey.
https://restapi.surveygizmo.com/v5/survey/123456/surveystatistic
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |
surveypage | Page ID for which you would like results | False |
surveyquestion | Question ID for which you would like results | False |
Response Example (.json format):
{
"result_ok": true,
"total_count": 0,
"page": 1,
"total_pages": 1,
"results_per_page": 0,
"data": [
{
"id": 5,
"type": "INSTRUCTIONS"
},
{
"id": 26,
"type": "RADIO",
"breakdown": [
{
"label": "Male",
"percentage": "66.7",
"count": "2"
},
{
"label": "Female",
"percentage": "33.3",
"count": "1"
}
],
"total responses": "3",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 27,
"type": "RADIO",
"breakdown": [
{
"label": "Married",
"percentage": "100.0",
"count": "3"
}
],
"total responses": "3",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 24,
"type": "MENU",
"breakdown": [
{
"label": "25-34",
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "25",
"average": "25",
"stdDev": "0.00",
"min": "25.0",
"max": "25.0"
},
{
"id": 25,
"type": "MENU",
"breakdown": [
{
"label": "3-4 years",
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "3",
"average": "3",
"stdDev": "0.00",
"min": "3.0",
"max": "3.0"
},
{
"id": 8,
"type": "GROUP"
},
{
"id": 9,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 10,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 13,
"type": "TEXTBOX",
"total responses": "1",
"sum": "4888",
"average": "4888",
"stdDev": "0.00",
"min": "4,888.0",
"max": "4,888.0"
},
{
"id": 14,
"type": "TEXTBOX",
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 15,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 16,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 17,
"type": "TEXTBOX",
"total responses": "1",
"sum": "80301",
"average": "80301",
"stdDev": "0.00",
"min": "80,301.0",
"max": "80,301.0"
},
{
"id": 18,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 19,
"type": "TEXTBOX",
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 20,
"type": "TEXTBOX",
"total responses": "1",
"sum": "123",
"average": "123",
"stdDev": "0.00",
"min": "123.0",
"max": "123.0"
},
{
"id": 57,
"type": "SCRIPT"
},
{
"id": 28,
"type": "RADIO",
"breakdown": [
{
"label": "Once per week",
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 30,
"type": "CHECKBOX",
"breakdown": [
{
"label": "Monday",
"percentage": "100.0",
"count": "1"
},
{
"label": "Tuesday",
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "0",
"average": 0,
"stdDev": null,
"min": null,
"max": null
},
{
"id": 32,
"type": "RADIO",
"breakdown": [
{
"label": 4,
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "4",
"average": "4",
"stdDev": "0.00",
"min": "4.0",
"max": "4.0"
},
{
"id": 34,
"type": "RADIO",
"breakdown": [
{
"label": 4,
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "4",
"average": "4",
"stdDev": "0.00",
"min": "4.0",
"max": "4.0"
},
{
"id": 33,
"type": "RADIO",
"breakdown": [
{
"label": 4,
"percentage": "100.0",
"count": "1"
}
],
"total responses": "1",
"sum": "4",
"average": "4",
"stdDev": "0.00",
"min": "4.0",
"max": "4.0"
},
{
"id": 2,
"type": "ESSAY"
},
{
"id": 36,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 37,
"type": "CHECKBOX",
"breakdown": [],
"total responses": null,
"sum": null,
"average": null,
"stdDev": "0.00",
"min": "0.0",
"max": "0.0"
},
{
"id": 38,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 39,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 40,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 41,
"type": "ESSAY"
},
{
"id": 42,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 46,
"type": "CHECKBOX",
"breakdown": [],
"total responses": null,
"sum": null,
"average": null,
"stdDev": "0.00",
"min": "0.0",
"max": "0.0"
},
{
"id": 47,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 48,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 49,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 4,
"type": "ESSAY"
},
{
"id": 50,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 51,
"type": "TEXTBOX",
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 52,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 54,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 55,
"type": "RADIO",
"breakdown": [],
"total responses": "0",
"sum": "0",
"average": "",
"stdDev": null,
"min": null,
"max": null
},
{
"id": 56,
"type": "ESSAY"
},
{
"id": 1,
"type": "INSTRUCTIONS"
}
]
}