SurveyStatistic Sub-Object v5

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=5D685159B6964FB69B044D3E7D2676D1 True
surveypage Page ID for which you would like results False
surveyquestion Question ID for which you would like results False
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] => 2
                    [type] => RADIO
                    [breakdown] => Array
                        (
                            [0] => Array
                                (
                                    [label] => Dogs
                                    [percentage] => 80.0
                                    [count] => 8
                                )

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

                        )

                    [total tesponses] => 10
                    [sum] => 0
                    [average] => 
                    [stdDev] => 0.00
                    [min] => 0.0
                    [max] => 0.0
                )

            [1] => Array
                (
                    [id] => 3
                    [type] => MENU
                    [breakdown] => Array
                        (
                            [0] => Array
                                (
                                    [label] => Cat
                                    [percentage] => 88.9
                                    [count] => 8
                                )

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

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

                            [3] => Array
                                (
                                    [label] => Dog
                                    [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] => 7
                    [type] => MENU
                    [breakdown] => Array
                        (
                            [0] => Array
                                (
                                    [label] => WV
                                    [percentage] => 10.0
                                    [count] => 1
                                )

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

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

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

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

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

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

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

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

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

                        )

                    [total responses] => 10
                    [sum] => 0
                    [average] => 
                    [stdDev] => 0.00
                    [min] => 0.0
                    [max] => 0.0
                )

            [3] => Array
                (
                    [id] => 4
                    [type] => SLIDER
                    [total responses] => 9
                    [sum] => 30
                    [average] => 3.33333333333333
                    [stdDev] => 0.82
                    [min] => 2.0
                    [max] => 5.0
                )

            [4] => Array
                (
                    [id] => 5
                    [type] => MULTI_SLIDER
                    [total responses] => 8
                    [sum] => 52
                    [average] => 2.88888888888889
                    [stdDev] => 1.45
                    [min] => 1.0
                    [max] => 5.0
                )

            [5] => Array
                (
                    [id] => 15
                    [type] => IMAGE_SELECT
                    [breakdown] => Array
                        (
                            [0] => Array
                                (
                                    [label] => Summer
                                    [percentage] => 27.3
                                    [count] => 3
                                )

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

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

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

                        )

                    [total responses] => 11
                    [sum] => 0
                    [average] => 
                    [stdDev] => 0.00
                    [min] => 0.0
                    [max] => 0.0
                )

            [6] => Array
                (
                    [id] => 9
                    [type] => IMAGE_SELECT
                    [breakdown] => Array
                        (
                            [0] => Array
                                (
                                    [label] => Tomato
                                    [percentage] => 27.3
                                    [count] => 3
                                )

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

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

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

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

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

                        )

                    [total responses] => 11
                    [sum] => 0
                    [average] => 
                    [stdDev] => 0.00
                    [min] => 0.0
                    [max] => 0.0
                )

        )

)
Back to the Top