Skip to main content
Skip table of contents

API example - Get responses by form id

Example for the REST API on how to get responses by form id

Use end-point: https://app.form.com/gw/swagger-ui/index.html#/results-controller-v3/getResults

Request:

CODE
curl --location 'https://app.form.com/gw/v3/results/list?formId=41659267&limit=100&offset=0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 68d85a02-9e76-4a8b-9a98-e85d7e9922b5' \
--data ''

Response:

CODE
{
    "total": 1,
    "results": [
        {
            "respondentId": 1395860610,
            "results": [
                {
                    "questionId": 96342785,
                    "questionType": "SINGLE_LINE",
                    "answers": [
                        {
                            "answerId": 314750704,
                            "answerType": "SINGLE_LINE",
                            "value": "Robert"
                        },
                        {
                            "answerId": 314750705,
                            "answerType": "SINGLE_LINE",
                            "value": "01/08/1980"
                        },
                        {
                            "answerId": 314750706,
                            "answerType": "SINGLE_LINE",
                            "value": "2010"
                        }
                    ]
                },
                {
                    "questionId": 96342791,
                    "questionType": "CHECK_ALL_NO_OTHER",
                    "answers": [
                        {
                            "answerId": 314750726,
                            "answerType": "CHECK_ALL"
                        },
                        {
                            "answerId": 314750727,
                            "answerType": "CHECK_ALL"
                        }
                    ]
                },
                {
                    "questionId": 96343988,
                    "questionType": "DROPDOWN",
                    "answers": [
                        {
                            "answerId": 314752894,
                            "answerType": "DROPDOWN",
                            "value": "100 - 200 $"
                        }
                    ]
                },
                {
                    "questionId": 96342794,
                    "questionType": "LIST_BOX",
                    "answers": [
                        {
                            "answerId": 314750741,
                            "answerType": "LIST_BOX",
                            "value": "Friday"
                        },
                        {
                            "answerId": 314750742,
                            "answerType": "LIST_BOX",
                            "value": "Saturday"
                        }
                    ]
                },
                {
                    "questionId": 96343991,
                    "questionType": "MULTI_LINE",
                    "answers": [
                        {
                            "answerId": 314752898,
                            "answerType": "MULTI_LINE",
                            "value": "Please to open store early then 8:00am"
                        }
                    ]
                },
                {
                    "questionId": 96344953,
                    "questionType": "RATE_DIFFERENT",
                    "answers": [
                        {
                            "answerId": 314751826,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145122
                        },
                        {
                            "answerId": 314751827,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145123
                        },
                        {
                            "answerId": 314751828,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145123
                        },
                        {
                            "answerId": 314751829,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145123
                        },
                        {
                            "answerId": 314751830,
                            "answerType": "PICK_ONE_COLUMN",
                            "columnId": 3145124
                        }
                    ]
                },
                {
                    "questionId": 96345911,
                    "questionType": "MATRIX_3D",
                    "answers": [
                        {
                            "answerId": 314750261,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750261,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750261,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "smartphone"
                        },
                        {
                            "answerId": 314750262,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750262,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750262,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "mouse"
                        },
                        {
                            "answerId": 314750263,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750263,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750263,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "refrigerator"
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750264,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "curtains"
                        },
                        {
                            "answerId": 314750265,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145148
                        },
                        {
                            "answerId": 314750265,
                            "answerType": "CHECK_ALL_COLUMN",
                            "columnId": 3145149
                        },
                        {
                            "answerId": 314750265,
                            "answerType": "SINGLE_LINE_COLUMN",
                            "columnId": 3145150,
                            "value": "filers"
                        }
                    ]
                },
                {
                    "questionId": 96344957,
                    "questionType": "OBJECT_LOOKUP",
                    "answers": [
                        {
                            "answerId": 314751835,
                            "answerType": "SINGLE_LINE",
                            "value": "1326587091"
                        },
                        {
                            "answerId": 314751836,
                            "answerType": "SINGLE_LINE",
                            "value": "Household appliances"
                        },
                        {
                            "answerId": 314751837,
                            "answerType": "SINGLE_LINE",
                            "value": "1326587091"
                        },
                        {
                            "answerId": 314751838,
                            "answerType": "SINGLE_LINE",
                            "value": "Household appliances"
                        }
                    ]
                }
            ]
        }
    ]
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.