SurveyStatistic Sub-Object

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/v4/survey/123456/surveystatistic
ParametersExampleRequired
Authentication Credentialsapi_token=abcd12345&api_token_secret=abcd12345
True
surveypagePage ID for which you would like resultsFalse
surveyquestionQuestion ID for which you would like resultsFalse

Response Example (.debug format):


Array
(
 [result_ok] => 1
 [total_count] => 8
 [page] => 1
 [total_pages] => 1
 [results_per_page] => 8
 [data] => Array
 (
 [0] => Array
 (
 [id] => [question(79)]
 [_type] => SurveyStatistics
 [_subtype] => radio
 [Breakdown] => Array
 (
 [0] => Array
 (
 [label] => Dogs
 [_type] => Stat
 [percentage] => 80.0
 [count] => 8
 )

 [1] => Array
 (
 [label] => Cats
 [_type] => Stat
 [percentage] => 20.0
 [count] => 2
 )

 )

 [Total Responses] => 10
 [Sum] => 0
 [Average] => 
 [StdDev] => 0.00
 [Min] => 0.0
 [Max] => 0.0
 )

 [1] => Array
 (
 [id] => [question(3)]
 [_type] => SurveyStatistics
 [_subtype] => checkbox
 [Breakdown] => Array
 (
 [0] => Array
 (
 [label] => Cat
 [_type] => Stat
 [percentage] => 88.9
 [count] => 8
 )

 [1] => Array
 (
 [label] => Other
 [_type] => Stat
 [percentage] => 55.6
 [count] => 5
 )

 [2] => Array
 (
 [label] => Bird
 [_type] => Stat
 [percentage] => 55.6
 [count] => 5
 )

 [3] => Array
 (
 [label] => Dog
 [_type] => Stat
 [percentage] => 44.4
 [count] => 4
 )

 )

 [Total Responses] => 9
 [Sum] => 3685019
 [Average] => 921254.75
 [StdDev] => 1,595,653.11
 [Min] => 0.0
 [Max] => 3,685,007.0
 )

 [2] => Array
 (
 [id] => [question(7)]
 [_type] => SurveyStatistics
 [_subtype] => menu
 [Breakdown] => Array
 (
 [0] => Array
 (
 [label] => WV
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [1] => Array
 (
 [label] => NJ
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [2] => Array
 (
 [label] => MH
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [3] => Array
 (
 [label] => PA
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [4] => Array
 (
 [label] => AS
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [5] => Array
 (
 [label] => HI
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [6] => Array
 (
 [label] => SC
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [7] => Array
 (
 [label] => ME
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [8] => Array
 (
 [label] => MP
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 [9] => Array
 (
 [label] => NY
 [_type] => Stat
 [percentage] => 10.0
 [count] => 1
 )

 )

 [Total Responses] => 10
 [Sum] => 0
 [Average] => 
 [StdDev] => 0.00
 [Min] => 0.0
 [Max] => 0.0
 )

 [3] => Array
 (
 [id] => [question(4)]
 [_type] => SurveyStatistics
 [_subtype] => slider
 [Total Responses] => 9
 [Sum] => 30
 [Average] => 3.33333333333333
 [StdDev] => 0.82
 [Min] => 2.0
 [Max] => 5.0
 )

 [4] => Array
 (
 [id] => [question(5)]
 [_type] => SurveyStatistics
 [_subtype] => multi_slider
 [Total Responses] => 8
 [Sum] => 52
 [Average] => 2.88888888888889
 [StdDev] => 1.45
 [Min] => 1.0
 [Max] => 5.0
 )

 [5] => Array
 (
 [id] => [question(15)]
 [_type] => SurveyStatistics
 [_subtype] => image_select
 [Breakdown] => Array
 (
 [0] => Array
 (
 [label] => Summer
 [_type] => Stat
 [percentage] => 27.3
 [count] => 3
 )

 [1] => Array
 (
 [label] => Fall
 [_type] => Stat
 [percentage] => 27.3
 [count] => 3
 )

 [2] => Array
 (
 [label] => Spring
 [_type] => Stat
 [percentage] => 27.3
 [count] => 3
 )

 [3] => Array
 (
 [label] => Winter
 [_type] => Stat
 [percentage] => 18.2
 [count] => 2
 )

 )

 [Total Responses] => 11
 [Sum] => 0
 [Average] => 
 [StdDev] => 0.00
 [Min] => 0.0
 [Max] => 0.0
 )

 [6] => Array
 (
 [id] => [question(9)]
 [_type] => SurveyStatistics
 [_subtype] => image_select
 [Breakdown] => Array
 (
 [0] => Array
 (
 [label] => Tomato
 [_type] => Stat
 [percentage] => 27.3
 [count] => 3
 )

 [1] => Array
 (
 [label] => Strawberry
 [_type] => Stat
 [percentage] => 27.3
 [count] => 3
 )

 [2] => Array
 (
 [label] => Cherries
 [_type] => Stat
 [percentage] => 18.2
 [count] => 2
 )

 [3] => Array
 (
 [label] => Broccoli
 [_type] => Stat
 [percentage] => 18.2
 [count] => 2
 )

 [4] => Array
 (
 [label] => Corn
 [_type] => Stat
 [percentage] => 9.1
 [count] => 1
 )

 [5] => Array
 (
 [label] => Carrot
 [_type] => Stat
 [percentage] => 9.1
 [count] => 1
 )

 )

 [Total Responses] => 11
 [Sum] => 0
 [Average] => 
 [StdDev] => 0.00
 [Min] => 0.0
 [Max] => 0.0
 )

 [7] => Array
 (
 [id] => [question(10)]
 [_type] => SurveyStatistics
 [_subtype] => table
 )

 )

)

Back to the Top